twas icon indicating copy to clipboard operation
twas copied to clipboard

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

Results 3 twas issues
Sort by recently updated
recently updated
newest added

Proposal: Round numbers instead of flooring them. This test currently fails

What is this `npm i -S` flag? I don't see it in the [docs](https://docs.npmjs.com/cli/v8/commands/npm-install).

https://stackblitz.com/edit/stackblitz-starters-ragzif ```js const twas = require('twas'); console.log(twas(new Date(1972, 0, 1))); // 54 years ago (WTF?) console.log(twas(new Date(1973, 0, 1))); // 52 years ago ``` I suspect is has something to...