{"_id":"@adventurous-anxiety/open-api-generator","_rev":"2-27309bc9d7a7972fd693dad932c965d1","name":"@adventurous-anxiety/open-api-generator","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@adventurous-anxiety/open-api-generator","version":"1.0.0","main":"./dist/index.js","scripts":{"build":"tsc -p ./tsconfig.json"},"dependencies":{"@babel/generator":"^7.14.3","@babel/types":"^7.14.2","openapi-types":"^8.0.0"},"devDependencies":{"@types/babel__generator":"^7.6.2","@types/node":"^15.6.1","@typescript-eslint/eslint-plugin":"^4.25.0","@typescript-eslint/parser":"^4.22.1","cspell":"^5.4.1","cspell-dict-ru_ru":"^1.4.0","eslint":"^7.27.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","eslint-plugin-simple-import-sort":"^7.0.0","format-package":"^6.1.0","husky":"^6.0.0","lint-staged":"^10.5.4","prettier":"^2.3.0","typescript":"^4.3.0-dev.20210509"},"gitHead":"61bbf6d163c90de7bb7a066ae57b678ae3947c11","description":"## Usage","_id":"@adventurous-anxiety/open-api-generator@1.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-+XTxWvjD/wQJXCTbrxgljdYXhEEXC9XhuoAt0gSbreUK/UBj+oamfI5urNtU+qA3tXi24FGna3tOsZeBqX7NLw==","shasum":"c8cee33fe46ae1fde6dd76a06d36d5a57fbd4459","tarball":"https://registry.npmjs.org/@adventurous-anxiety/open-api-generator/-/open-api-generator-1.0.0.tgz","fileCount":2,"unpackedSize":1610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsJCZCRA9TVsSAnZWagAAowMP/iC9B1uMgQ6yoRG9LxV3\n5t0mC3h5qCEG6cFU0byi2Bed5y4DQg09Eno13D1AphUdXqv1UXLMjvnCssEB\nevACEsYuuSiSndKANoNUwHSs9TAhKj/TBSFwJ8u/Oz2/wPpLc8FwkHbORu5J\nnTbbpsyqvPHFU4/rJaJEZ4w9o1wZT/YILeA8CVYM4MDe+y6WElE5NsZ2GgyM\n3AK9Gz/PWLH9J0hJ5F9G3nj7T3BtHwxOg+H/CX4ett+nudsu5SlVcp7NUDY5\nRhnMoV/9Z3jICjosm3X0NKsR4DZQtzoV0RnM9HqWHJjQfdKZfZP9ekGWc/M0\nO5JLv96q9reEoM7aTtSxE8pBKSZeKOMYugytkIYbfGVcoqHQo/3cf7f+sFLr\nWcWrcFSspHCje5Flxdl6cCBTqC5fICDnzUYeE4sK+8eYsgXcXfPK0pYvK3lD\nU7hGzLIBRsAwq9pp9qj5DNd1zWp7rncut0lUAkaphAUMFTktsS5FdkI5P3ok\n9bWc8glxeuurN+FV8RKH8NDhNrHsnKAIFwpQF8jiutU+pcYEndSB64SXpQeY\n0puNdsQ6dcEkUgH8ngjzQKcrJ4WCEQ5JgSZOnqanmK+oa2UTHxzuMI6xfFWH\nnoTYTaWjnl7iwVRYG5IFLHwlqLasshzP/8BHRHnOT7yBMfOfZC7UMHbIuIiQ\nZoJS\r\n=9cGL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGN0+Ofi4r1d8eTlS0iHLx6C5asK0ZXomclrY6N330goAiEA3bWLUqXouL3nvRQhk46LA5WDpOr9HV1HSMw9XoMJHJs="}]},"_npmUser":{"name":"adventurous-anxiety","email":"adventurousanxiety@yandex.com"},"directories":{},"maintainers":[{"name":"adventurous-anxiety","email":"adventurousanxiety@yandex.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/open-api-generator_1.0.0_1622184088981_0.03582262080521326"},"_hasShrinkwrap":false},"1.0.1":{"name":"@adventurous-anxiety/open-api-generator","version":"1.0.1","main":"dist/index.js","scripts":{"build":"tsc -p ./tsconfig.json"},"dependencies":{"@babel/generator":"^7.14.3","@babel/types":"^7.14.2","openapi-types":"^8.0.0"},"devDependencies":{"@types/babel__generator":"^7.6.2","@types/node":"^15.6.1","@typescript-eslint/eslint-plugin":"^4.25.0","@typescript-eslint/parser":"^4.22.1","cspell":"^5.4.1","cspell-dict-ru_ru":"^1.4.0","eslint":"^7.27.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","eslint-plugin-simple-import-sort":"^7.0.0","format-package":"^6.1.0","husky":"^6.0.0","lint-staged":"^10.5.4","prettier":"^2.3.0","typescript":"^4.3.0-dev.20210509"},"gitHead":"7de870ff95df33f0ff50a5e0ddf91b9b358493ed","description":"## Usage","_id":"@adventurous-anxiety/open-api-generator@1.0.1","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-HD445lNMmMjhShZRLSJ1p5m9igdwQgbpr036dC1Txj8HzhduXYLGwCoWktm1opXKN6ptA020g/MOoWbZgYU1SA==","shasum":"259740e423ff46ab2a2e9a7a3519b62749b626b3","tarball":"https://registry.npmjs.org/@adventurous-anxiety/open-api-generator/-/open-api-generator-1.0.1.tgz","fileCount":18,"unpackedSize":33027,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsJq2CRA9TVsSAnZWagAAdsQP/03tygnBABZtcs29DD8V\ntAbjOP+vCUmgr7MvqrbOW3GQJ47bF7/Vhpn2PnI1t80IXDrnDU2uYP/kqFzu\n9vH0mXAWRJzDZMoj6LHk7Q/QXPpc1CJgFAqqtp+TTS60sxaF7+pIWgdFHIvV\nEne5NbHDuvdBlIC9woxAS99FJjl7dJL/OaPiXHa4BW449Bb5pBofvwmTGdCC\nUZ3fRUucuBWF4puGiJ7fjsY9MDFLwg9FLtDDVkbEpnFE0pLcNBmHFyLcDu2R\nOUCDiIgkqAnCalmHuoY+gO5sdt/6Q9EBB/yspci3HOD56NGgdg1zXT1YV1jI\n/CKuzAH7AUVLawBPAhBFo1L/QP8tZP342bqOfGPKME41dJcDJi6UvrI2hFjX\nIk7j0xrHuddUR+AUBsHI51VLDKvViDzvXBt0s4rz1B9Nj3kbmWUbaUuj9uRs\nAb5G7eHWQ/zGJz9uB6Ng41M++IEwUZJTtyMOl5IWV1OUEWtnYQF8U5iQVFV0\nA6ByanAF+A3v4U/aDHSYCOXyf6qT6y8DRyu2jhwxtZDmf6ZZVXfNSkhX2h2y\nK16eVxd9yZK54SeSg/PtOQ3ffMkcQm+TOdVKCCyjNJhMzaxzoY5viECdJ5nZ\nJ3czlULF3wwvJB6j1Xr0DYLQmZnXvQ81q8diDmPcHKTaAEiz06IZGmZ+UqXm\nS4Z/\r\n=K0QR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxns05dc4AXaisH9IjTICyMQ24VTXeiDESTcMzKva+UAIgBusleA9eICcZ6kXbVTLIq/SXpg/1ay0uhdB+tsxbh6o="}]},"_npmUser":{"name":"adventurous-anxiety","email":"adventurousanxiety@yandex.com"},"directories":{},"maintainers":[{"name":"adventurous-anxiety","email":"adventurousanxiety@yandex.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/open-api-generator_1.0.1_1622186678168_0.9580980372732824"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-28T06:41:28.938Z","1.0.0":"2021-05-28T06:41:29.096Z","modified":"2022-04-04T11:45:40.717Z","1.0.1":"2021-05-28T07:24:38.334Z"},"maintainers":[{"name":"adventurous-anxiety","email":"adventurousanxiety@yandex.com"}],"description":"## Usage","readme":"# Open API Generator\n\n## Usage\n\n```ts\nimport {\n  BabelStrategy,\n  Generator,\n} from \"@adventurous-anxiety/open-api-generator\"\nimport schema from \"./schema.json\"\nimport { createWriteStream } from \"fs\"\nimport { Writable } from \"stream\"\n\nconst generator = new Generator({\n  output: \"./output\",\n  strategy: new BabelStrategy(),\n})\n\nconst cache: Record<string, Writable> = Object.create(null)\n\nconst getWriteStream = (path: string) =>\n  cache[path] || (cache[path] = createWriteStream(path))\n\ngenerator.output.pipe(\n  new Writable({\n    objectMode: true,\n\n    write({ data, path }: { data: string; path: string }, _0, callback): void {\n      getWriteStream(path).write(data)\n      callback()\n    },\n  }),\n)\n\ngenerator.generate(schema)\n```\n","readmeFilename":"README.md"}