Skip to content

an example library built with TypeScript and Rollup

License

Notifications You must be signed in to change notification settings

alanbsmith/sum-arr

Repository files navigation

Sum Arr

an example library built with TypeScript

Up & Running

npm install

Local Development

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

Running Linters & Tests

Linters

npm run lint

Tests

npm test

Test Coverage

npm run test:coverage:report

License

MIT

About

an example library built with TypeScript and Rollup

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published