# loadtime

> Measure how long it takes to load an npm module in node

Latest version **1.0.0** (published 2018-10-30) · ISC license · 0 weekly downloads

## Install

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

Provides the command `loadtime`.

## 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.0 |
| Published | 2018-10-30 |
| First published | 2018-10-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 3 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | danielkalen |
| Maintainers | danielkalen |

## Links

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

## Dependencies (3)

- [execa](https://npm.io/package/execa.md) ^1.0.0
- [time-span](https://npm.io/package/time-span.md) ^2.0.0
- [fs-jetpack](https://npm.io/package/fs-jetpack.md) ^2.2.0

## Recent versions

- 1.0.0 (latest) — 2018-10-30

## README

# loadtime
[![Build Status](https://travis-ci.org/danielkalen/loadtime.svg?branch=master)](https://travis-ci.org/danielkalen/loadtime)
[![NPM](https://img.shields.io/npm/v/loadtime.svg)](https://npmjs.com/package/loadtime)

> Measure how long it takes to load an npm module in node

## Install

```
$ npm install --save --global loadtime
```


## Usage
```bash
$ loadtime express
#=> 59.194509ms

$ loadtime bluebird
#=> 26.245871ms
```



## API

### loadtime(module)

Returns a `Promise` which will eventually resolve the duration it took to load the provided `module` in milliseconds.

```js
const loadtime = require('loadtime');

loadtime('axios').then((time)=> {
    console.log(time);
    //=> 25.811197
})
```

## License
MIT © [Daniel Kalen](https://github.com/danielkalen)

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