@the-/util-client

15.6.2 • Public • Published

@the-/util-client

npm Version

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

See API Guide for more detail

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i @the-/util-client

Weekly Downloads

1

Version

15.6.2

License

MIT

Unpacked Size

51.7 kB

Total Files

29

Last publish

Collaborators

  • okunishinishi