@elastic.io/jsonata-moment

    1.1.5-dev1 • 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();

    Keywords

    none

    Install

    npm i @elastic.io/jsonata-moment

    DownloadsWeekly Downloads

    192

    Version

    1.1.5-dev1

    License

    ISC

    Unpacked Size

    432 kB

    Total Files

    3

    Last publish

    Collaborators

    • illya_98
    • juhrmacher
    • drobiazko
    • annekov
    • vitaliy_kovalchuk
    • zuker
    • kirill-levitskiy
    • garry_ua
    • olga.virolainen
    • gladikov.denis
    • shkarupanick
    • arsenzhd
    • jhorbulyk
    • irisk
    • vi6x