Catalog npm
PACKAGE EXPLORERView in registry

@0bdx/gen-class

npm

Generates files containing JavaScript classes and unit tests, based on a JSON schema.

classcligenerator
Versions collected2
Direct dependencies4From release 0.0.2
Last observed20 Oct, 22:04 UTC

README

Current package documentation

@0bdx/gen-class

Generates files containing JavaScript classes and unit tests, based on a JSON schema.

∅  Version: 0.0.2
∅  NPM: https://www.npmjs.com/package/@0bdx/gen-class
∅  Repo: https://github.com/0bdx/gen-class
∅  Homepage: https://0bdx.com/gen-class

@TODO add an overview

Installation and usage

gen-class can be installed as dependency for programmatic use, or as a command line app.

Installation and usage as a dev-dependency

npm install @0bdx/gen-class --save-dev
import genClass from '@0bdx/gen-class';

console.log(genClass({
    name: 'MyClass',
    instance: {
        scalars: [
            { isOk: { type: 'boolean' } }
        ]
    }
}));

Installation and usage as a command line app

Make a folder called 'my/src/classes/', and a file called 'basic-class.json':

{
    "name": "MyClass",
    "instance": {
        "scalars": [
            { "isOk": { type: "boolean" } }
        ]
    }
}
npm install @0bdx/gen-class --global
gen-class --help
gen-class --version
gen-class examples/example-1/basic-class.json --output examples/example-1
gen-class my-class-definitions.json --output my/src/classes/

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 2

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.2Registry latest20 Apr 20234
0.0.120 Apr 20233

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0bdx/gen-class

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:04 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d22168e67bc18222af72ac06606ce0606ef8c463f01dc3771b3c45812bef340a