https://github.com/tubbo/delinquent
not-paid.js as a reusable module
https://github.com/tubbo/delinquent
Last synced: about 1 month ago
JSON representation
not-paid.js as a reusable module
- Host: GitHub
- URL: https://github.com/tubbo/delinquent
- Owner: tubbo
- Created: 2019-02-07T18:55:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:15:44.000Z (over 1 year ago)
- Last Synced: 2024-12-05T09:29:25.133Z (5 months ago)
- Language: JavaScript
- Homepage: https://github.com/kleampa/not-paid
- Size: 58.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# delinquent
A port of @kleampa's [not-paid.js][] to NPM. Wraps the logic in a function that you
can call anywhere.## Usage
```javascript
const delinquent = require('delinquent');
const due_date = new Date('2017-02-27');delinquent(due_date);
```You can optionally pass a number of days before the site is fully
transparent. The default is `60`.```javascript
const delinquent = require('delinquent');
const due_date = new Date('2017-02-27');
const deadline = 90delinquent(due_date, deadline);
```## Installation
This package is distributed over NPM!
```bash
yarn add delinquent
# ...or...
npm install delinquent --save
```[not-paid.js]: https://github.com/kleampa/not-paid
[kleampa]: https://github.com/kleampa