Socket
Socket
Sign inDemoInstall

calcdate

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calcdate - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "calcdate",
"version": "1.0.1",
"version": "1.0.2",
"description": "Evalate a date expression calc`now + 3 days`)!",

@@ -5,0 +5,0 @@ "main": "dist/datecalculator.js",

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

import { calc } from "calcdate";
// or use any of: datefnsCalculator luxonCalculator simpleluxonCalculator momentCalculator
// import { datefnscalc } from "calcdate"; // with date-fns
// import { luxoncalc } from "calcdate"; // with luxon
// import { luxonsimplecalc } from "calcdate"; // with luxon
// import { momentcalc } from "calcdate"; // with moment

@@ -25,3 +28,3 @@ calc`now + 3 days + 5 hours`;

[Find source code on git](https://github.com/Zyclotrop-j/DateCalculator)
[Find source code on git](https://github.com/Zyclotrop-j/calcdate)

@@ -32,10 +35,10 @@ ## Dependencies

We recommend using this lib with your favorite date-time lib, use the bindings provided.
We recommend using this lib with your favourite date-time lib, use the bindings provided.
| import | required dependency | import |
| --------------------- | ---------------------------------------- | --------------------------------------------------------- |
| datefnsCalculator | [date-fns](https://date-fns.org) | `import { datefnsCalculator } from "datecalculator";` |
| luxonCalculator | [luxon](https://moment.github.io/luxon/) | `import { luxonCalculator } from "datecalculator";` |
| simpleluxonCalculator | [luxon](https://moment.github.io/luxon/) | `import { simpleluxonCalculator } from "datecalculator";` |
| momentCalculator | [moment](https://momentjs.com/) | `import { momentCalculator } from "datecalculator";` |
| import | required dependency | import |
| --------------------- | ---------------------------------------- | --------------------------------------------------- |
| datefnsCalculator | [date-fns](https://date-fns.org) | `import { datefnsCalculator } from "calcdate";` |
| luxonCalculator | [luxon](https://moment.github.io/luxon/) | `import { luxonCalculator } from "calcdate";` |
| simpleluxonCalculator | [luxon](https://moment.github.io/luxon/) | `import { simpleluxonCalculator } from "calcdate";` |
| momentCalculator | [moment](https://momentjs.com/) | `import { momentCalculator } from "calcdate";` |

@@ -500,3 +503,3 @@ ## Examples

```
import calculatorFactory from "./dateCalculator";
import calculatorFactory from "./calcdate";

@@ -503,0 +506,0 @@ const yourCalculator = calculatorFactory({

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