cronstrue
Advanced tools
Comparing version 0.10.0 to 0.10.2
import { ExpressionDescriptor } from "./expressionDescriptor"; | ||
export = ExpressionDescriptor; | ||
export default ExpressionDescriptor; | ||
declare let toString: typeof ExpressionDescriptor.toString; | ||
export { toString }; |
{ | ||
"name": "cronstrue", | ||
"version": "0.10.0", | ||
"version": "0.10.2", | ||
"description": "Convert cron expressions into human readable descriptions", | ||
@@ -5,0 +5,0 @@ "author": "Brady Holt", |
@@ -17,5 +17,4 @@ # cRonstrue [![Build Status](https://travis-ci.org/bradyholt/cRonstrue.svg?branch=master)](https://travis-ci.org/bradyholt/cRonstrue) [![NPM Package](https://img.shields.io/npm/v/cronstrue.svg)](https://www.npmjs.com/package/cronstrue) | ||
### Node | ||
First, install the module: | ||
Install from npm: | ||
``` | ||
@@ -25,3 +24,6 @@ npm install cronstrue | ||
Then, require it: | ||
Then, depending upon your usage context, add a reference to it: | ||
### Node | ||
``` | ||
@@ -33,14 +35,9 @@ var cronstrue = require('cronstrue'); | ||
Install from npm: | ||
``` | ||
npm install cronstrue | ||
import cronstrue from 'cronstrue'; | ||
``` | ||
Then, import it: | ||
``` | ||
import construe from 'cronstrue'; | ||
``` | ||
### Browser | ||
The `cronstrue.min.js` file from the `/dist` folder in the npm package should be served to the browser. There are no dependencies so you can simply include the library in a `<script>` tag. | ||
``` | ||
@@ -65,3 +62,3 @@ <script src="cronstrue.min.js" type="text/javascript"></script> | ||
console.log(construe.toString("* * * ? * 2-6/2", { dayOfWeekStartIndexZero: false})); | ||
console.log(cronstrue.toString("* * * ? * 2-6/2", { dayOfWeekStartIndexZero: false})); | ||
> "Every second, every 2 days of the week, Monday through Friday" | ||
@@ -68,0 +65,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
264906
4842
109