Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@augustinmauroy/twas

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@augustinmauroy/twas

A relative time string library

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
11
266.67%
Maintainers
1
Weekly downloads
 
Created
Source

@augustinmauroy/twas

A relative time string library

npm version JSR

⚠️ WARNING ⚠️: This library use Intl.DurationFormat which is not yet available in all browsers. You can check the compatibility table for more information.

Example

import { twas } from '@augustinmauroy/twas';

const strDiff = twas(new Date('2021-01-01'), new Date('2021-01-02'));
console.log(strDiff); // '1 day ago'

Prior art

This library is inspired by vutran/twas.

FAQs

Package last updated on 04 May 2025

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