{"id":20962976,"url":"https://github.com/doesdev/pico-ms","last_synced_at":"2026-04-21T18:33:14.379Z","repository":{"id":57323898,"uuid":"99391914","full_name":"doesdev/pico-ms","owner":"doesdev","description":"Incy wincy millisecond converter for days, hours, minutes, or seconds","archived":false,"fork":false,"pushed_at":"2023-01-19T00:53:10.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-20T14:04:01.200Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doesdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-05T01:47:03.000Z","updated_at":"2023-03-08T04:46:27.000Z","dependencies_parsed_at":"2023-02-10T19:15:17.669Z","dependency_job_id":null,"html_url":"https://github.com/doesdev/pico-ms","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doesdev%2Fpico-ms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doesdev%2Fpico-ms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doesdev%2Fpico-ms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doesdev%2Fpico-ms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doesdev","download_url":"https://codeload.github.com/doesdev/pico-ms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243359613,"owners_count":20278230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T02:39:42.044Z","updated_at":"2025-12-24T18:40:35.585Z","avatar_url":"https://github.com/doesdev.png","language":"JavaScript","readme":"# pico-ms [![NPM version](https://badge.fury.io/js/pico-ms.svg)](https://npmjs.org/package/pico-ms)   [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)   [![Dependency Status](https://dependencyci.com/github/doesdev/pico-ms/badge)](https://dependencyci.com/github/doesdev/pico-ms)\n\n\u003e Incy wincy millisecond converter for days, hours, minutes, or seconds\n\n## Install\n\n```sh\n$ npm install --save pico-ms\n```\n\n## Usage\n\n```js\nconst picoMs = require('pico-ms')\npicoMs('3600s') // 3600000\npicoMs('3600 sec') // 3600000\npicoMs('3600 seconds') // 3600000\npicoMs('60m') // 3600000\npicoMs('60 mins') // 3600000\npicoMs('60 minutes') // 3600000\npicoMs('1h') // 3600000\npicoMs('1hr') // 3600000\npicoMs('1 hour') // 3600000\npicoMs(`${1 / 24} days`) // 3600000\npicoMs(3600000) // 3600000\npicoMs('3600000') // 3600000\n```\n\n## API\n\n#### Takes human readable days, hour, minute, or second string and returns milliseconds\n\n#### `const picoMs = require('pico-ms')(*hms|ms)`\n\n- **hms|ms** *[string|integer - required]* (ex. `'3600s'`, `'60 minutes'`, `'1 hr'`, `3600000`)\n\n## License\n\nMIT © [Andrew Carpenter](https://github.com/doesdev)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoesdev%2Fpico-ms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoesdev%2Fpico-ms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoesdev%2Fpico-ms/lists"}