{"_id":"@coocaa-rn-jsplugin/nacos-env","_rev":"1-976de46106a913efa649c99f092c6b66","name":"@coocaa-rn-jsplugin/nacos-env","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@coocaa-rn-jsplugin/nacos-env","version":"1.0.0","author":"","license":"ISC","_id":"@coocaa-rn-jsplugin/nacos-env@1.0.0","maintainers":[{"name":"wuzhifeng","email":"307438041@qq.com"},{"name":"guanhaowen","email":"guanhaowen@coocaa.com"}],"bin":{"nacos-env":"dist/index.js"},"dist":{"shasum":"55b8717721130e148b3fb0c03c3462af7876908e","tarball":"https://registry.npmjs.org/@coocaa-rn-jsplugin/nacos-env/-/nacos-env-1.0.0.tgz","fileCount":13,"integrity":"sha512-+Zws5TJev12iLBiKN1cN20UZjQxxETM2VkjWhaPBXMqi+hvgtkUVG/+fJ9kxPKccezIy8MTyIh3Z2lmO88e9gg==","signatures":[{"sig":"MEUCIQDCWf9DlCwBW0WRUl+2S28CZejViYbpix0qymuTWEEt5wIgaBBAfNYdT1mndh+CoALUslCOk/YbcfWYxt02e890bCM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15890},"main":"dist/index.js","type":"module","types":"dist/lib/index.d.ts","module":"dist/index.js","gitHead":"fc4cccbcf5c1fec7c7d5855d39af8291f802b0ab","scripts":{"dev":"cross-env NODE_ENV=development rollup --config rollup.config.ts --configPlugin typescript","build":"cross-env NODE_ENV=production rollup --config rollup.config.ts --configPlugin typescript"},"_npmUser":{"name":"wuzhifeng","email":"307438041@qq.com"},"_npmVersion":"10.5.0","description":"load async nacos configuration to environment and then run the specified command","directories":{},"_nodeVersion":"18.20.1","dependencies":{"nacos":"^2.6.0","tslib":"^2.6.2","dotenv":"^16.4.5","xml2js":"^0.6.2","js-yaml":"^4.1.0","commander":"^12.0.0","cross-env":"^7.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.9.6","typescript":"^5.3.3","@types/xml2js":"^0.4.14","@types/js-yaml":"^4.0.9","@rollup/plugin-json":"^6.1.0","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-terser":"^0.4.4","rollup-plugin-cleaner":"^1.0.0","@rollup/plugin-commonjs":"^25.0.7","@rollup/plugin-typescript":"^11.1.6","@rollup/plugin-node-resolve":"^15.2.3"},"_npmOperationalInternal":{"tmp":"tmp/nacos-env_1.0.0_1725245677111_0.7127929054688662","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@coocaa-rn-jsplugin/nacos-env","version":"1.0.1","description":"load async nacos configuration to environment and then run the specified command","main":"dist/index.js","module":"dist/index.js","types":"dist/lib/index.d.ts","type":"module","bin":{"nacos-env":"dist\\index.js"},"scripts":{"dev":"cross-env NODE_ENV=development rollup --config rollup.config.ts --configPlugin typescript","build":"cross-env NODE_ENV=production rollup --config rollup.config.ts --configPlugin typescript"},"author":{},"license":"ISC","devDependencies":{"@rollup/plugin-babel":"^6.0.4","@rollup/plugin-commonjs":"^25.0.7","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^15.2.3","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6","@types/js-yaml":"^4.0.9","@types/xml2js":"^0.4.14","rollup":"^4.9.6","rollup-plugin-cleaner":"^1.0.0","typescript":"^5.3.3"},"dependencies":{"commander":"^12.0.0","cross-env":"^7.0.3","dotenv":"^16.4.5","js-yaml":"^4.1.0","nacos":"^2.6.0","tslib":"^2.6.2","xml2js":"^0.6.2"},"publishConfig":{"access":"public"},"_id":"@coocaa-rn-jsplugin/nacos-env@1.0.1","dist":{"shasum":"a99e3ab7ecd9f76dec551214904d9aeed524506e","integrity":"sha512-6l562iXNWFQ7bAbckHE2OrmR4K+daBTZgne9XGOx7QqMot28Ceta2HRXID5WrXNhaEg59UcK/fLOpSTeZv4szA==","tarball":"https://registry.npmjs.org/@coocaa-rn-jsplugin/nacos-env/-/nacos-env-1.0.1.tgz","fileCount":12,"unpackedSize":14566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJBRrDHd7mm6PfV/qqZZED30C87JgfMb0TxDdS9YsNSAiBvw2WRThUWkR/192+H/U2g4D7iC7CZG3TfDL42/BpaIQ=="}]},"_npmUser":{"name":"wuzhifeng","email":"307438041@qq.com"},"directories":{},"maintainers":[{"name":"wuzhifeng","email":"307438041@qq.com"},{"name":"guanhaowen","email":"guanhaowen@coocaa.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nacos-env_1.0.1_1725246103119_0.5753416742573207"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-02T02:54:37.008Z","modified":"2024-09-02T03:01:43.493Z","1.0.0":"2024-09-02T02:54:37.274Z","1.0.1":"2024-09-02T03:01:43.286Z"},"license":"ISC","description":"load async nacos configuration to environment and then run the specified command","maintainers":[{"name":"wuzhifeng","email":"307438041@qq.com"},{"name":"guanhaowen","email":"guanhaowen@coocaa.com"}],"readme":"# nacos-env\n\nload async nacos configuration to environment and then run the specified command\n\n\n## Getting started\n```bash\nnpm install @node-ai/nocos-env\n```\n\n## Create nacos config file\n```javascript\n// should be written in properties type\n// .conf.nacos\nNACOS_SERVER=ip:port\nNACOS_TENANT=namespace-id\nNACOS_DATA_ID=data-id\nNACOS_GROUP=group\n```\n\n## Get nacos config and run command\n```bash\nnacos-env -f/--nacos-config-file .conf.nacos -c \"command --flag1 --flag2 arg1 arg2\"\n```\n\n## More about nacos-env\n```bash\nnacos-env -h/--help\n```\n```console\nUsage: nacos-env [options]\n\nset the environment variables first, and then run a command or program\n\nOptions:\n  -v, --version                   output the current version\n  -s, --nacos-server <address>    nacos server address, will be ignored while -f/--nacos-config-file is set\n  -t, --nacos-tenant <id>         nacos namespace id, will be ignored while -f/--nacos-config-file is set\n  -d, --nacos-data-id <id>        nacos data id, will be ignored while -f/--nacos-config-file is set\n  -g, --nacos-group <group>       nacos group, will be ignored while -f/--nacos-config-file is set\n  -f, --nacos-config-file <path>  nacos configuration file, written by properties type\n  -p, --nacos-parser <parser>     nacos content will be parsed by the specified parser (choices: \"properties\", \"json\", \"xml\", \"yaml\", default: default to be parsed as properties)\n  -c, --command <command>         command to run when the environment variables are set up, command should be enclosed by quotes(\") if one or more spaces are contained in\n  -h, --help                      display help for command\n```\n","readmeFilename":"README.md","author":{}}