https://github.com/afeiship/next-file-to-base64
File to base64 based on FileReader for next.
https://github.com/afeiship/next-file-to-base64
base64 file filereader next
Last synced: about 2 months ago
JSON representation
File to base64 based on FileReader for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-file-to-base64
- Owner: afeiship
- License: mit
- Created: 2018-05-18T07:00:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T08:52:57.000Z (over 5 years ago)
- Last Synced: 2025-01-06T08:08:32.480Z (over 1 year ago)
- Topics: base64, file, filereader, next
- Language: JavaScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-file-to-base64
> File to base64 based on FileReader for next.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```bash
npm install -S @jswork/next-file-to-base64
```
## usage
```js
import '@jswork/next-file-to-base64';
nx.fileToBase64(inFile).then((base64)=>{
console.log(base64);
});
```
## license
Code released under [the MIT license](https://github.com/afeiship/next-file-to-base64/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-file-to-base64
[version-url]: https://npmjs.org/package/@jswork/next-file-to-base64
[license-image]: https://img.shields.io/npm/l/@jswork/next-file-to-base64
[license-url]: https://github.com/afeiship/next-file-to-base64/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-file-to-base64
[size-url]: https://github.com/afeiship/next-file-to-base64/blob/master/dist/next-file-to-base64.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-file-to-base64
[download-url]: https://www.npmjs.com/package/@jswork/next-file-to-base64