0.0.0 • Published 4 years ago

oxoutils v0.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

Outil

This is a collection of commonly used tools

Installation

npm install Outil

yarn add Outil

Example

import { byByteConvertUnit } from 'Outil'

const bytes = 1024000
const unit = 1024 // default 1024
const fractionDigits = 2 // default 2

byByteConvertUnit(bytes,unit,fractionDigits) // 1000.00 KB

APIs

APIdescription
byByteConvertUnitChange unit according to byte
formatTimestampConvert to local time based on timestamp
warnOutput warning message (equal console.warn)
infoOutput info message (equal console.info)
errorOutput error message (equal console.error)
0.0.0

4 years ago