# nmap

> (n, map) => Array.from({ length: n }, map)

Latest version **1.1.0** (published 2016-11-09) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2016-11-09 |
| First published | 2016-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nao Yonamine |
| Maintainers | mohayonao |
| Keywords | array, from, map |

## Links

- npm: https://www.npmjs.com/package/nmap
- Repository: https://github.com/mohayonao/nmap
- Homepage: http://mohayonao.github.io/nmap/
- Issues: https://github.com/mohayonao/nmap/issues
- npm.io page: https://npm.io/package/nmap

## Recent versions

- 1.1.0 (latest) — 2016-11-09
- 0.9.0 — 2016-06-29

## README

# nmap
[![Build Status](http://img.shields.io/travis/mohayonao/nmap.svg?style=flat-square)](https://travis-ci.org/mohayonao/nmap)
[![NPM Version](http://img.shields.io/npm/v/nmap.svg?style=flat-square)](https://www.npmjs.org/package/nmap)
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](http://mohayonao.mit-license.org/)

> (n, map) => Array.from({ length: n }, map)

## Installation

```
npm install nmap
```

## API

- `nmap(n: length, map: function): any[]`

## Examples

```js
const nmap = require("nmap");

nmap(4, () => 0);
// → [ 0, 0, 0, 0 ]

nmap(4, i => i);
// → [ 0, 1, 2, 3 ];
```

## License

MIT

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