an example library built with TypeScript
npm install
To use this library locally, you'll first need to link the module:
npm link
Then tell TypeScript to watch for changes and rebuild
npm run build:watch
In your project directory, link this library:
npm link sum-arr
And import it into your code:
const { sumArr } = require('sum-arr');
const arr = [1, 2, 3, 4, 5];
return sumArr(arr);
Remember to clean up when you're done:
npm unlink sum-arr
npm run lint
npm test
npm run test:coverage:report