npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

pretty-ms-ja

0.1.0 • Public • Published

pretty-ms-ja Build Status

convert ms to human readable string for Japanese: 1337000000 => 15日11時間23分20秒

Install

$ npm install --save pretty-ms-ja

Usage

const prettyMsJa = require('pretty-ms-ja');
 
prettyMsJa(1337000000);
//=> '15日11時間23分20秒'

API

prettyMsJa(milliseconds, [options])

milliseconds

Type: number

Milliseconds to humanize for Japanese.

options

split

Type: String
Default: ''

prettyMsJa(67000);
// => 1時間7分
 
prettyMsJa(67000, {split: ' '});
// => 1時間 7分

License

MIT © akameco

install

npm i pretty-ms-ja

Downloadsweekly downloads

5

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability