{"id":24961320,"url":"https://github.com/streammedev/perfnow","last_synced_at":"2025-04-10T21:36:43.302Z","repository":{"id":57163116,"uuid":"65849795","full_name":"StreamMeDev/perfnow","owner":"StreamMeDev","description":"A performance.now wrapper for node and browser support","archived":false,"fork":false,"pushed_at":"2016-12-14T20:06:11.000Z","size":8,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T22:02:16.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StreamMeDev.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":"2016-08-16T20:02:57.000Z","updated_at":"2018-04-12T20:02:27.000Z","dependencies_parsed_at":"2022-09-01T00:20:16.352Z","dependency_job_id":null,"html_url":"https://github.com/StreamMeDev/perfnow","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StreamMeDev%2Fperfnow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StreamMeDev%2Fperfnow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StreamMeDev%2Fperfnow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StreamMeDev%2Fperfnow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StreamMeDev","download_url":"https://codeload.github.com/StreamMeDev/perfnow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248304928,"owners_count":21081548,"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":"2025-02-03T08:52:08.642Z","updated_at":"2025-04-10T21:36:43.278Z","avatar_url":"https://github.com/StreamMeDev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A `performance.now` wrapper for node and browser support\n\n[![NPM Version](https://img.shields.io/npm/v/@streammedev/perfnow.svg)](https://npmjs.org/package/@streammedev/perfnow)\n[![NPM Downloads](https://img.shields.io/npm/dm/@streammedev/perfnow.svg)](https://npmjs.org/package/@streammedev/perfnow)\n[![Build Status](https://api.travis-ci.org/StreamMeDev/perfnow.svg?branch=master)](https://travis-ci.org/streammedev/perfnow)\n[![js-happiness-style](https://img.shields.io/badge/code%20style-happiness-brightgreen.svg)](https://github.com/JedWatson/happiness)\n\nWraps `performance.now`, `process.hrtime` and `Date.now` to provide a consistent interface for performance timing.  This module is\nbased off [work here](https://github.com/myrne/performance-now) but is not written in coffeescript.\n\n## Install\n\n```\n$ npm install --save @streammedev/perfnow\n```\n\n## Usage\n\n```javascript\nvar now = require('@streammedev/perfnow');\n\nvar start = now();\nsetTimeout(function () {\n\tconsole.log('This operation took ' + (now() - start) + 'ms');\n}, 1000);\n```\n\n## Development\n\nThis package follows semver, when you wish to publish a version run the proper npm command.  For example, if we made a bug fix you can do this:\n\n```\n$ npm version patch\n$ git push\n$ npm publish\n```\n\nHere are the other types of version bumps:\n\n- Major (`npm version major`): This is for breaking changes. Anytime a method is changed or the functionality is modified this bump should be made.\n- Minor (`npm version minor`): This is for features additions. When a new method is added which doesn't affect the behavior of existing features, this bump should be made.\n- Patch (`npm version patch`): This is for bug fixes. Only bump this if it is safe for production code to update wihout being QA'd.  (AKA, almost never)\n\nFor each of these you can run a 'pre' version by prepending to the command, ex `npm version preminor`.\n\nAll feature development should be done on a branch off `master`.  When a feature is complete and the pull request approved, \npublish a 'pre' version of the package for testing across environments.  To install that 'pre' version of the package do \nthe following, where the verison number contains the correct 'pre' version:\n\n```\n$ npm install --save @streammedev/perfnow@1.0.0-0\n```\n\nRunning the tests:\n\n```\n$ npm install \u0026\u0026 npm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreammedev%2Fperfnow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreammedev%2Fperfnow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreammedev%2Fperfnow/lists"}