Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

convert-string-time

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-string-time

Simple utility to convert between 12/24 hours string formats

  • 4.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
32
increased by220%
Maintainers
1
Weekly downloads
 
Created
Source

convert-string-time Build Status

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

Keywords

FAQs

Package last updated on 27 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc