Skip to content

ayamejs/humanize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published