Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

twas

vutran3.7kMIT2.1.3TypeScript support: included

Generate time ago string

timeago, time-ago, time ago, time, date, from-now, fromnow, from now, relative, moment

readme

twas

Coveralls branch license

Tiny (280B) relative time string function (eg: "3 seconds ago")

Install

$ npm i -S twas

Usage

import twas from 'twas';

console.log(twas(Date.now() - (5 * 1000));

// -> 5 seconds ago

License

MIT © Vu Tran

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.1.3 (2023-02-08)

2.1.2 (2020-12-01)

2.1.1 (2019-08-02)

2.1.0 (2019-02-13)

Bug Fixes

  • ci: replace node 7 -> 10 (4246ecf)

Features