# mongoose-automatic-seed

> [![CI](https://github.com/orbe-soft/mongoose-auto-seed/actions/workflows/automated-tests.yaml/badge.svg)](https://github.com/orbe-soft/mongoose-auto-seed/actions/workflows/automated-tests.yaml)

Latest version **1.0.10** (published 2022-03-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install mongoose-automatic-seed
pnpm add mongoose-automatic-seed
yarn add mongoose-automatic-seed
bun add mongoose-automatic-seed
```

Provides the command `mongoose-automatic-seed`.

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2022-03-18 |
| First published | 2022-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 14.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | lucassouzamatos |
| Maintainers | orbesoft |

## Links

- npm: https://www.npmjs.com/package/mongoose-automatic-seed
- Repository: git@github.com:orbe-soft/mongoose-auto-seed
- npm.io page: https://npm.io/package/mongoose-automatic-seed

## Dependencies (8)

- [arg](https://npm.io/package/arg.md) ^5.0.1
- [esm](https://npm.io/package/esm.md) ^3.2.25
- [ncp](https://npm.io/package/ncp.md) ^2.0.0
- [path](https://npm.io/package/path.md) ^0.12.7
- [util](https://npm.io/package/util.md) ^0.12.4
- [chalk](https://npm.io/package/chalk.md) ^5.0.0
- [mkdirp](https://npm.io/package/mkdirp.md) ^1.0.4
- [inquirer](https://npm.io/package/inquirer.md) ^8.2.0

## Recent versions

- 1.0.10 (latest) — 2022-03-18
- 1.0.9 — 2022-03-17
- 1.0.8 — 2022-02-15
- 1.0.7 — 2022-02-15
- 1.0.6 — 2022-02-15
- 1.0.5 — 2022-02-15
- 1.0.4 — 2022-02-14
- 1.0.2 — 2022-02-14
- 1.0.1 — 2022-02-11
- 1.0.0 — 2022-02-11

## README

# mongoose-automatic-seed

[![CI](https://github.com/orbe-soft/mongoose-auto-seed/actions/workflows/automated-tests.yaml/badge.svg)](https://github.com/orbe-soft/mongoose-auto-seed/actions/workflows/automated-tests.yaml)

This is an util for mongoose, that you can execute and create seeders and call it programmatically.

### Getting Started

> yarn add mongoose-automatic-seed

After you install the package, just use in your application:

```ts
import autoSeed from "mongoose-automatic-seed";
import mySeeder from "mySeeder";

await autoSeed.startup([mySeeder]);
```

```ts
/** MySeeder */
import { Seeder } from "mongoose-automatic-seed";

export default class MySeeder implements Seeder {
  /** Execute only one time */
  unique = true;

  title = "2908njk4012";

  async start(): Promise<void> {
    /** @todo */
  }
}
```

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