@pefish/js-node-assist
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

Js-node-assist

Makes JavaScript easier to use, and improve coding efficiency

Install

npm install @pefish/js-node-assist

Example

import { RoundingMode, StringUtil } from "../src/index";

console.log(StringUtil.canCastNumber(`10.12`)); // true
console.log(StringUtil.canCastNumber(`10.a`)); // false
console.log(StringUtil.start(`10.12`).remainDecimal(4, RoundingMode.ROUND_UP).end()); // 10.12
console.log(StringUtil.start(`10`).add('5').multi(10).div(5).end()); // (10 + 5) * 10 / 5 = 30
// ...

Readme

Keywords

Package Sidebar

Install

npm i @pefish/js-node-assist

Weekly Downloads

159

Version

2.1.0

License

MIT

Unpacked Size

141 kB

Total Files

42

Last publish

Collaborators

  • pefish