🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

timeago_ch

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timeago_ch

timeago in chinese

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

timeago

A wrapper for Ryan McGeary's jQuery plugin.

timeago

#install

npm install timeago

#usage

var timeago = require('timeago');

var pretty = timeago(+new Date());

console.log(pretty); // just now

You can also use it in Express app templates:

var app = express.createServer();

app.helpers({
  timeago: require('timeago')
});
<div class="timeago"><%- timeago(widget.created) %></div>

FAQs

Package last updated on 14 Jun 2015

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