Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juancarlospaco/nim-datauri
Data URI Base64 UTF-8 Nim module.
https://github.com/juancarlospaco/nim-datauri
base64 datauri nim nim-lang utf-8
Last synced: 21 days ago
JSON representation
Data URI Base64 UTF-8 Nim module.
- Host: GitHub
- URL: https://github.com/juancarlospaco/nim-datauri
- Owner: juancarlospaco
- License: lgpl-3.0
- Created: 2018-05-15T15:39:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-02T23:27:05.000Z (almost 3 years ago)
- Last Synced: 2024-08-04T01:15:35.232Z (3 months ago)
- Topics: base64, datauri, nim, nim-lang, utf-8
- Language: Nim
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nim-datauri
- **DEPRECATED, USE https://nim-lang.github.io/Nim/uri.html#basic-usage-data-uri-base64 instead!.**
- Data URI Base64 UTF-8 Nim module.# Install
```
nimble install https://github.com/juancarlospaco/nim-datauri
```# Requisites
- [Nim](https://nim-lang.org)
# 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.