4.1.0 • Published 3 years ago

convert-string-time v4.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

convert-string-time Build Status npm.io

Convert time strings between 12/24 hours formats

Usage

$ npm install convert-string-time

# or

$ yarn add convert-string-time
import {to24Hours, to12Hours} from 'convert-string-time'

console.log(to24Hours('09:23 am')) // 21:23
console.log(to12Hours('23:13')) // 11:13 PM

Contribution

Local Development

Below is a list of commands you will probably find useful.

npm start or yarn start

Runs the project in development/watch mode.

npm run build or yarn build

Bundles the package to the dist folder. The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).

npm test or yarn test

Runs the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.

Author

4.1.0

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago