# classgen

> generate prototype class code from json arrays

Latest version **0.0.3** (published 2014-12-08) · MIT license · 0 weekly downloads

## Install

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

Provides the command `classgen`.

## 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.3 |
| Published | 2014-12-08 |
| First published | 2014-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Yaniv Kessler |
| Maintainers | yaniv |
| Keywords | code generation |

## Links

- npm: https://www.npmjs.com/package/classgen
- Repository: https://github.com/kessler/classgen
- Issues: https://github.com/kessler/classgen/issues
- npm.io page: https://npm.io/package/classgen

## Dependencies (1)

- [minimist](https://npm.io/package/minimist.md) ^1.1.0

## Recent versions

- 0.0.3 (latest) — 2014-12-08
- 0.0.2 — 2014-12-08

## README

# classgen
generate prototype classes from json arrays

## install
```
$ npm install -g classgen
```

## usage
```
$ echo '[ "bar" ]' | classgen
```
prints:
```
function Foo() {
}

Foo.prototype.bar = function () {
}
```
replace class name:
```
$ echo '[ "bar", "foo" ]' | classgen --class=Bleep
```
prints:
```
function Bleep() {
}

Bleep.prototype.bleep = function () {
}

Bleep.prototype.bar = function () {
}
```

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