mtm-utilities
v0.0.64
Published
Downloads
26
Readme
MtmUtilities
MtmUtilities is a collection of often used functions.
For node.js, you can use this command to install:
npm install mtm-utilities
Include lib assets in your project add to angular.json:
"assets": [
{
"glob": "**/*",
"input": "node_modules/mtm-utilities/assets",
"output": "./assets"
}
]
import the service:
import { MtmUtilitiesService } from "mtm-utilities";
USE assuming you have injected the service using the _mtmUtils variable name:
var guid = this._mtmUtils.getGuids().getV4().get(false);
console.log(guid);
var epoch = this._mtmUtils.getTime().getCurrent().getMicroEpoch(true);
console.log(epoch);