ccunits-rust
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

ccunits-rust

Rust implementation of ccunits, wasm-ready

Requirements

  • wasm-pack

build

  • Web: wasm-pack build --target web
  • Bundler: wasm-pack build --target bundler
  • Node: wasm-pack build --target node

wasm usage

import * as ccunits from 'ccunits-rust'

const mins = ccunits.to_minimal('134.677452125', 18) // "134677452125000000000"
const currency = ccunits.from_minimal('134677452125000000000', 18) // '134.677452125'

Readme

Keywords

none

Package Sidebar

Install

npm i ccunits-rust

Weekly Downloads

0

Version

1.0.2

License

none

Unpacked Size

80 kB

Total Files

6

Last publish

Collaborators

  • dractw