{"_id":"performance-ms","_rev":"942373","name":"performance-ms","description":"performance timer in ms","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"time":{"modified":"2024-08-03T11:20:47.000Z","created":"2023-08-04T07:15:11.652Z","1.1.0":"2024-06-16T06:27:51.595Z","1.0.0":"2023-08-04T07:15:11.652Z"},"users":{},"author":{"name":"fengmk2"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/performance-ms.git"},"versions":{"1.1.0":{"name":"performance-ms","version":"1.1.0","engines":{"node":">= 14.0.0"},"description":"performance timer in ms","scripts":{"contributor":"git-contributor","test":"npm run lint -- --fix && egg-bin test","ci":"npm run lint && egg-bin cov","lint":"eslint src test","prepublishOnly":"tshy && tshy-after"},"repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/performance-ms.git"},"keywords":["performance","now","timer","performance-now"],"author":{"name":"fengmk2"},"license":"MIT","bugs":{"url":"https://github.com/node-modules/performance-ms/issues"},"homepage":"https://github.com/node-modules/performance-ms#readme","devDependencies":{"@eggjs/tsconfig":"^1.3.3","@types/mocha":"^10.0.1","@types/node":"^20.4.7","egg-bin":"^6.4.1","eslint":"^8.46.0","eslint-config-egg":"^12.2.1","git-contributor":"^2.1.5","tshy":"^1.15.1","tshy-after":"^1.0.0","typescript":"^5.4.5"},"type":"module","tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"exports":{"./package.json":"./package.json",".":{"import":{"source":"./src/index.ts","types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"source":"./src/index.ts","types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","_id":"performance-ms@1.1.0","gitHead":"df27793690a194d7a2da3af18c1429d1b528657d","_nodeVersion":"18.20.3","_npmVersion":"10.7.0","dist":{"integrity":"sha512-27yI2vaAnCCqIUJx2nijADXNfY9OA5EFIDZavL0ZlMEujnfE6lSs18ENeR2rwYTA1sCLnEci0o6kZi8ekfXT1w==","shasum":"abc6c8b9524ac89017db4f2a8b6a9a6a7f913865","tarball":"http://registry-npm.ywwl.com/performance-ms/download/performance-ms-1.1.0.tgz","fileCount":10,"unpackedSize":6897,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/performance-ms@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEspSCXRtC93dM+KHEe0oN250MirQ6a9PX6nXXxsXhSlAiEAsJZf/vphTcXMpvrn4ayCVjDWP2Wvu/UPP9f4Vv+Rsfk="}],"size":3039,"noattachment":false,"key":"/performance-ms/-/performance-ms-1.1.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/performance-ms_1.1.0_1718519271435_0.07364710559683663"},"_hasShrinkwrap":false,"publish_time":1718519271595,"_cnpm_publish_time":1718519271595},"1.0.0":{"name":"performance-ms","version":"1.0.0","keywords":["performance","now","timer","performance-now"],"author":{"name":"fengmk2"},"license":"MIT","_id":"performance-ms@1.0.0","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"homepage":"https://github.com/node-modules/performance-ms#readme","bugs":{"url":"https://github.com/node-modules/performance-ms/issues"},"dist":{"shasum":"0fcd775678b18e334711b21bd2a8658754bc66ea","tarball":"http://registry-npm.ywwl.com/performance-ms/download/performance-ms-1.0.0.tgz","fileCount":5,"integrity":"sha512-iSEU1/BXAbuG7+0AY9pYmGCuohIOnW1ZGMCyKI6JFCNdqguPmqKX9ykD/6IV7rBWHhWF4IOhaU810QoN5cCmQw==","signatures":[{"sig":"MEYCIQDEN4xH5BmWOwIhJ0QbN1Dxj3TwSB7zanLmVnfS8NBsiAIhAKAEszS2kHj4IysXHjA+X9+GUlKIQ+vK6OE8rfdNBWsh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3273,"size":1871,"noattachment":false,"key":"/performance-ms/-/performance-ms-1.0.0.tgz"},"main":"index.js","types":"index.d.ts","gitHead":"a0e5c5fcd48882af759be1344835a8277d50c1da","scripts":{"ci":"egg-bin cov && npm run build && npm run clean","lint":"eslint index.ts test","test":"egg-bin test","build":"npm run clean && tsc","clean":"tsc -b --clean","prepublishOnly":"npm run build"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/performance-ms.git","type":"git"},"_npmVersion":"9.6.7","description":"performance timer in ms","directories":{},"_nodeVersion":"18.17.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.46.0","egg-bin":"^6.4.1","typescript":"^5.1.6","@types/node":"^20.4.7","@types/mocha":"^10.0.1","@eggjs/tsconfig":"^1.3.3","eslint-config-egg":"^12.2.1"},"_npmOperationalInternal":{"tmp":"tmp/performance-ms_1.0.0_1691133311547_0.18540392592895927","host":"s3://npm-registry-packages"},"publish_time":1691133311652,"_cnpm_publish_time":1691133311652}},"readme":"# performance-ms\n\n[![NPM version][npm-image]][npm-url]\n[![Node.js CI](https://github.com/node-modules/performance-ms/actions/workflows/nodejs.yml/badge.svg)](https://github.com/node-modules/performance-ms/actions/workflows/nodejs.yml)\n[![Test coverage][codecov-image]][codecov-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/performance-ms.svg?style=flat-square\n[npm-url]: https://npmjs.com/package/performance-ms\n[codecov-image]: https://codecov.io/github/node-modules/performance-ms/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/node-modules/performance-ms?branch=master\n[snyk-image]: https://snyk.io/test/npm/performance-ms/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/performance-ms\n[download-image]: https://img.shields.io/npm/dm/performance-ms.svg?style=flat-square\n[download-url]: https://npmjs.com/package/performance-ms\n\nperformance timer in ms\n\n## Usage\n\n```ts\nimport { now, diff } from 'performance-ms';\n\nconst startTime = now();\n// run your code\nconst rt = diff(startTime);\nconsole.log('rt %d', rt);\n\n// stdout: rt 1.228\n```\n\n## License\n\n[MIT](LICENSE)\n\n<!-- GITCONTRIBUTOR_START -->\n\n## Contributors\n\n|[<img src=\"https://avatars.githubusercontent.com/u/156269?v=4\" width=\"100px;\"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/32174276?v=4\" width=\"100px;\"/><br/><sub><b>semantic-release-bot</b></sub>](https://github.com/semantic-release-bot)<br/>|\n| :---: | :---: |\n\n\nThis project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Fri Aug 04 2023 15:21:17 GMT+0800`.\n\n<!-- GITCONTRIBUTOR_END -->\n","_attachments":{},"homepage":"https://github.com/node-modules/performance-ms#readme","bugs":{"url":"https://github.com/node-modules/performance-ms/issues"},"license":"MIT"}