Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@elastic.io/jsonata-moment

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic.io/jsonata-moment - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"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();
```
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