# bigint-time

> Get the current time in bigint time.

Latest version **1.0.2** (published 2021-01-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install bigint-time
pnpm add bigint-time
yarn add bigint-time
bun add bigint-time
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-01-01 |
| First published | 2021-01-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.4 |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Martin Heidegger |
| Maintainers | leichtgewicht, dkastl, rangermauve |
| Keywords | nanoseconds, nano, bigint, time, hrtime, now |

## Links

- npm: https://www.npmjs.com/package/bigint-time
- Repository: https://github.com/consento-org/bigint-time
- Homepage: https://github.com/consento-org/bigint-time#readme
- Issues: https://github.com/consento-org/bigint-time/issues
- npm.io page: https://npm.io/package/bigint-time

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-01-01
- 1.0.1 — 2021-01-01

## README

# bigint-time

`bigint-time` uses [`process.hrtime.bigint`][hrtime] and
[`performance.now()`][now] to return the time in nanoseconds since epoch.

- Node.js & Browser compatible.
- TypeScript types available.
- No dependencies.

[hrtime]: https://nodejs.org/api/process.html#process_process_hrtime_bigint
[now]: https://developer.mozilla.org/en-US/docs/Web/API/Performance/now

## Usage

```javascript
const bigtime = require('bigint-time')

const time = bigtime() // BigInt number returned of the time.
```

## Compatibility

This library assumes Node > 10.4 and that the Browsers support [BigInt][bigint]
and [performance.now][perfnow].

The resolution and accuracy may vary depending on
platform.

[bigint]: https://caniuse.com/bigint
[perfnow]: https://caniuse.com/high-resolution-time

## License

[MIT](./LICENSE)

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