Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "calcdate", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Evalate a date expression calc`now + 3 days`)!", | ||
@@ -5,0 +5,0 @@ "main": "dist/datecalculator.js", |
@@ -13,2 +13,3 @@ # Date Calculator | ||
// import { momentcalc } from "calcdate"; // with moment | ||
// import moment from "moment"; | ||
@@ -26,2 +27,3 @@ const dval = calc(); | ||
// const luxoncalc = require("calcdate").luxoncalc; | ||
// import luxon from "luxon"; | ||
const dval = calc(); | ||
@@ -73,6 +75,12 @@ // const dval = luxoncalc(luxon); | ||
## Examples | ||
**Note** | ||
You need to initialize the calculator with your library: | ||
TBD | ||
``` | ||
import { datefnsCalculator } from "calcdate" | ||
import datefns from "datefns"; | ||
const calculator = datefnsCalculator(datefns); | ||
``` | ||
## Api docs | ||
@@ -79,0 +87,0 @@ |
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
1039656
644