# lnfc

> Lal's Nodejs File structure Creator or LNFC

Latest version **2.0.1** (published 2020-05-10) · ISC license · 0 weekly downloads

## Install

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

Provides the command `lnfc`.

## 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 | 2.0.1 |
| Published | 2020-05-10 |
| First published | 2020-05-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 12.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | jithinlal |
| Maintainers | jithinlal |
| Keywords | node-js, file-creator |

## Links

- npm: https://www.npmjs.com/package/lnfc
- Homepage: https://github.com/jithinlal/lnfc
- npm.io page: https://npm.io/package/lnfc

## Dependencies (5)

- [fs-extra](https://npm.io/package/fs-extra.md) ^9.0.0
- [inquirer](https://npm.io/package/inquirer.md) ^7.1.0
- [commander](https://npm.io/package/commander.md) ^5.1.0
- [lower-case](https://npm.io/package/lower-case.md) ^2.0.1
- [change-case](https://npm.io/package/change-case.md) ^4.1.1

## Recent versions

- 2.0.1 (latest) — 2020-05-10
- 2.0.0 — 2020-05-10
- 1.1.2 — 2020-05-09
- 1.1.1 — 2020-05-09
- 1.1.0 — 2020-05-01
- 1.0.0 — 2020-05-01

## README

# LNFC

Lnfc is a helpful nodejs file creator development depandency for node-express-mongoose stack.
With LNFC you could generate:

- Models
- Services
- Controllers
- Routes
- Middlewares

Or just 5 files within one folder based on your feature.

**With pre-generated CRUD operations enabled**

### Installation

LNFC requires [Node.js](https://nodejs.org/) to run.

Install LNFC as a global npm package.

```sh
$ npm install lnfc -g
```

### Options

Make use of the options below along with a name to generate the corresponding file name of the service you want

| Option       | Description                                                      |
| ------------ | ---------------------------------------------------------------- |
| **m**        | Creates a model                                                  |
| **c**        | Creates a controller                                             |
| **r** **-m** | Creates a router (-m enables a middleware option on your routes) |
| **s**        | Creates a service                                                |
| **w**        | Creates a middleware                                             |
| **a**        | Creates a complete flow of all the options above                 |

The new update includes the option to create your file structure based on feature rather than that of roles.
Just include **-f** option along with **all**, just like below;

```sh
$ lnfc a -f
```

This will create a folder based on your feature and all the files needed for that feature within one folder.
**_Productivity, here I come!!!_**

## License

MIT

**Free Software, Hell Yeah!**

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