# js-date-helper

> A collection of date functions, tree shakable and fully united tested

Latest version **1.5.2** (published 2020-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install js-date-helper
pnpm add js-date-helper
yarn add js-date-helper
bun add js-date-helper
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.2 |
| Published | 2020-04-06 |
| First published | 2019-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 174.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Thijs Busser |
| Maintainers | ictoanen |
| Keywords | js, date, es6 |

## Links

- npm: https://www.npmjs.com/package/js-date-helper
- Repository: https://github.com/tbusser/js-date-fns
- Homepage: https://github.com/tbusser/js-date-fns#readme
- Issues: https://github.com/tbusser/js-date-fns/issues
- npm.io page: https://npm.io/package/js-date-helper

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.5.2 (latest) — 2020-04-06
- 1.0.0-beta.18 (beta) — 2019-07-15
- 1.4.0 — 2019-10-04
- 1.3.1 — 2019-07-29
- 1.3.0 — 2019-07-28
- 1.2.1 — 2019-07-26
- 1.2.0 — 2019-07-26
- 1.1.1 — 2019-07-18
- 1.1.0 — 2019-07-17
- 1.0.5 — 2019-07-17
- 1.0.4 — 2019-07-16
- 1.0.3 — 2019-07-16
- 1.0.2 — 2019-07-16
- 1.0.1 — 2019-07-16
- 1.0.0 — 2019-07-16
- … 5 more at https://npm.io/package/js-date-helper/versions

## README

# JavaScript Date Helpers [![Build Status](https://travis-ci.com/tbusser/js-date-helper.svg?branch=develop)](https://travis-ci.com/tbusser/js-date-helper) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ftbusser%2Fjs-date-helper.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Ftbusser%2Fjs-date-helper?ref=badge_shield)

A lightweight, tree shakable, and tested JavaScript library for working with dates.

## Documentation
There is a documentation site which will inform you of the methods available. The documentation contains information like parameter types, return values and a short description what each method does. The documentation can be found [here](https://tbusser.github.io/js-date-helper/)

## Dependencies
The library itself has no dependencies. To be able to test and build the library a few packages are required. Most notably:
- [Babel](https://babeljs.io/) to create a version of the library which can be used on Node.js
- [Mocha](https://mochajs.org/) and [Chai](https://www.chaijs.com/) for unit testing
- [Istanbul](https://istanbul.js.org/) for code coverage

## Installation and usage
To add the library to your project, you can install it using your favorite package manager like so:
```bash
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](https://github.com/tbusser/js-date-helper/issues) 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
```
- Each method must contain unit tests to make sure everything keeps working as intended.

# License
This project is released under the [MIT](https://choosealicense.com/licenses/mit/) license.

---
_Source: https://npm.io/package/js-date-helper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
