Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.