🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

@elastic.io/jsonata-moment

Package Overview
Dependencies
Maintainers
6
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic.io/jsonata-moment

Moment support for JSONata

1.1.6
latest
Source
npm
Version published
Weekly downloads
166
-29.96%
Maintainers
6
Weekly downloads
 
Created
Source

jsonata-moment

NPM statistics

Build Status

Moment.js support for JSONata.

How to install

npm install @elastic.io/jsonata-moment

Usage

$moment function provides the same functionality, as regular moment() does.

In node.js

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.

const result = window.jsonataMoment('$moment().format("YYYY-MM-DD")').evaluate();

FAQs

Package last updated on 22 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts