Skip to main content
Version: 0.3.1

Installation

We use npm to install moment-machine and install it with this command in the system terminal

npm install --save-dev moment-machine

Import moment-machine into the project

moment-machine is available in both common js and es module, depending on your usage you can call it in any way you want.

Common js

const momentMachine = require('moment-machine');

momentMachine.getRuntime(testFunction);

or

const { getRuntime } = require('moment-machine');

getRuntime(testFunction);

ES Module

import momentMachine from 'moment-machine';

momentMachine.getRuntime(testFunction);

or

import { getRuntime } 'moment-machine';

getRuntime(testFunction);