Socket
Socket
Sign inDemoInstall

calcdate

Package Overview
Dependencies
5
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

5

index.js

@@ -20,2 +20,3 @@ import parser from "./dateCalculator";

);
export const calc = simpleCalculator;
export const datefnsCalculator = parser(

@@ -26,2 +27,3 @@ datefns(parser, {

);
export const datefnscalc = datefnsCalculator;
export const luxonCalculator = parser(

@@ -32,2 +34,3 @@ luxon(parser, {

);
export const luxoncalc = luxonCalculator;
export const simpleluxonCalculator = parser(

@@ -38,2 +41,3 @@ simpleluxon(parser, {

);
export const luxonsimplecalc = simpleluxonCalculator;
export const momentCalculator = parser(

@@ -44,2 +48,3 @@ moment(parser, {

);
export const momentcalc = momentCalculator;
export default parser(

@@ -46,0 +51,0 @@ simple(parser, {

4

package.json
{
"name": "calcdate",
"version": "1.0.0",
"description": "Evalate a date expression (\"now + 3 days\")!",
"version": "1.0.1",
"description": "Evalate a date expression calc`now + 3 days`)!",
"main": "dist/datecalculator.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -6,6 +6,6 @@ # Date Calculator

```
import { simpleCalculator } from "datecalculator";
import { calc } from "calcdate";
// or use any of: datefnsCalculator luxonCalculator simpleluxonCalculator momentCalculator
simpleCalculator`now + 3 days + 5 hours`;
calc`now + 3 days + 5 hours`;
```

@@ -15,4 +15,10 @@

TBD
```
yarn add calcdate
```
```
npm i calcdate
```
## git repo

@@ -19,0 +25,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc