1.1.5 ā€¢ Published 7 years ago

@makenova/panda v1.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

panda

Build Status

šŸ¼ format seconds as a digital clock string šŸ¼

Panda, šŸ¼, Panda, šŸ¼, Panda

Install

npm install --save @makenova/panda

# OR install it globally for cli use

npm install -g @makenova/panda

Use

var convert = require('@makenova/panda')
convert(7250) // => '120 : 50'
convert(45012, { hours: true }) // => '12 : 30 : 12'

or in with import

import convert from '@makenova/panda')
convert(7250) // => '120 : 50'
convert(45012, { hours: true }) // => '12 : 30 : 12'

or if you installed it globally,

panda 45012 # => 750 : 12
panda 45012 true # => 12 : 30 : 12

# no args will print usage
panda

Usage
$ panda <seconds> [show_hours_boolean]

Examples
$ panda 45012
750 : 12

$ panda 45012 true
12 : 30 : 12

API

convert(seconds, [options])

Convert seconds to a string formatted as a digital clock string. The default is Minutes : seconds.

options.hours

A boolean that indicates if hours should be displayed.

Bugs

Please report any bugs to: https://github.com/makenova/panda/issues

License

Licensed under the MIT License: https://opensource.org/licenses/MIT

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago