# midnight-js

> Wraps midnight for use with node js

Latest version **0.1.0** (published 2017-06-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install midnight-js
pnpm add midnight-js
yarn add midnight-js
bun add midnight-js
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-06-28 |
| First published | 2017-06-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dan Hewlett |
| Maintainers | sleepystrix |

## Links

- npm: https://www.npmjs.com/package/midnight-js
- npm.io page: https://npm.io/package/midnight-js

## Recent versions

- 0.1.0 (latest) — 2017-06-28
- 0.0.1 — 2017-06-22

## README

# midnight-js
Simple node.js wrapper for bluefuton's midnight library for converting english to cron expressions.

##Setup:
1. Install Ruby for your OS. [https://www.ruby-lang.org]
2. Install Midnight so that the folder `'midnight'` is in the same directory as the file `'midnight-cli.rb'`
You can get it at the original repo here: https://github.com/bluefuton/midnight
or my fork here: https://github.com/sleepystrix/midnight

##Usage:
```
let midnight_js = require('midnight-js');
midnight_js.parse('every 10 minutes', function (err, result) {
	if (err) {
		console.log(err);
	} else {
		console.log("cron expression: " + result;
	}
});
```

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