1.0.1 • Published 8 years ago
offset-number v1.0.1
offset-number
Apply an offset to a JavaScript numeric value.
Usage
Installation
npm install offset-number --save # Installs via NPM
yarn add offset-number # Installs via YarnAPI
var offset = require("offset-number");
offset(42, 2) // -> A random number in the range [40,44).
offset(5, 10) // -> A random number in the range [-5,15).Build
npm run build # Runs an NPM script which builds the project
gulp build # Directly execute the gulp build scriptBoth the above commands perform the same operation internally; the NPM build
script calls the Gulp build script.
Test
npm run test # Runs an NPM script which tests the projectDue to the project being written in TypeScript and the tests written in Javascript, the project must be built before it can be tested.
License
See the LICENSE file for license information.