npm.io
0.0.1 • Published 7 years ago

scalc-core

Licence
MIT
Version
0.0.1
Deps
1
Size
132 kB
Vulns
0
Weekly
0
Stars
1
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

s-calc-core

Core calculator library based on postfix notation

A small library executes mathematical expressions.

Installation

Core js: npm install scalc/core Types: npm install @scalc/core

Usage

JS:
`var core = require('scalc/core');
var formattedNum = core.napiTokenize('33+22*44');`

    JS:
`import { napiTokenize } from 'scalc/core';
let formattedNum = napiTokenize('33+22*44');`

Output should be [ '33', '+', '22', '*', '44' ]

Tests

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.