New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ayame/humanize

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

@ayame/humanize

Utilities to convert data into human readable strings.

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

@ayame/humanize

Utilities to convert data into human readable strings.

Install

$ npm install @ayame/humanize

TypeScript typings included.

Usage

const humanize = require("@ayame/humanize");

humanize.duration(1000); // => 1s
humanize.bytes(3000); // => 2.93 KB
humanize.oridinal(3); // => 3rd
humanize.join(["you", "me", "them"]); // => you, me and them

Changelog

v0.3.0

  • Added join function

v0.2.0

  • Added ordinal function.

v0.1.0

  • Initial release.

License

MIT License

Keywords

humanize

FAQs

Package last updated on 31 Aug 2020

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