Socket
Book a DemoInstallSign in
Socket

@nkp/age

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nkp/age

Get an approximate human readable number of years, months,days, hours, minutes, seconds between dates.

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

@nkp/age

npm version deploy status known vulnerabilities

Get an approximate human readable number of years, months,days, hours, minutes, seconds between dates.

import { getAge } '@nkp/age';

// 1y1m2d
console.log(getAge(new Date(2021, 2, 3)));

Table of contents

Exports

@nkp/age exports both CommonJS and ES modules.

Installation

npm

npm install @nkp/age

yarn

yarn add @nkp/age

pnpm

pnpm add @nkp/age

Publishing

To a release a new version:

  • Update the version number in package.json
  • Push the new version to the master branch on GitHub
  • Create a new release on GitHub for the latest version

This will trigger a GitHub action that tests and publishes the npm package.

Keywords

TypeScript

FAQs

Package last updated on 04 Mar 2022

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