【文件属性】:
文件名称:units:小型图书馆,可转换单位
文件大小:138KB
文件格式:ZIP
更新时间:2021-04-17 00:06:57
TypeScript
单位
小型图书馆,可转换单位
用法
import { convert } from '@vas-dev/units'
convert ( { value : 20 , unit : 'pound' , target : 'kilogram' , maxDecimals : 2 } )
// 9.07
原料药
注意:由于这是围绕的小包装,因此大多数浮出水面的函数相同,但参数不同
convert
import { convert } from '@vas-dev/units'
convert ( {
value : 20 ,
// Starting Unit
unit : 'pound' ,
// Unit to be converted to
target : 'kilogram' ,
// Number of decimals - Optional - Defau
【文件预览】:
units-main
----.eslintrc.json(415B)
----.changeset()
--------config.json(294B)
--------README.md(510B)
----.github()
--------workflows()
----yarn.lock(329KB)
----src()
--------types.ts(843B)
--------utils.ts(158B)
--------index.ts(198B)
--------functions()
----tsconfig.json(6KB)
----LICENSE(1KB)
----jest.config.js(69B)
----README.md(2KB)
----.husky()
--------pre-commit(59B)
--------.gitignore(2B)
----.gitignore(18B)
----CHANGELOG.md(219B)
----package.json(2KB)