# rgenie

> A somewhat opinionated React / Redux component generator. Experimental for now, but certainly useful for small or lightweight projects

Latest version **0.0.1** (published 2018-11-15) · MIT license · 0 weekly downloads

## Install

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

Provides the command `rgenie`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2018-11-15 |
| First published | 2018-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ahad Bokhari |
| Maintainers | ahadb |
| Keywords | component, generator, react, node, cli, class, function, components, command, scaffold |

## Links

- npm: https://www.npmjs.com/package/rgenie
- Repository: https://github.com/ahadb/r-genie
- Homepage: https://github.com/ahadb/r-genie#readme
- Issues: https://github.com/ahadb/r-genie/issues
- npm.io page: https://npm.io/package/rgenie

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.1
- [minimist](https://npm.io/package/minimist.md) ^1.2.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2018-11-15

## README

## `rgenie`

A somewhat opinionated React / Redux component generator. Experimental for now, but certainly useful for small
or lightweight projects

### Installation

`npm install -g rgenie`

### Usage

```
# rgenie <option> [react] <option> [my-component] <option>
# rgenie -t react -n my-component --f
```

For now `rgenie` plops your file in a `components` directory relative to where you run the command in your project

For example:

```
$ ~/my-project-root
$ mkdir example
$ cd example
$ ~/my-project-root/example
$ rgenie rgenie -t react -n my-component --f

✔ Success. Your 'react' component 'foo-component' was created
  Execution time (hr): 0s 2.341825ms
  
...

├── example
│   └── components
│       └── foo-component.js
```

### Options

* -t, --type
* -n, --name
* -f, --functional
* -c, --class

### Roadmap

- [x] Class level component
- [ ] Add Redux generator, currently only react
- [ ] Option for custom directory
- [ ] Option path-to custom directory
- [ ] Utils for async read and write + refactoring

### Test

`node test/tests.js`

```bash
✔ Success. Your 'react' component 'MyFunctionalComponent' was created
  Execution time (hr): 0s 0.795919ms
✔ Success. Your 'react' component 'MyClassComponent' was created
  Execution time (hr): 0s 8.199699ms
TAP version 13
# hi
ok 1 should be equal
# hi
ok 2 should be equal

1..2
# tests 2
# pass  2

# ok
```

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