@ayamejs/humanizedeprecated

Utilities to convert data into human readable strings.

Usage no npm install needed!

<script type="module">
  import ayamejsHumanize from 'https://cdn.skypack.dev/@ayamejs/humanize';
</script>

README

@ayamejs/humanize

Utilities to convert data into human readable strings.

Install

$ npm install @ayamejs/usage

TypeScript typings included.

Usage

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

humanize.duration(1000); // => 1s
humanize.bytes(3000); // => 2.93 KB
humanize.oridinal(3); // => 3rd

Changelog

v0.2.0

  • Added ordinal function.

v0.1.0

  • Initial release.

License

MIT License