@elastic.io/jsonata-moment

1.1.6 • Public • Published

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();

Readme

Keywords

none

Package Sidebar

Install

npm i @elastic.io/jsonata-moment

Weekly Downloads

509

Version

1.1.6

License

ISC

Unpacked Size

446 kB

Total Files

3

Last publish

Collaborators

  • ariklabs
  • andrewreshitko
  • stas1313
  • legendmiha
  • garry_ua
  • vi6x