Skip to content

juancarlospaco/nim-datauri

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

nim-datauri

Install

nimble install https://github.com/juancarlospaco/nim-datauri

Requisites

Documentation

file2datauri()

Description: Convert a file path string to a Data URI Base64 string.

Arguments:

  • filename A file path string, string type, required.

Returns: Data URI Base64 string type.

datauri2file()

Description: Convert a Data URI Base64 string to a file.

Arguments:

  • datauri A Data URI Base64 , string type, required.
  • filename A file path string, string type, required.

Returns: Return value of writeFile(), cint type.