# nodejs-component-manager

> This component offers the generation of a structured and standard NodeJS component.

Latest version **1.0.5** (published 2023-01-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install nodejs-component-manager
pnpm add nodejs-component-manager
yarn add nodejs-component-manager
bun add nodejs-component-manager
```

## 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.5 |
| Published | 2023-01-02 |
| First published | 2023-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 307.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | NPM Sahirato |
| Maintainers | sahirato |
| Keywords | nodejs, package, component, manager, autogenerate, componentjson, autobuild, build, fs, fsgeneration, typescript, ts, tscomponent |

## Links

- npm: https://www.npmjs.com/package/nodejs-component-manager
- Repository: https://github.com/antoinefusilier/nodejs-component-manager
- Homepage: https://github.com/antoinefusilier/nodejs-component-manager#readme
- Issues: https://github.com/antoinefusilier/nodejs-component-manager/issues
- npm.io page: https://npm.io/package/nodejs-component-manager

## Dependencies (3)

- [ejs](https://npm.io/package/ejs.md) ^3.1.5
- [express](https://npm.io/package/express.md) ^4.18.2
- [nodejs-component-manager](https://npm.io/package/nodejs-component-manager.md) ^1.0.5

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.5 (latest) — 2023-01-02
- 1.0.4 — 2023-01-02
- 1.0.3 — 2023-01-02
- 1.0.2 — 2023-01-02
- 1.0.1 — 2023-01-02

## README

# Welcome to this Public ComponentManager

This component offers the generation of a structured and standard NodeJS component.
Of course this is a first version and does not contain all the future improvements and the best structure, but it remains a very useful tool to simplify the creation of NodeJS projects.
A TypeScript version should also be available soon

# Summary

- [Doc.npm](./doc/npm.md)
- [Commands](./doc/commands.md)

# Call this component
Where we use "CM" for "ComponentManager" shurtcut.

In source server file : ***app.js***
``` Javascript
const CM = require('nodejs-component-manager');
const CM = CMLib.init(app);

```

# Add an Example component

```Javascript
CM.add(component = {
    name: 'FirstTest',
    type: 'default',
    code : {
        js: 'let test = \'test\'',
        ejs: 'let test = \'test\'',
        api: 'let test = \'test\'',
        controller: 'let test = \'test\'',
        middelwares: 'let test = \'test\'',
        model: 'let test = \'test\'',
        mongo: 'let test = \'test\'',
        firebase: 'let test = \'test\'',
        amazone: 'let test = \'test\''
    }
})

```


# Description of generated files

- ComponentName.js  
``` Javascript
CM

```

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