{"_id":"definition","_rev":"32-9edc724854119985b48b49d67146ac0f","name":"definition","dist-tags":{"latest":"2.0.14"},"versions":{"1.0.0":{"name":"definition","version":"1.0.0","keywords":["class","define","es6","es5","helper","oop"],"author":{"name":"Chris Ackerman","email":"bluejeansandrain@gmail.com"},"license":"MIT","_id":"definition@1.0.0","maintainers":[{"name":"bluejeansandrain","email":"bluejeansandrain@gmail.com"}],"homepage":"https://github.com/ChrisAckerman/node-definition","bugs":{"url":"https://github.com/ChrisAckerman/node-definition/issues"},"dist":{"shasum":"fe28a24f3c0de6cf001557908931ebb27f4e07ea","tarball":"https://registry.npmjs.org/definition/-/definition-1.0.0.tgz","integrity":"sha512-4evy19mnG5FBMxGyxEp3QWbFjcXr+WGtYGr6GptYXQ5L7XqSFSfI2yQK+sJtFYJfJUXKScgANUAaKCxCQir9ZQ==","signatures":[{"sig":"MEQCIDVnvvzs15O5rptg4iWvWRijuLv/tZsvG7OBkyxVT1AAAiAfbQCjdBMt8W/+iUtR1IOa6WYtNsTucZ7JOeUhypI0PA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"definition.js","_from":".","_shasum":"fe28a24f3c0de6cf001557908931ebb27f4e07ea","gitHead":"5139585222d5ecee16f62620c55801864118c4ad","scripts":{"test":"mocha -R spec -u bdd ./test/index.js"},"_npmUser":{"name":"bluejeansandrain","email":"bluejeansandrain@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"https://github.com/ChrisAckerman/node-definition.git","type":"git"},"_npmVersion":"1.4.23","description":"Class definition helper which closely maps to ES6 classes.","directories":{},"dependencies":{"lodash":"^2.4.1"},"devDependencies":{"chai":"^1.10.0","mocha":"^2.0.1"}},"1.0.1":{"name":"definition","version":"1.0.1","keywords":["class","define","es6","es5","helper","oop"],"author":{"name":"Chris Ackerman","email":"bluejeansandrain@gmail.com"},"license":"MIT","_id":"definition@1.0.1","maintainers":[{"name":"bluejeansandrain","email":"bluejeansandrain@gmail.com"}],"homepage":"https://github.com/ChrisAckerman/node-definition","bugs":{"url":"https://github.com/ChrisAckerman/node-definition/issues"},"dist":{"shasum":"761f7ad8e27a134f6a9b32aee6ccfb54ae6abfd1","tarball":"https://registry.npmjs.org/definition/-/definition-1.0.1.tgz","integrity":"sha512-ZbSxAWOlRv0GRzczPedQ503z8Ptj830RdLCQ36ZmPvBOniCAStalCBC27IEqb/TCGFHjV0h6y1dL4BQgdce6tg==","signatures":[{"sig":"MEUCIQCW8veLTxn3JDE/ZD0WP9IOBsdbbJTIobbXHturserBuAIgf1Cc1oLUFwod0wuuRbNfTedHlqPzmvZXGb9/UacdpLE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"definition.js","_from":".","_shasum":"761f7ad8e27a134f6a9b32aee6ccfb54ae6abfd1","gitHead":"f666e30d48747655210fdb2ec6c9ba14af73894d","scripts":{"test":"mocha -b -R spec -u bdd ./test/index.js"},"_npmUser":{"name":"bluejeansandrain","email":"bluejeansandrain@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"https://github.com/ChrisAckerman/node-definition.git","type":"git"},"_npmVersion":"1.4.23","description":"Class definition helper which closely maps to ES6 classes.","directories":{},"dependencies":{"lodash":"^2.4.1"},"devDependencies":{"chai":"^1.10.0","mocha":"^2.0.1"}},"1.0.2":{"name":"definition","version":"1.0.2","keywords":["class","define","es6","es5","helper","oop"],"author":{"name":"Chris Ackerman","email":"bluejeansandrain@gmail.com"},"license":"MIT","_id":"definition@1.0.2","maintainers":[{"name":"bluejeansandrain","email":"bluejeansandrain@gmail.com"}],"homepage":"https://github.com/ChrisAckerman/node-definition","bugs":{"url":"https://github.com/ChrisAckerman/node-definition/issues"},"dist":{"shasum":"194449adf6e30fd1aa94e5ca183219941bf41099","tarball":"https://registry.npmjs.org/definition/-/definition-1.0.2.tgz","integrity":"sha512-zoUjwCC1QMgs5fw2ljNs9Q/XlijUgtV30bH0Uk6I34wk5E/EgDr8UJZS1ixkVQmApAySOA46v14awu40yK2zOQ==","signatures":[{"sig":"MEYCIQC6nqE3znowpv7WSUXp1SrimhJbvjzyhFwb6/vW2iWz7wIhAPEVF9uexr3/UE0Y/Irc7d1JpANrIwrGBPEzi6QmVcFo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"definition.js","_from":".","_shasum":"194449adf6e30fd1aa94e5ca183219941bf41099","gitHead":"58f0a84a7169621e8a1f49587a7eb64def2ff2aa","scripts":{"test":"mocha -b -R spec -u bdd ./test/index.js"},"_npmUser":{"name":"bluejeansandrain","email":"chris@topher.land"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/ChrisAckerman/node-definition.git","type":"git"},"_npmVersion":"2.11.3","description":"Class definition helper which closely maps to ES6 classes.","directories":{},"_nodeVersion":"0.12.7","dependencies":{"lodash":"^2.4.1"},"devDependencies":{"chai":"^1.10.0","mocha":"^2.0.1"}},"1.0.3-0":{"name":"definition","version":"1.0.3-0","_id":"definition@1.0.3-0","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"bin":{"def":"dist/cli.js"},"dist":{"shasum":"c424b1aa2ac72a24217bfdc4f669fd8ebe3fedf5","tarball":"https://registry.npmjs.org/definition/-/definition-1.0.3-0.tgz","fileCount":20,"integrity":"sha512-9x1B2YgV6NZilqPB7VOlSJNHCSsgA+fkr42NVxh2M50/Vhah/srbQ9c+g+FMY4xPoPKvMPo/ildXn3M5exwxOA==","signatures":[{"sig":"MEYCIQDJpyoZBDBI2QEYk+aEe0WWCbhpoIjxsHyKqTvg2XADEwIhAJ354SBiORyXRXcwTpuClUUsMBVxeI1IcqsMY8TnriCr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33743},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"cab38ea344cfa788256f5538dd78260e28fa7529","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.2.3","description":"To install dependencies:","directories":{},"_nodeVersion":"20.10.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_1.0.3-0_1709820627135_0.5445754163533247","host":"s3://npm-registry-packages"}},"1.0.3-1":{"name":"definition","version":"1.0.3-1","_id":"definition@1.0.3-1","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"bin":{"def":"dist/cli.js"},"dist":{"shasum":"74d2ea49272aee3dbf93663e00759874321cbbb1","tarball":"https://registry.npmjs.org/definition/-/definition-1.0.3-1.tgz","fileCount":20,"integrity":"sha512-sLz41OgyuGW0G/VJN6zJ5RRG0AYqelhJCnbh+yZLdYibbZK+i4rjbkID6keGbr0FuB3PQWTzJMM+t/G0pfTQxQ==","signatures":[{"sig":"MEYCIQDT6NOXT0Fpd6tcUB/HUn2482AVrcGeiCn+BP8PvsViEgIhAM9bQQQwWt/NWq3SQgl6UwiCbV8+2IAk/mWyfJN5nXLy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33743},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"eae0a72310cba44016aee54bd5d2d0fedb75594a","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.2.3","description":"To install dependencies:","directories":{},"_nodeVersion":"20.10.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_1.0.3-1_1709822838001_0.8607211164329784","host":"s3://npm-registry-packages"}},"1.0.3-2":{"name":"definition","version":"1.0.3-2","_id":"definition@1.0.3-2","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"bin":{"def":"dist/cli.js"},"dist":{"shasum":"c16fcdb1e10a08115deaa95930d59fbe54de1cb5","tarball":"https://registry.npmjs.org/definition/-/definition-1.0.3-2.tgz","fileCount":20,"integrity":"sha512-QYZPWAwhWUnmcyA54IfxipPMKQ0RaDVIJjtbUbUybEiF8nuq9L73QXoUZAn30jlEpaH0Ts1qDa3qEA1ucJYarg==","signatures":[{"sig":"MEUCIQDjkLonuKa34ZHFIxRAJzEYVHbiLvOr+KPrSv3wfirCTgIgJ0/Kuo8sahI99yuT/czmqd5xOoa3CWyczSoHjsjAU0E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20923},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"f313fdb48f3c60b7c7cd3d089c86c9d05045c758","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.2.3","description":"To install dependencies:","directories":{},"_nodeVersion":"20.10.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_1.0.3-2_1709822939159_0.3517568838268419","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"definition","version":"1.0.3","_id":"definition@1.0.3","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"bin":{"def":"dist/cli.js"},"dist":{"shasum":"d533d54cfe330cba83cb5e5d49965ea75b349e91","tarball":"https://registry.npmjs.org/definition/-/definition-1.0.3.tgz","fileCount":20,"integrity":"sha512-v9YGP6GoutByShX/ro9LGQsPY+2xiAjyQWDpslkRDwmiXkddVRR2jPiGMfXoGJPZDBEnm+QMmFBrshyeY3gNUA==","signatures":[{"sig":"MEQCIFRpdimbAv0O2fQFld00sDkjBrCfUbZuyfKzuglfNlkfAiARjtHTFwCgC+89jfHPv+Jy8j+HSdLuPTEKZ3SOXl8DNg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20921},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"6088ff5e35841d6e1e7b9af21883a76e5a94384e","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.2.3","description":"To install dependencies:","directories":{},"_nodeVersion":"20.10.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_1.0.3_1709823152413_0.8637945591905367","host":"s3://npm-registry-packages"}},"1.0.4-0":{"name":"definition","version":"1.0.4-0","_id":"definition@1.0.4-0","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"bin":{"def":"dist/cli.js"},"dist":{"shasum":"50ea62459d212533abcdeb671c96c25b055a54ff","tarball":"https://registry.npmjs.org/definition/-/definition-1.0.4-0.tgz","fileCount":20,"integrity":"sha512-Won7mvf4127zeQG4ouuaDwV6p+tmcPKAgWWTjLiQZD+1OUjtFcIH0gJtcbKZE1dnEpXkITdHwpzWxyGWXnyItA==","signatures":[{"sig":"MEUCICc54YMoc+raIf8Zge5cH/vwoR4Pqc7N7jfafw4ictqGAiEAnm7YGonOKHlfPv2Trszp2UEtcbBE3tIxfT1bfrcAkO0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23083},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"9b75b0e7d31094e699bd1b823a2158a654e996ad","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.2.4","description":"Generate typescript type definition and enums from json records.","directories":{},"_nodeVersion":"20.11.1","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_1.0.4-0_1709827958682_0.7744297190144032","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"definition","version":"2.0.0","keywords":["json","records","definition","typescript","enums","type"],"_id":"definition@2.0.0","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"bin":{"def":"dist/cli.js"},"dist":{"shasum":"904bfee98bdfc34ad85d9cd0914637affa55002e","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.0.tgz","fileCount":20,"integrity":"sha512-y5rbcplMr5cWZ/1H15bdsryFN2goc5r926kfvqN3CHhUqhIj6DEP5Uz7Ej3fXQYqS/9gFUkAo5NBH8Z8/I1p+Q==","signatures":[{"sig":"MEUCIBdkdl+ZPZtFoixAp0CVRTCKdA5gnrHPXcb431mEJkFGAiEA1FjpbTG1kKfWKdBt04WC/xzjtNLLF6pANPyM3ftMMFo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23189},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"5e93052516ba5cc5f7c07796e06e104faa403af7","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.2.4","description":"Generate typescript type definition and enums from json records.","directories":{},"_nodeVersion":"20.11.1","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_2.0.0_1709828319129_0.8220835739408572","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"definition","version":"2.0.1","keywords":["json","records","definition","typescript","enums","type"],"_id":"definition@2.0.1","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"bin":{"def":"dist/cli.js"},"dist":{"shasum":"05a00a95a4fac0936b9d8db9d575a3f2456a6dfa","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.1.tgz","fileCount":21,"integrity":"sha512-tP6FwVE8XT7pmfNb1+yQ/A7xFmOOrna0Gt/B9LEUYaQWI83EKNbGJyzGqcUqEcDqMLQ6ARl13LdY2jf0j49INA==","signatures":[{"sig":"MEQCICf63con2FAcxK98+bhb7MgENZmgODgd+6pUgEKuI4UuAiBcRRUJd+QIwvlbnK/hRDhFuJ6tJ15RqdlhzbQfufDGzQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24440},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"31a4d021adf453e1f268c76161ec824a401a3453","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.2.4","description":"Generate typescript type definitions and enumerations from business definition json records.","directories":{},"_nodeVersion":"20.11.1","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_2.0.1_1710517435652_0.4886685031913687","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"definition","version":"2.0.2","keywords":["json","records","definition","typescript","enums","type"],"author":{"url":"https://github.com/anuoua","name":"anuoua"},"_id":"definition@2.0.2","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"homepage":"https://github.com/anuoua/definition","bin":{"def":"bin/cli.js"},"dist":{"shasum":"e5392cc1d408f33c56c169ee0f12a3f753f035d2","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.2.tgz","fileCount":22,"integrity":"sha512-E+u/LMnmd3miQq03+EAZ0VWIBADYMxzTjGZlpxJfDeJQumM3tL6m8XjIYffxu7cJpQqWAN+Pp5hx0NvVa4rPBw==","signatures":[{"sig":"MEUCIQDsPAVQ809HlE8sN8yN1naDu8Qh6lemuNaV4zpNZRb8NQIgdn/Kzp8O32Oy6Z5ly8y0oHNnaOb23h8IXlfDw7Wp0D8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24629},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"68d9f49b97d35ad96d08bf33e64216404ad021e5","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.7.0","description":"Generate typescript type definitions and enumerations from business definition json records.","directories":{},"_nodeVersion":"20.14.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_2.0.2_1718372538599_0.03180981626633006","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"definition","version":"2.0.3","keywords":["json","records","definition","typescript","enums","type"],"author":{"url":"https://github.com/anuoua","name":"anuoua"},"_id":"definition@2.0.3","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"homepage":"https://github.com/anuoua/definition","bin":{"def":"bin/cli.js"},"dist":{"shasum":"d081ba037c90cb22849b4f8cfb4ef707c27593b3","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.3.tgz","fileCount":22,"integrity":"sha512-HbSY8jgOPtf7DDnizhknENQRsxubgfGbO/gPV8TPVIkvSqTZKgPbbIjU2n6Z8q0iOsmV8gTv0aw5UhNiHcddxg==","signatures":[{"sig":"MEUCIB117TiWR5dwJxxuHqximnVAetxZW0BPSdVH1yiXGn86AiEA5aFWW3hngyxzprGzaozgVbTnE4pnOnlVwcNmtWKU3m0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24632},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"97066a1d946e614e0517438d80f1de472458388f","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.7.0","description":"Generate typescript type definitions and enumerations from business definition json records.","directories":{},"_nodeVersion":"20.14.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_2.0.3_1718373080704_0.5670531868347366","host":"s3://npm-registry-packages"}},"2.0.4":{"name":"definition","version":"2.0.4","keywords":["json","records","definition","typescript","enums","type"],"author":{"url":"https://github.com/anuoua","name":"anuoua"},"_id":"definition@2.0.4","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"homepage":"https://github.com/anuoua/definition","bin":{"def":"bin/cli.js"},"dist":{"shasum":"f09f8ec5dabc7304ed5a2ed8ad38a6b533b5722b","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.4.tgz","fileCount":22,"integrity":"sha512-K2+2oo5hLHHe8PXsoVlvMor12Tj5lwB7AbcCq4ktcjub1WBCOMoFAlnvCWbAaZP3t90tulfFHqLyZ1BSWXZRrw==","signatures":[{"sig":"MEUCIFvEhJUKkDPdzM8+3mIAypKRfjr8vQxyFYWuSbuySNoxAiEAsSI7b0d+04Un0dwO/vXivhtSGcQ2zLQCh4YsDI7061Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24832},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"9711a5b6b7712acf46e614ec790b0c735c3ad308","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.7.0","description":"Generate typescript type definitions and enumerations from business definition json records.","directories":{},"_nodeVersion":"20.14.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_2.0.4_1718807857633_0.5386051615894876","host":"s3://npm-registry-packages"}},"2.0.5":{"name":"definition","version":"2.0.5","keywords":["json","records","definition","typescript","enums","type"],"author":{"url":"https://github.com/anuoua","name":"anuoua"},"_id":"definition@2.0.5","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"homepage":"https://github.com/anuoua/definition","bin":{"def":"bin/cli.js"},"dist":{"shasum":"1799c935883125695895929a392ffe3d665aff84","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.5.tgz","fileCount":22,"integrity":"sha512-7n63SYfdphmOVSF59IPB5FXBvpbHGqBYzCGhaV3uBtXVa9Zlz1X8VoCrwaGrB/uS5FFGCjQDLzpYc4e52XiyBA==","signatures":[{"sig":"MEUCID/jR6lvV88hkTAI551wIJNyo9bwzlIw9n10fVa3KDwOAiEAiO1c/Es/gTUGMoi2pU+l0vbkE69tttXHTkgMtlGaKdM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24832},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"341a8cf7860ffe6a8b2ff90e0627cd12de9d5a88","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.7.0","description":"Generate typescript type definitions and enumerations from business definition json records.","directories":{},"_nodeVersion":"20.14.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_2.0.5_1718847550628_0.7510391898649491","host":"s3://npm-registry-packages"}},"2.0.6":{"name":"definition","version":"2.0.6","keywords":["json","records","definition","typescript","enums","type"],"author":{"url":"https://github.com/anuoua","name":"anuoua"},"_id":"definition@2.0.6","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"homepage":"https://github.com/anuoua/definition","bin":{"def":"bin/cli.js"},"dist":{"shasum":"7ee92d8c6dcb47708714619da79554d69bb46626","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.6.tgz","fileCount":22,"integrity":"sha512-O+faWS3JVMDdjrMLon4ILuwWgjW02T6OyDoJfUE25zf253MD0ClCMsGmuGmhni68G0YqfrpVHlFuw8j/xBkWCQ==","signatures":[{"sig":"MEYCIQDoC/QNIB82XU3JlWjDuZS6hWmq1chUHrd3WhOaVnuyFAIhAJLiWJPUejVAnBwHtf43Wvlyi4lDzrAVY/spvoPz0ZCt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24904},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"56dbac1941f7499973f94065b8a55235b1ca555c","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.7.0","description":"Generate typescript type definitions and enumerations from business definition json records.","directories":{},"_nodeVersion":"20.15.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_2.0.6_1720423729810_0.896100948808281","host":"s3://npm-registry-packages"}},"2.0.7":{"name":"definition","version":"2.0.7","keywords":["json","records","definition","typescript","enums","type"],"author":{"url":"https://github.com/anuoua","name":"anuoua"},"_id":"definition@2.0.7","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"homepage":"https://github.com/anuoua/definition","bin":{"def":"bin/cli.js"},"dist":{"shasum":"ad8f084b31d349672044c317cba0c9cdb0516e21","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.7.tgz","fileCount":22,"integrity":"sha512-oHBrOLGz1YJ0/OmvM32icDEEQtFcTFnpqMo9cK1/MomksxOhX8azD1C/9LUOMa49ICyVQyjmYxYGadfYw05jDA==","signatures":[{"sig":"MEQCICW6x5Fy3aIPxBQJVBfmqg6mYBt+/Cc04+sqKZIbyM3LAiArghJxPiM20r1jjP1PayYTK93O985BYs9w1VxCN/b1GA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24920},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"947132ad30c36d4589a0399c45671bf0e01b29ff","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.7.0","description":"Generate typescript type definitions and enumerations from business definition json records.","directories":{},"_nodeVersion":"20.15.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_2.0.7_1720424444808_0.5431377395410797","host":"s3://npm-registry-packages"}},"2.0.8":{"name":"definition","version":"2.0.8","keywords":["json","records","definition","typescript","enums","type"],"author":{"url":"https://github.com/anuoua","name":"anuoua"},"_id":"definition@2.0.8","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"homepage":"https://github.com/anuoua/definition","bin":{"def":"bin/cli.js"},"dist":{"shasum":"cfc2f6c78f21806a97e7d8aa9fb96e44bf2cdec9","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.8.tgz","fileCount":22,"integrity":"sha512-a1wllmeM7PL3dnhU5k14AGJw9fcd+tz7GnEyfdGbOdOfF4dd9OT+XwBsDutB4ZoxyOLESs8tDg7NtryDs3TiZQ==","signatures":[{"sig":"MEUCIQDGHrmmwB4a24PJ3vFmiJ1EPC7d4FVPi95kX/8nIT7/swIgBGfpW0luPgd3VSodkPOwNTUcGL2ORQGYZ5Y3eES3p08=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24986},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"a46c4fc463aa8f7fa4fa43ddc698c21fadfdec87","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.7.0","description":"Generate typescript type definitions and enumerations from business definition json records.","directories":{},"_nodeVersion":"20.15.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_2.0.8_1720502696540_0.5919155229077018","host":"s3://npm-registry-packages"}},"2.0.9":{"name":"definition","version":"2.0.9","keywords":["json","records","definition","typescript","enums","type"],"author":{"url":"https://github.com/anuoua","name":"anuoua"},"_id":"definition@2.0.9","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"homepage":"https://github.com/anuoua/definition","bin":{"def":"bin/cli.js"},"dist":{"shasum":"82b6d31add6224ac7a2b6bac070427b7e9aa56e3","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.9.tgz","fileCount":22,"integrity":"sha512-1sd5U2YuAoFZd4MQTuhODqMULdboT8d5zQsjlJtNCTh1SJpu2Ud+M+tiXdof/a/UHp8pT425wg0DVAECZzfSYw==","signatures":[{"sig":"MEUCIB15yKq6OFbtEVswp1nkYLsMLUoS1fsBd04ovgxrtYQuAiEAxr0DN74KZX03eGVAWpN06WvqJmD+shAbZ2elQXV6y3M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26496},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"62f833ca3825dd441ff6d034828be8c89068910f","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.8.2","description":"Generate typescript type definitions and enumerations from business definition json records.","directories":{},"_nodeVersion":"20.19.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_2.0.9_1743087269605_0.18509592716147316","host":"s3://npm-registry-packages-npm-production"}},"2.0.10":{"name":"definition","version":"2.0.10","keywords":["json","records","definition","typescript","enums","type"],"author":{"url":"https://github.com/anuoua","name":"anuoua"},"_id":"definition@2.0.10","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"homepage":"https://github.com/anuoua/definition","bin":{"def":"bin/cli.js"},"dist":{"shasum":"c55a35b5a3a474bca65fbb0f3183b5c692f2a3ec","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.10.tgz","fileCount":22,"integrity":"sha512-nY1QP7CHI9cYv3O/AYq3+L1j57Cyns5JONMZ9sdaVohhhLVCofy89uN6jrrwJ+Ax4ZHR6G4ZiOXBqbtG5v7jYw==","signatures":[{"sig":"MEQCIBMtTbvbUNS8dcfwFt5RRmprIECox/hakhQOuj7FixomAiAOuM2SocozHyA/qNE4ZoN/27pw3vgcrbYJ3/limb4L4w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27134},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"b636d481296cd1219526defa0ce23d8067f99c02","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.8.2","description":"Generate typescript type definitions and enumerations from business definition json records.","directories":{},"_nodeVersion":"20.19.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_2.0.10_1743089798086_0.18877321050789164","host":"s3://npm-registry-packages-npm-production"}},"2.0.11":{"name":"definition","version":"2.0.11","keywords":["json","records","definition","typescript","enums","type"],"author":{"url":"https://github.com/anuoua","name":"anuoua"},"_id":"definition@2.0.11","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"homepage":"https://github.com/anuoua/definition","bin":{"def":"bin/cli.js"},"dist":{"shasum":"73c012c8b4251c8950d9460dde1f82bec897b076","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.11.tgz","fileCount":22,"integrity":"sha512-5vQvDqUiPSrrmEiO8qx1ad3emL1c5KHXphxTRbci4r37++PxAE/TLKg8ZWYIiwMU9naiTFX5EOmQBIldn/rqfg==","signatures":[{"sig":"MEUCIQCInXmPYe76gZdyTPoGNws/RdjOogxmExj5JEbMx960OAIgFAcYuAxs7KZLkHGcOvrEbbCd/+HHnX+dpIU1p7TGn18=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26709},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"ecdaee1d4582b2ee2fa6c4f16eca9f9a2e4bcb6a","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"anuoua","email":"anuoua@gmail.com"},"_npmVersion":"10.8.2","description":"Generate typescript type definitions and enumerations from business definition json records.","directories":{},"_nodeVersion":"20.19.1","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_2.0.11_1747237015919_0.27975880660857566","host":"s3://npm-registry-packages-npm-production"}},"2.0.13":{"name":"definition","version":"2.0.13","keywords":["json","records","definition","typescript","enums","type"],"author":{"url":"https://github.com/anuoua","name":"anuoua"},"_id":"definition@2.0.13","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"homepage":"https://github.com/anuoua/definition","bugs":{"url":"https://github.com/anuoua/definition/issues"},"bin":{"def":"bin/cli.js"},"dist":{"shasum":"ffe4e3fff9cfa1d68d31569675b37c443be7873d","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.13.tgz","fileCount":22,"integrity":"sha512-Tqhths2HCBV1nhkgJfPS4sd3F5LqEQxTCKCtlH1WwlkEbSZk5yLmlWJsDqjQzrJcnuRl345kSaq4A6h6csrlJw==","signatures":[{"sig":"MEQCIBKjgVp5TKbpfCRvPnxlD84+hEKJtrVSXsN1BvXfd5YZAiBbx5f5XJAjfiRIo7pVzxXSYBrK/y59cq54fDY+60s8Vw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/definition@2.0.13","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":26814},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"d20ec5b9ff0a162ffd869837cabf3839c42508bb","scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c1fe8317-d5b0-41aa-be81-8df4f3bc0dd5"}},"repository":{"url":"git+ssh://git@github.com/anuoua/definition.git","type":"git"},"_npmVersion":"11.16.0","description":"Generate typescript type definitions and enumerations from business definition json records.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"glob":"^10.3.10","lodash":"^4.17.21","varname":"^6.1.0","commander":"^12.0.0","typescript":"^5.3.3","config-file-ts":"^0.2.6"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","bun-types":"latest","@types/node":"^20.11.7","@types/lodash":"^4.14.202"},"_npmOperationalInternal":{"tmp":"tmp/definition_2.0.13_1784790979452_0.677319578088974","host":"s3://npm-registry-packages-npm-production"}},"2.0.14":{"name":"definition","main":"dist/index.js","version":"2.0.14","type":"module","author":{"name":"anuoua","url":"https://github.com/anuoua"},"repository":{"type":"git","url":"git+ssh://git@github.com/anuoua/definition.git"},"homepage":"https://github.com/anuoua/definition","bin":{"def":"bin/cli.js"},"keywords":["json","records","definition","typescript","enums","type"],"scripts":{"build":"rimraf dist && bun run build:dts && bun run build.ts","build:dts":"tsc -p tsconfig.build.json"},"devDependencies":{"@types/lodash":"^4.14.202","@types/node":"^20.11.7","bun-types":"latest","rimraf":"^5.0.5"},"dependencies":{"commander":"^12.0.0","config-file-ts":"^0.2.6","glob":"^10.3.10","lodash":"^4.17.21","typescript":"^5.3.3","varname":"^6.1.0"},"gitHead":"d138fb1b7b0dbb2f39a4b43f865d5e0c9bca32df","types":"./dist/index.d.ts","_id":"definition@2.0.14","description":"Generate typescript type definitions and enumerations from business definition json records.","bugs":{"url":"https://github.com/anuoua/definition/issues"},"_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-bAe3TVpWPX7ZXk8tzLIV1k798VNoXj5SVWdDBjo9E0Y86ISkVSIBQPNDvje8Y9cCQm7AwvfH9sgqyxLBxdbpHA==","shasum":"d506c1dbb04e79bd4770cfaeb6ff473c352df64d","tarball":"https://registry.npmjs.org/definition/-/definition-2.0.14.tgz","fileCount":22,"unpackedSize":26823,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/definition@2.0.14","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDesdSOh8gPbcM3v9HM0VoKo0XhCZHHBl2+zmUeuf9xJAIgOyc04RbpigRpLI/RVG+mvATYVgnhFuRkapPQfOQxntU="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c1fe8317-d5b0-41aa-be81-8df4f3bc0dd5"}},"directories":{},"maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/definition_2.0.14_1784791398942_0.8299169292080066"},"_hasShrinkwrap":false}},"time":{"created":"2014-11-29T07:47:01.312Z","modified":"2026-07-23T07:23:19.362Z","1.0.0":"2014-11-29T07:47:01.312Z","1.0.1":"2014-11-29T10:38:15.491Z","1.0.2":"2015-10-15T09:40:55.909Z","1.0.3-0":"2024-03-07T14:10:27.315Z","1.0.3-1":"2024-03-07T14:47:18.214Z","1.0.3-2":"2024-03-07T14:48:59.366Z","1.0.3":"2024-03-07T14:52:32.585Z","1.0.4-0":"2024-03-07T16:12:38.826Z","2.0.0":"2024-03-07T16:18:39.303Z","2.0.1":"2024-03-15T15:43:55.822Z","2.0.2":"2024-06-14T13:42:18.742Z","2.0.3":"2024-06-14T13:51:20.856Z","2.0.4":"2024-06-19T14:37:37.810Z","2.0.5":"2024-06-20T01:39:10.812Z","2.0.6":"2024-07-08T07:28:49.998Z","2.0.7":"2024-07-08T07:40:44.932Z","2.0.8":"2024-07-09T05:24:56.676Z","2.0.9":"2025-03-27T14:54:29.787Z","2.0.10":"2025-03-27T15:36:38.269Z","2.0.11":"2025-05-14T15:36:56.117Z","2.0.13":"2026-07-23T07:16:19.583Z","2.0.14":"2026-07-23T07:23:19.087Z"},"bugs":{"url":"https://github.com/anuoua/definition/issues"},"author":{"name":"anuoua","url":"https://github.com/anuoua"},"homepage":"https://github.com/anuoua/definition","keywords":["json","records","definition","typescript","enums","type"],"repository":{"type":"git","url":"git+ssh://git@github.com/anuoua/definition.git"},"description":"Generate typescript type definitions and enumerations from business definition json records.","maintainers":[{"name":"anuoua","email":"anuoua@gmail.com"}],"readme":"# Definition [![publish](https://github.com/anuoua/definition/actions/workflows/main.yml/badge.svg)](https://github.com/anuoua/definition/actions/workflows/main.yml)\n\nGenerate typescript type definitions and enumerations from business definition json records.\n\n## Install\n\n```shell\nnpm i definition\n```\n\n## Usage\n\n### Create config file.\n\n`definition.config.mjs`\n\n```javascript\n/**\n * @return {import('definition').ConfigOptions}\n */\nexport default () => {\n  return {\n    dir: \"./jsons\",\n    output: \"./definitions\",\n  };\n};\n```\n\nSee [ConfigOptions](#configoptions) Options for details.\n\n### Create json records in target directory.\n\n`./jsons/hello.json`\n\n```json\n[\n  { \"key\": \"hello-1\", \"value\": \"hello\", \"label\": \"cba\" },\n  { \"key\": \"hello-2\", \"value\": \"hello2\", \"label\": \"cba2\" }\n]\n```\n\nRecords is extendable, for example `{ \"key\": \"hello-1\", \"value\": \"hello\", \"label\": \"cba\", \"createBy\": \"god\" },` is okay.\n\n`value` should be string or number.\n\n`key` and `value` are required, and `key` can be customized via the configuration file.\n\n### Run command\n\n```shell\nnpx def generate # or npx def g\n```\n\nor add command to scripts with `npm run`\n\n```json\n{\n  \"scripts\": {\n    \"definition\": \"def generate\" // or def g\n  }\n}\n```\n\n### Result\n\n```\ndefinitions\n├── hello.ts\n└── utils\n    ├── index.ts\n    ├── kr-map.ts\n    ├── kv-map.ts\n    ├── types.ts\n    └── vr-map.ts\n```\n\n`./definitions/hello.ts`\n\n```typescript\nimport { krMap, vrMap, kvMap } from \"../utils\";\nexport const HELLO_records_readonly = [{ \"key\": \"hello-1\", \"value\": \"hello\", \"label\": \"cba\" }, { \"key\": \"hello-2\", \"value\": \"hello2\", \"label\": \"cba2\" }] as const;\nexport const HELLO_records = HELLO_records_readonly.concat(); // mutable records\nexport type HELLO_Records = typeof HELLO_records_readonly; // record type\nexport type HELLO_Values = HELLO_Records[number][\"value\"]; // values's type\nexport enum HELLO_Keys {\n    HelloHello = \"HelloHello\",\n    WorldWorld = \"WorldWorld\"\n}\nexport const HELLO_key_list = [HELLO_Keys.HelloHello, HELLO_Keys.WorldWorld] as const; // key list\nexport const HELLO_kr = krMap(HELLO_records_readonly, HELLO_key_list); // key -> record map\nexport const HELLO_vr = vrMap(HELLO_records_readonly, HELLO_key_list, \"value\"); // value -> record map\nexport const HELLO_kv = kvMap(HELLO_records_readonly, HELLO_key_list, \"value\"); // key -> value map\n```\n\n## CLI\n\n```\nUsage: cli [options] [command]\n\nOptions:\n  -h, --help            display help for command\n\nCommands:\n  generate|g [options]\n  help [command]        display help for command\n```\n\ncommand `generate`\n\n```\nsage: cli generate|g [options]\n\nOptions:\n  -c, --config [path]  Config file path\n  -h, --help           display help for command\n```\n\n## ConfigOptions\n\n```typescript\ninterface ConfigOptions {\n  dir: string; // Json records directory\n  output: string; // Definitions output directory\n  valueField?: string; // The value field key\n  keyField?: string; // The key field key\n  keyFormat?: \"camelback\" | \"camelcase\" | \"underscore\"; // The format of the generated key\n  keyGen?: (record: Record<string, any>) => string; // Custom key generate function\n}\n```\n\n**Note**: when `keyGen` is configured, `keyFormat` will be ignored.\n\n## License\n\nMIT\n","readmeFilename":"README.md","users":{}}