# ensure-module

> Similar to yeoman, tiny build system for modules that use handlebars templates

Latest version **1.28.0** (published 2024-11-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install ensure-module
pnpm add ensure-module
yarn add ensure-module
bun add ensure-module
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.28.0 |
| Published | 2024-11-25 |
| First published | 2019-07-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | fantasyui.com |
| Maintainers | fantasyui.com |

## Links

- npm: https://www.npmjs.com/package/ensure-module
- Repository: https://github.com/fantasyui-com/ensure-module
- Homepage: https://github.com/fantasyui-com/ensure-module#readme
- Issues: https://github.com/fantasyui-com/ensure-module/issues
- npm.io page: https://npm.io/package/ensure-module

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.14
- [handlebars-copy](https://npm.io/package/handlebars-copy.md) ^1.6.0

## Recent versions

- 1.28.0 (latest) — 2024-11-25
- 1.27.0 — 2024-09-01
- 1.26.0 — 2024-08-24
- 1.25.0 — 2024-03-30
- 1.24.0 — 2023-09-17
- 1.23.0 — 2023-02-27
- 1.22.0 — 2022-11-12
- 1.21.0 — 2022-07-14
- 1.20.0 — 2022-07-10
- 1.19.0 — 2022-07-01
- 1.18.0 — 2022-06-06
- 1.17.0 — 2022-05-17
- 1.16.0 — 2022-05-09
- 1.15.0 — 2021-12-17
- 1.14.0 — 2021-11-01
- … 13 more at https://npm.io/package/ensure-module/versions

## README

# Ensure Module
Similar to yeoman, tiny build system for modules that use handlebars templates

## Example

```JavaScript

ensureModule(
  src, // path to template module directory (ex. my-templates/fancy-promise-module/)
  dest, // new module path, generally ./my_modules/my-needed-module to reference target location
  data, // contains name, description, author, dependencies, etc...
);

```

## Notes
It only ensures existence, it will not override existing data.

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