# performancenow

> Performance now polyfill for old browsers

Latest version **0.0.1** (published 2017-02-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install performancenow
pnpm add performancenow
yarn add performancenow
bun add performancenow
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-02-20 |
| First published | 2017-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Anton Yefremov |
| Maintainers | yefremov |
| Keywords | performance, now, polyfill, browser, node |

## Links

- npm: https://www.npmjs.com/package/performancenow
- Repository: https://github.com/yefremov/performancenow
- Homepage: https://github.com/yefremov/performancenow#readme
- Issues: https://github.com/yefremov/performancenow/issues
- npm.io page: https://npm.io/package/performancenow

## Dependencies (1)

- [datenow](https://npm.io/package/datenow.md) ^0.0.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2017-02-20
- 0.0.0 — 2017-02-20

## README

# performancenow

[![npm version](https://badge.fury.io/js/performancenow.svg)](https://badge.fury.io/js/performancenow)
[![Build Status](https://travis-ci.org/yefremov/performancenow.svg?branch=master)](https://travis-ci.org/yefremov/performancenow)

Simple `performance.now()` polyfill for old browsers and node.

## Installation
```bash
$ npm install performancenow
```

## API
Make sure to import `performancenow` module in your application entrypoint, it
will make a time stamp to measure against on every subsequent call.

```js
import 'performancenow';
```

Then just import as a usual module wherever you need it.

```js
import now from 'performancenow';

let timestamp = now();
// => 15.02
```

To polyfill `performance.now()` function.

```js
performance = performance || {};
performance.now = performance.now || require('performancenow');
```

## Running tests

```bash
$ npm install
$ npm test
```

## License

[MIT](LICENSE)

---
_Source: https://npm.io/package/performancenow · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
