A collection of date functions, tree shakable and fully united tested
npm install js-date-helperbash
npm install --save-dev js-date-helper
`
or
`bash
yarn add -D js-date-helper
`
With the library installed you can import only the methods you need.
`js
import { addDays, addMonths } from 'js-date-helper';
`
If you use a bundler like Webpack or Rollup it will be able to tree shake the library and only bundle the library methods you use.
Missing something?
In case you're missing a feature or some of documentation is unclear, please create an issue on Github.
Contributing
Contributions are more than welcome. If you want to contribute to this project, please keep the following in mind:
- The project includes an editorconfig with rules for line feeds, indentation, etc. Make sure your changes follow to these settings.
- The project uses ESLint to lint the code, please make sure your changes do not introduce linting issues.
- Each library method lives in its own subfolder under the src folder. For each method there should be a similar named test file with the unit tests.
`
─ src/
└─ myCoolFeature/
├─ myCoolFeature.js
└─ myCoolFeature.test.js
``