@the-/util-client
Utility for client side
Installation
$ npm install @the-/util-client --save
Usage
'use strict'
const { readFile } = require('@the-/util-client')
async function tryExample() {
// Read file
const { File } = window
const file = new File([1, 2, 3], 'hoge')
const arrayBuffer = await readFile(file)
console.log(arrayBuffer)
/* ... */
}
tryExample().catch((err) => console.error(err))
API Guide
- module:@the-/util-client
See API Guide for more detail
License
This software is released under the MIT License.