Socket
Socket
Sign inDemoInstall

cronstrue

Package Overview
Dependencies
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cronstrue - npm Package Compare versions

Comparing version 0.10.0 to 0.10.2

4

dist/cronstrue-i18n.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc