0.4.5 • Published 4 years ago

dessert-filesize-core v0.4.5

Weekly downloads
30
License
-
Repository
github
Last release
4 years ago

Dessert Filesize

NPM version

This library is the base API for the filesize module, written in Rust for WebAssembly.

Summary

Installation

Note:
Although this module is not supposed to be used by itself, it can still be used as a standalone module.
dessert-filesize-core is depended on by dessert-filesize

npm install dessert-filesize-core

API

Here is a quick lookup of how you can use filesize
To know more about the api and what options are available, refer to the filesize.js module

let filesize = require('dessert-filesize-core').filesize;

let val = 500;
let options = { exponent: -2, output: "array" };

console.log(filesize(val, options));

Building

The project is built using wasm-pack
To build the project, run

wasm-pack build

Testing

wasm-pack test --headless --firefox # or --chrome
0.4.5

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago