New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

epochutils

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epochutils

An opensource epoch utility functions

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

epochutils

A simple utility functions to handle epoch timestamp.

NPM JavaScript Style Guide

Install

npm i epochutils

Usage

Sample code for performing single query

const { epochUtil } = require('epochutils');


const currtime = epochUtil().getLocal();
const today = epochUtil().todayLocal();
const todayUTC = epochUtil().todayUTC();
const nextDay = epochUtils().addDay(1);
const lastMonth = epochUtils().subMonth(1);

License

ISC © hanjas

Keywords

epoch

FAQs

Package last updated on 11 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts