{"_id":"@a8n/node-red-nodegen","_rev":"3-943fffcd0a726f1d034a690cd8b31f7f","name":"@a8n/node-red-nodegen","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@a8n/node-red-nodegen","version":"1.0.0","keywords":["node-red","cli","template","generator"],"author":{"name":"Compubility"},"license":"MIT","_id":"@a8n/node-red-nodegen@1.0.0","maintainers":[{"name":"victor_compubility","email":"victor@compubility.com"}],"homepage":"https://github.com/compubility/node-red-nodegen#readme","bugs":{"url":"https://github.com/compubility/node-red-nodegen/issues"},"bin":{"nrg":"dist/index.js"},"dist":{"shasum":"7dfdbe53ebbf7f5e608544867f0e588062b9176f","tarball":"https://registry.npmjs.org/@a8n/node-red-nodegen/-/node-red-nodegen-1.0.0.tgz","fileCount":35,"integrity":"sha512-QiWwIhmEVLVy49tORb5FLTQXS/z1EHwjjYgZDdbz5HJ3H90uCLXnwSxyc/X8aeSen8xLGJCEeaXVwP3w/j6Xkw==","signatures":[{"sig":"MEYCIQCuNiPF3O0YbK2mcjtHqH53WgisNBxtdswK79XcU/MIaQIhAKUQ0YSjll+fCWRjC17ciV5kZECwizqvgohXW/lFhauf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35754},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"09ce6419a10b1dbb810891fb302e7a28f318239b","scripts":{"test":"playwright test","build":"rimraf dist && tsc","start":"ts-node src/index.ts","postbuild":"node dist/scripts/copy-templates.js && chmod +x dist/index.js"},"_npmUser":{"name":"victor_compubility","actor":{"name":"victor_compubility","type":"user","email":"victor@compubility.com"},"email":"victor@compubility.com"},"repository":{"url":"git+https://github.com/compubility/node-red-nodegen.git","type":"git"},"_npmVersion":"10.8.2","description":"CLI tool to generate Node-RED node templates","directories":{},"_nodeVersion":"20.19.2","dependencies":{"chalk":"^5.4.1","mustache":"^4.2.0","commander":"^14.0.0","openapi-types":"^12.1.3","@apidevtools/swagger-parser":"^12.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","ts-node":"^10.9.2","playwright":"^1.40.0","typescript":"^5.8.3","@types/node":"^24.0.4","@types/mustache":"^4.2.6"},"_npmOperationalInternal":{"tmp":"tmp/node-red-nodegen_1.0.0_1751252132048_0.7317493861885993","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@a8n/node-red-nodegen","version":"1.0.1","keywords":["node-red","cli","template","generator"],"author":{"name":"Compubility"},"license":"MIT","_id":"@a8n/node-red-nodegen@1.0.1","maintainers":[{"name":"victor_compubility","email":"victor@compubility.com"}],"homepage":"https://github.com/compubility/node-red-nodegen#readme","bugs":{"url":"https://github.com/compubility/node-red-nodegen/issues"},"bin":{"nrg":"dist/index.js"},"dist":{"shasum":"43a42e3058bf0ddb53fc32bb7c55f054de61259e","tarball":"https://registry.npmjs.org/@a8n/node-red-nodegen/-/node-red-nodegen-1.0.1.tgz","fileCount":37,"integrity":"sha512-QBSZ2f0e4utO68pSVHCHo7zSRVSCfIpT0a5yqp/jWgG0pGvxNayw5A47LklHKrzbGoQ1Sq9/lbwx38ALRkF58A==","signatures":[{"sig":"MEUCICKaPyCGxEPh3xxvGmicAd8fgFP6AEUznH5fn0ncsMA/AiEA1Sw+MBgWeMagxvthjt0PISKYn0aokcn4oHLkuOvwfeo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90542},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"24417f742c0bac96c050775dbd833f60d584c34b","scripts":{"test":"playwright test","build":"rimraf dist && tsc","start":"ts-node src/index.ts","postbuild":"node dist/scripts/copy-templates.js && chmod +x dist/index.js"},"_npmUser":{"name":"victor_compubility","actor":{"name":"victor_compubility","type":"user","email":"victor@compubility.com"},"email":"victor@compubility.com"},"repository":{"url":"git+https://github.com/compubility/node-red-nodegen.git","type":"git"},"_npmVersion":"10.8.2","description":"CLI tool to generate Node-RED node templates","directories":{},"_nodeVersion":"20.19.2","dependencies":{"chalk":"^5.4.1","mustache":"^4.2.0","commander":"^14.0.0","openapi-types":"^12.1.3","@apidevtools/swagger-parser":"^12.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","ts-node":"^10.9.2","playwright":"^1.40.0","typescript":"^5.8.3","@types/node":"^24.0.4","@types/mustache":"^4.2.6"},"_npmOperationalInternal":{"tmp":"tmp/node-red-nodegen_1.0.1_1751339216196_0.11517878400829917","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@a8n/node-red-nodegen","version":"1.0.2","description":"CLI tool to generate Node-RED node templates","type":"module","main":"dist/index.js","types":"dist/index.d.ts","bin":{"nrg":"dist/index.js"},"scripts":{"build":"rimraf dist && tsc","postbuild":"node dist/scripts/copy-templates.js && chmod +x dist/index.js","start":"ts-node src/index.ts","test":"playwright test"},"repository":{"type":"git","url":"git+https://github.com/compubility/node-red-nodegen.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["node-red","cli","template","generator"],"author":{"name":"Compubility"},"license":"MIT","bugs":{"url":"https://github.com/compubility/node-red-nodegen/issues"},"homepage":"https://github.com/compubility/node-red-nodegen#readme","dependencies":{"@apidevtools/swagger-parser":"^12.0.0","chalk":"^5.4.1","commander":"^14.0.0","mustache":"^4.2.0","openapi-types":"^12.1.3"},"devDependencies":{"@types/mustache":"^4.2.6","@types/node":"^24.0.4","playwright":"^1.40.0","rimraf":"^6.0.1","ts-node":"^10.9.2","typescript":"^5.8.3"},"_id":"@a8n/node-red-nodegen@1.0.2","gitHead":"0a29efdf7dc9f969e4418579949090e5ac08ac2c","_nodeVersion":"20.19.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-tFeT9+pQVU14kKCBk+ra8iZMtIFbTe/fU3Tzyv6UioXh+da4lUQCGyxfIVnPnPxs0utzlOuwaF2oEhoIZ/arDQ==","shasum":"11ac9fe9f6c05ec8d06519830f607404aaed0d42","tarball":"https://registry.npmjs.org/@a8n/node-red-nodegen/-/node-red-nodegen-1.0.2.tgz","fileCount":37,"unpackedSize":90910,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBrv8lh0r1aNdT0sIUzkHMOuQYXseVNXQ3KYsWk4n1EhAiEA7DUVkrZ6ZrRcJp/Un+6DiaymElpKIzlN1sn3KtpDA/0="}]},"_npmUser":{"name":"victor_compubility","email":"victor@compubility.com","actor":{"name":"victor_compubility","email":"victor@compubility.com","type":"user"}},"directories":{},"maintainers":[{"name":"victor_compubility","email":"victor@compubility.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-red-nodegen_1.0.2_1751417354972_0.5850758901600897"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-30T02:55:31.922Z","modified":"2025-07-02T00:49:15.379Z","1.0.0":"2025-06-30T02:55:32.209Z","1.0.1":"2025-07-01T03:06:56.384Z","1.0.2":"2025-07-02T00:49:15.155Z"},"bugs":{"url":"https://github.com/compubility/node-red-nodegen/issues"},"author":{"name":"Compubility"},"license":"MIT","homepage":"https://github.com/compubility/node-red-nodegen#readme","keywords":["node-red","cli","template","generator"],"repository":{"type":"git","url":"git+https://github.com/compubility/node-red-nodegen.git"},"description":"CLI tool to generate Node-RED node templates","maintainers":[{"name":"victor_compubility","email":"victor@compubility.com"}],"readme":"# Node-Red Node Generator CLI\nThe CLI to generate custom node-red nodes.\n\n\n## Installation\n```\nnpm i -g @a8n/node-red-nodegen\n```\n\n## Usage\nWhen in doubt, use the `--help` flag to any command.\n\nStart from scratch:\n```\nnrg init --name my-first-node\n```\nUse an OpenAPI Spec file:\n```\nnrg generate ./my-spec-file.yml --name my-node-from-spec\n```\n\n\n## Testing Locally\n### Docker\nIf you're running Node Red via Docker, update your docker file \nto include the new node. Here's a full example:\n```dockerfile\nversion: '3.8'\nservices:\n  nodered:\n    image: nodered/node-red:latest\n    ports:\n      - \"1880:1880\"\n    volumes:\n      - ./data:/data\n      - ./path/to/custom-node:/data/node_modules/package-name-with-scope-if-used\n```\n\n> NOTE: If you're using Docker Desktop, enable the \"Use Docker Compose V2\" in the General Settings section:\n![img.png](images/img.png)\n\n`docker-compose up`\n\nYou're custom node should now be an option.\n","readmeFilename":"README.md"}