# create-matrix

> Create an array matrix.

Latest version **1.0.0** (published 2020-04-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install create-matrix
pnpm add create-matrix
yarn add create-matrix
bun add create-matrix
```

## 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 | 2020-04-29 |
| First published | 2020-04-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Richie Bendall |
| Maintainers | richienb |
| Keywords | array, matrix |

## Links

- npm: https://www.npmjs.com/package/create-matrix
- Repository: https://github.com/Richienb/create-matrix
- npm.io page: https://npm.io/package/create-matrix

## Recent versions

- 1.0.0 (latest) — 2020-04-29

## README

# create-matrix [![Travis CI Build Status](https://img.shields.io/travis/com/Richienb/create-matrix/master.svg?style=for-the-badge)](https://travis-ci.com/Richienb/create-matrix)

Create an array matrix.

[![NPM Badge](https://nodei.co/npm/create-matrix.png)](https://npmjs.com/package/create-matrix)

## Install

```sh
npm install create-matrix
```

## Usage

```js
const createMatrix = require("create-matrix");

createMatrix(2, 3, 0);
/*[
	[0, 0, 0],
	[0, 0, 0]
]*/
```

## API

### createMatrix(rows, columns, value?)

#### rows

Type: `positive integer`

The rows to create.

#### columns

Type: `positive integer`

The columns to create.

#### value

Type: `any`\
Default: `empty`

The default value to insert.

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