@elastic.io/jsonata-moment
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "@elastic.io/jsonata-moment", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Moment support for JSONata", | ||
@@ -5,0 +5,0 @@ "main": "dist/jsonata-moment.js", |
# jsonata-moment | ||
Moment.js support for http://jsonata.org/ | ||
Moment.js support for [JSONata](http://jsonata.org/). | ||
## How to install | ||
``` | ||
npm install @elastic.io/jsonata-moment | ||
``` | ||
## Usage | ||
`$moment` function provides the same functionality, as regular `moment()` does. | ||
#### In node.js | ||
```javascript | ||
const jsonataMoment = require('@elastic.io/jsonata-moment'); | ||
const result = jsonataMoment('$moment().format("YYYY-MM-DD")').evaluate(); | ||
``` | ||
#### In browser | ||
There is a regular as well as minified versions of the library in a `dist` folder. | ||
```javascript | ||
const result = window.jsonataMoment('$moment().format("YYYY-MM-DD")').evaluate(); | ||
``` |
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
459863
24