mtm-utilities
TypeScript icon, indicating that this package has built-in type declarations

0.0.64 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mtm-utilities

Weekly Downloads

4

Version

0.0.64

License

LGPL-3.0

Unpacked Size

500 kB

Total Files

121

Last publish

Collaborators

  • merlinthemagic