Comparing version 1.0.1 to 1.0.2
{ | ||
"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({ |
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
1020225
591