Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@jackens/from-now

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jackens/from-now

‘from-now’ provides function ‘fromNow’ similar to moment.js’ one. Works in both Node.js and the browser.

latest
Source
npmnpm
Version
1.6.14
Version published
Weekly downloads
7
133.33%
Maintainers
1
Weekly downloads
 
Created
Source

from-now

‘from-now’ provides function fromNow similar to moment.js’ one. Works in both Node.js and the browser.

Install

NPM

npm install @jackens/from-now

CDN

<script type="text/javascript" src="https://cdn.rawgit.com/jackens/from-now/master/from-now.js"></script>

or

<script type="text/javascript" src="https://cdn.rawgit.com/jackens/from-now/master/from-now.min.js"></script>

or

<script type="text/javascript" src="https://unpkg.com/@jackens/from-now/from-now.js"></script>

or

<script type="text/javascript" src="https://unpkg.com/@jackens/from-now/from-now.min.js"></script>

Usage

var fromNow = require('@jackens/from-now')

// fromNow.lang = 'pl' // default
console.log(fromNow('2018-04-24T23:59:59.999Z'))
fromNow.lang = 'en'
console.log(fromNow('2018-04-24T23:59:59.999Z'))

Translations can be easily extended or modified

console.log(fromNow.langs)

Keywords

fromNow

FAQs

Package last updated on 14 Jun 2018

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