Catalog npm
Back to packageRELEASE DETAILS

0.0.2

npm

@0bdx/gen-class

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

classcligenerator
Published20 Apr 2023
Direct dependencies4
Transitive dependenciesNot calculated

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.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0bdx/ainta
Environment
{
  "local_name": "@0bdx/ainta",
  "alias": false,
  "peer_metadata": null
}
^0.0.18runtime
@0bdx/build-helpers
Environment
{
  "local_name": "@0bdx/build-helpers",
  "alias": false,
  "peer_metadata": null
}
^0.0.4development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^18.15.12development
rollup
Environment
{
  "local_name": "rollup",
  "alias": false,
  "peer_metadata": null
}
^3.20.6development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-KVdiEG8hl0nf3FJGoGoLzcuv2mPUtWRyWGi12UJR9hVPAvXYskj5pbLmqe0r5yN3ySPRYgmEnPfUbj7m8nDVpg==",
  "shasum": "4c052f5f36de3c3bcc3db21669a6e826858e5513",
  "tarball": "https://registry.npmjs.org/@0bdx/gen-class/-/gen-class-0.0.2.tgz",
  "fileCount": 6,
  "unpackedSize": 8911,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQCZHekc7ch+buqjgwmE4ZUFTTHjOxWGXg9AbqEhAZP45AIhAL2pRh9WmSOtDk/AaSfsN09oc8pPBAkcwXzzAz53qLKs"
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQRvIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3jg/9Eg1BDmxd/Kpm0kfU2A3mwmYxb1DLel3NNlfe4qYCP4hpf0gv\r\nJhz00ny7WBpwT/dtLIFDDw9QHL8bK62rMwE3jUiOxhkCWp8xVeLx3CUGIW2p\r\n3Ix9Qh5KG8bg0UJAo7TjYw3Ymrjsf/wnSIRIsMFntHktwcDym/J2zX4eGvUb\r\nPhRzWvdK+Rdnpcv9kobiurdYy8H2u4dMaYhaE4DGPAP9qWoqiRwOZmtQegs8\r\ng96W1JJW0uQbZkYkVNd/dh+m0vTSHPfp95Eep0Jy6LxSUQ5Ky5RO1US5nuek\r\nIBzsdozyDkfXU76qUfG6+XW0sBJlB0iAnuoQgSwxgJAs0t/L0+h6qRVIDgqx\r\n5wIR/hwZ/piuCojcXmg08hmU1lusX3UErfUXDQAkweHg9LCdyTLyYZmZcWPy\r\nhmAWu1sH8237Y6eNpgpHkxivRfsSKgO1ERuWdkHrRaLftD7mWadbjE8qRIWb\r\nk8UuKb9bW7ofJJlOEAWfW51uuwH5XpUMa5toFI+LHIea0ojYYczjSkJLqdi/\r\nIPF+UwnBtyunxyqMdk5w6L8cUHP2RPItyFdzKbhlPcsv+gwRN+a0cLMjtRc3\r\n2a4KD5UQVkLtAcCqLhqz2g62g2AWD3i26vTf3A780Gcw91h889/CohSYwpDK\r\nf9TZ5fJ451nz4hYHzMw4PNGWNVNk45t8hoI=\r\n=KoJM\r\n-----END PGP SIGNATURE-----\r\n"
}

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_version:f8856c41f776115b5246b407ff06bc7cdffa131e42355d462aecd3828fed752d

Other collected versions

0.0.120 AprView all collected versions →