Catalog npm
Back to packageRELEASE DETAILS

0.0.1

npm

@0bdx/gen-class

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

classcligenerator
Published20 Apr 2023
Direct dependencies3
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 3

Native requirements
3 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
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-b0u5NLV9QF37cst0ehgwiZwmIFNVzplF4SXan/avKy2UjxfzB4QitAVapd7Y8Sy2IezaqTGTJP8+mg7j0NrA8g==",
  "shasum": "9b226856398d9ee66e37a2fe2642d3c4498e6817",
  "tarball": "https://registry.npmjs.org/@0bdx/gen-class/-/gen-class-0.0.1.tgz",
  "fileCount": 6,
  "unpackedSize": 3893,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIFMV6wKJZN/ijkTSXHXTcu/jmQ5lYOsaDWFMeZkIgjqrAiBL5+wysqf8xQtTMzTUDa5LyC+byyH0qNZib8l9+ucK/w=="
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQPspACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqw6A//crLyKi4MB/bq6QrLaJxdUUMx0tFc1FB7u+zX2hr4JS46bfzD\r\nBEDEn5cnhiH8deHVBXO3T/P1GcEFXFmbCCEq/pLbRzlxrIpf42CrCs828amy\r\n0oTWXDqPcRpsHaz5eFIf5/JQnK41YyHuGlbP76R5GfM1GAcxOh6fDl7BRLjw\r\nQusW4wneueHmdntIq2xn6ZPMXa3VA1WzkCkZt06GjtkXLV7aqpw1NlbtruV8\r\nS74NS7Hchnpxd3nGk40eqm6Na88LohPGwAjrg1ABJD/yB8On6ZxZ/fudoUIa\r\nRNZbKqnOvxsTB+lAwSsP5XaifRei30DixEz/YNrRT4CA9b7XRZumEuvS4y88\r\nGqsaEEXCba90hKeyd8XEW9xR0huuHfejXARFg00v1I/G7M6KPXxrZUnTHzif\r\nwRBgGQsGDELnb3+0kd5IFjUdqv/hgBwYtfZpGqv9DvsW3t3M1VUaRoDXK5w2\r\nwn/MUtjuYmmf1GvNg1Y0pkWnSMPWe7xdDItNsr6WV3w5UdtlU+iKiP+IqqmP\r\nku2M7ucdjpDGxQ5tbpzjLf++tVdbw7ILIbjY0jDoKZ81kVZXYENLGXqTyAO3\r\nshqOrT9sjKgyJklm4Z0LqIvuUPS/ZotqN+Az+BE8CX3MfdeCnyXLKw8OKWdV\r\nuY8DnCj59A7jbvzQHClpO6SgErXKV8JPHLU=\r\n=9ga7\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:9b83a9143ea0e5432c2f9cf5ea2ea20c9fa4c50124aa85e42be808bf38335acb

Other collected versions

0.0.220 AprView all collected versions →