{"_id":"httpsnippet-lite","_rev":"5-ea2e2da4b2b1c312cda4336281a696fd","name":"httpsnippet-lite","dist-tags":{"latest":"3.0.5"},"versions":{"3.0.0":{"version":"3.0.0","name":"httpsnippet-lite","description":"HTTP Request snippet generator for *most* languages","author":{"name":"Jakub Rożek"},"contributors":[{"name":"Kong","email":"office@konghq.com"}],"homepage":"https://github.com/P0lip/httpsnippet","license":"MIT","sideEffects":false,"type":"commonjs","main":"./dist/cjs/httpsnippet.js","module":"./dist/esm/httpsnippet.js","types":"./dist/types/httpsnippet.d.ts","exports":{".":{"types":"./dist/types/httpsnippet.d.ts","import":"./dist/esm/httpsnippet.js","require":"./dist/cjs/httpsnippet.js"}},"keywords":["api","clojure","csharp","curl","go","har","http","httpie","httr","java","javascript","jquery","kotlin","objc","objective-c","ocaml","php","python","request","requests","ruby","shell","snippet","swift","swift","unirest","xhr","xmlhttprequest"],"engines":{"node":"^14.19.1 || ^16.14.2 || ^18.0.0"},"repository":{"type":"git","url":"git+https://github.com/P0lip/httpsnippet.git"},"bugs":{"url":"https://github.com/P0lip/httpsnippet/issues"},"scripts":{"lint":"npm run lint:prettify && npm run lint:code && npm run lint:markdown","lint:prettify":"prettier --write .","lint:code":"eslint . --ext ts,d.ts,test.ts --fix","lint:markdown":"markdownlint-cli2 \"**/*.md\" \"#**/node_modules\"","build":"npm run build:cjs && npm run build:esm","build:esm":"tsc -p tsconfig.build.json --outDir dist/esm --declarationDir dist/types","build:cjs":"tsc -p tsconfig.build.json --outDir dist/cjs --module commonjs --declarationDir dist/types","test":"jest"},"devDependencies":{"@types/jest":"^27.4.1","@types/node":"^16.11.26","@types/stringify-object":"^3.3.0","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","eslint":"^8.12.0","eslint-config-prettier":"^8.5.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-jest":"^26.1.3","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^29.5.0","markdownlint-cli2":"^0.5.1","prettier":"^2.6.2","ts-jest":"^29.0.5","typescript":"^5.0.2"},"dependencies":{"@types/har-format":"^1.2.10","formdata-node":"^4.4.1","stringify-object":"3.3.0","type-fest":"^3.6.1"},"gitHead":"3aef8a9264e3d0e528efe9f8216de8c4903627d5","_id":"httpsnippet-lite@3.0.0","_nodeVersion":"18.3.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-imIBwbzd3C/HTEBUmgwSKG01b48H+WUmFf/D/CaMYpA5XOTXDZvVZxd9PQI2okcDqkVWk+qqCKqXDeBA4+735A==","shasum":"2ed636718e1b14778cd38b6e50f65c9b2574ca41","tarball":"https://registry.npmjs.org/httpsnippet-lite/-/httpsnippet-lite-3.0.0.tgz","fileCount":374,"unpackedSize":472676,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtoTp0TItr6CKgguzNFYu4qSwAKApEcAShLgvqsYh4sQIhAJQ45zYluFfAdJ7NsoJiBPlxR1vWNf/obVq5qGR6Lcel"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkF6IjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrz6Q/+I3N4bHW0jc1tVnojwDuSsST/+sHdlsMhDgsV8BnHu+yVbVAH\r\ncC5Pr5qv+9kZYxRj4XnTafB5GxmDCuffB7hvqa0o/tqivK1p+apo5ULkU7z0\r\nUTIMkdLL1LKBeMAM/ZwF0dB3IyimUfySMKlG60w/Y4fOCjrGqdM/flssyrrq\r\nzE18Z629Oq6LdkyuYXpa8Qo6kf7mxRmz8hPnuumzCESoFpDVEa51DRIpIz6z\r\nr2JmVMSW64HE0PhZZvfuf3+UQds3qFOE5h26I6a2os9C3NdtamtrO7pBswhd\r\njP0/tqqocACC7QXkp753QLtmrKDeZMZlYT1hilqaw1J0+S7drmDz4vmh0Px1\r\nl1LMnk2aGWzC+AH5W/3WcGle3RHo+LQSYlFLICeTpxUe1MCDw+t1md7Qnsuw\r\n0yf6sU+pgz713//+4E6eRAn+5yvWazfmrLop819gXH3/l+Qe3wcmHTFj4kXU\r\nkalc3pkWRMhT/OCdPobex0WTWXv/NY7zEKYcE7FEQDAxijqyH//ORfZw4RE6\r\n2pTnLMD41A5uxAcjrM4WXlcMAEZSFDBJ/AnjbM8q8Ax6nD0emCUmdPmM8SXS\r\nptwI6VjMe8DY0dYxRwhmJBgX4WKy1hBsn3zMi19CT/5v26Ctbz8Tp8eYx0rX\r\nTayw2jjBocO/ghSN9p/y95iYMStt0Pjq8TU=\r\n=s4v2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"p0lip","email":"jakub@rozek.tech"},"directories":{},"maintainers":[{"name":"p0lip","email":"jakub@rozek.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/httpsnippet-lite_3.0.0_1679270434817_0.04178797447500138"},"_hasShrinkwrap":false},"3.0.1":{"version":"3.0.1","name":"httpsnippet-lite","description":"HTTP Request snippet generator for *most* languages","author":{"name":"Jakub Rożek"},"contributors":[{"name":"Kong","email":"office@konghq.com"}],"homepage":"https://github.com/P0lip/httpsnippet","license":"MIT","sideEffects":false,"type":"commonjs","main":"./dist/cjs/httpsnippet.js","module":"./dist/esm/httpsnippet.js","types":"./dist/types/httpsnippet.d.ts","exports":{".":{"types":"./dist/types/httpsnippet.d.ts","import":"./dist/esm/httpsnippet.js","require":"./dist/cjs/httpsnippet.js"}},"keywords":["api","clojure","csharp","curl","go","har","http","httpie","httr","java","javascript","jquery","kotlin","objc","objective-c","ocaml","php","python","request","requests","ruby","shell","snippet","swift","swift","unirest","xhr","xmlhttprequest"],"engines":{"node":"^14.19.1 || ^16.14.2 || ^18.0.0"},"repository":{"type":"git","url":"git+https://github.com/P0lip/httpsnippet.git"},"bugs":{"url":"https://github.com/P0lip/httpsnippet/issues"},"scripts":{"lint":"npm run lint:prettify && npm run lint:code && npm run lint:markdown","lint:prettify":"prettier --write .","lint:code":"eslint . --ext ts,d.ts,test.ts --fix","lint:markdown":"markdownlint-cli2 \"**/*.md\" \"#**/node_modules\"","build":"npm run build:cjs && npm run build:esm","build:esm":"tsc -p tsconfig.build.json --outDir dist/esm --declarationDir dist/types","build:cjs":"tsc -p tsconfig.build.json --outDir dist/cjs --module commonjs --declarationDir dist/types","test":"node --experimental-vm-modules node_modules/.bin/jest","prepublishOnly":"npm run lint && npm run test && npm run build"},"devDependencies":{"@types/node":"^16.11.26","@types/stringify-object":"^3.3.0","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","eslint":"^8.12.0","eslint-config-prettier":"^8.5.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-jest":"^26.1.3","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^29.5.0","markdownlint-cli2":"^0.5.1","prettier":"^2.6.2","ts-jest":"^29.0.5","typescript":"^5.0.2"},"dependencies":{"@types/har-format":"^1.2.10","formdata-node":"^4.4.1","stringify-object":"3.3.0","type-fest":"^3.6.1"},"gitHead":"8434bce75f20d979e9adeb6731c10f0bd10815e2","_id":"httpsnippet-lite@3.0.1","_nodeVersion":"18.3.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-XOF6WjImP4odRg+qGLPjKk+NWMy0dNHlYRmwgaPyqaz2pwSYQJxrjZWefyBPY6ygfxdNedxeb6Xiuokp2wRYuQ==","shasum":"22213e1285c4de280f314e93a27d21e986523a1e","tarball":"https://registry.npmjs.org/httpsnippet-lite/-/httpsnippet-lite-3.0.1.tgz","fileCount":210,"unpackedSize":401633,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEkXLO4f+BHYoVtknancBiYc1VdQqfXGVZinDGVkS4PTAiBZIuEElNXC6MScd0SN9iYqy7Cm/197pOEEttVoJ7qklA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGFZWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrz3A//WiJPMdzXnzVPAxf9VEWJ8P3vfIIyMCnZkRs13gWtoOaykb3G\r\nKdI6FxQXQ6cfIuasDvAVc0zMISNTaOWSN6BjAIhljcSqld8elNeIDShg9MWY\r\ntLNYVXlR2CFbzAkZflnT9rpZa0NMB+m/WpHJxxEEg5Y4u6R3NlfRo8VW3xJ2\r\nG5H+IP6+hJEyyFUgTUAfHQEnxRJACHPuoPgZWxnRc5S6JPWqGF31WVZwANoP\r\nBF1Unk91qJCrNqG/7fsCbshluvym0VtFTTXHVjgLSdtt2MPDRy8NdScOoom/\r\n3v29BvViBj5UiRCiTOJab0I79fYgX8fBhhaTuG0N8AdcORdEp4GWC0DDoU6i\r\nxCoFRH810NUY3QrmyDosMRu16sHe4KH6zjTVe0oBzNq5MEcM+CQhD/R4jYvb\r\nkgpxFcioZ8hXYaPlgt+03g6hOr+YVCKsiYSTNxfy2tzziwC7I9c7tmsgSXNV\r\nb8AuM1TUu87pTkgAIYLUzO756LnvFRTffsaieK8IGyJ0gu7w/R2inzlWpyuy\r\n95DEhFzR6K63FJowvW/OMbiKu2Ol/RDeNegtjPVTFyAoRivZnWwtmtnNCV6F\r\n5Dgeazp/Ajk/zAZS0uS9NPtBAw4sI8Y8bfex2362YbG8kdAhVdkpiO+vasHI\r\nN2mBnmy7GLz/vw7n6Y56fHj6qEzvuv6bEVE=\r\n=c4m5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"p0lip","email":"jakub@rozek.tech"},"directories":{},"maintainers":[{"name":"p0lip","email":"jakub@rozek.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/httpsnippet-lite_3.0.1_1679316566324_0.35318453104300396"},"_hasShrinkwrap":false},"3.0.2":{"version":"3.0.2","name":"httpsnippet-lite","description":"HTTP Request snippet generator for *most* languages","author":{"name":"Jakub Rożek"},"contributors":[{"name":"Kong","email":"office@konghq.com"}],"homepage":"https://github.com/P0lip/httpsnippet","license":"MIT","sideEffects":false,"type":"commonjs","main":"./dist/cjs/httpsnippet.js","module":"./dist/esm/httpsnippet.js","types":"./dist/types/httpsnippet.d.ts","exports":{".":{"types":"./dist/types/httpsnippet.d.ts","import":"./dist/esm/httpsnippet.js","require":"./dist/cjs/httpsnippet.js"}},"keywords":["api","clojure","csharp","curl","go","har","http","httpie","httr","java","javascript","jquery","kotlin","objc","objective-c","ocaml","php","python","request","requests","ruby","shell","snippet","swift","swift","unirest","xhr","xmlhttprequest"],"engines":{"node":"^14.19.1 || ^16.14.2 || ^18.0.0"},"repository":{"type":"git","url":"git+https://github.com/P0lip/httpsnippet.git"},"bugs":{"url":"https://github.com/P0lip/httpsnippet/issues"},"scripts":{"lint":"npm run lint:prettify && npm run lint:code && npm run lint:markdown","lint:prettify":"prettier --write .","lint:code":"eslint . --ext ts,d.ts,test.ts --fix","lint:markdown":"markdownlint-cli2 \"**/*.md\" \"#**/node_modules\"","build":"npm run build:cjs && npm run build:esm","build:esm":"tsc -p tsconfig.build.json --outDir dist/esm --module ES2020 --declarationDir dist/types","build:cjs":"tsc -p tsconfig.build.json --outDir dist/cjs --module commonjs --declarationDir dist/types","test":"node --experimental-vm-modules node_modules/.bin/jest","prepublishOnly":"npm run lint && npm run test && npm run build"},"devDependencies":{"@types/node":"^16.11.26","@types/stringify-object":"^3.3.0","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","eslint":"^8.12.0","eslint-config-prettier":"^8.5.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-jest":"^26.1.3","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^29.5.0","markdownlint-cli2":"^0.5.1","prettier":"^2.6.2","ts-jest":"^29.0.5","typescript":"^5.0.2"},"dependencies":{"@types/har-format":"^1.2.10","formdata-node":"^4.4.1","stringify-object":"3.3.0","type-fest":"^3.6.1"},"gitHead":"8f3525e115ada3385699e50315bff92f3aa8bf4d","_id":"httpsnippet-lite@3.0.2","_nodeVersion":"18.3.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-t88SuatkjrxGdY+9QdRCxJdcgyB7SMKOgfc5ijx+7dLLkp3Pip+hmZX6xZLrzfwhtAzvzxvdnRggPgotVyGgBA==","shasum":"cee9066aeec979aee5688796b23f18010edb20bd","tarball":"https://registry.npmjs.org/httpsnippet-lite/-/httpsnippet-lite-3.0.2.tgz","fileCount":210,"unpackedSize":386619,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICnYQgoPVqjZvsfDcx0mcxsV5zkU0yJEQX/jd9IftlcmAiEA8vkTxMg0fWMNRhAbNaq9aSofR8xIPM7vLmyhCrdmH2c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkINpwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpguw/+LB8XIww/nho/qoF42hLwk1E1Sxs4Z1QUILB6SutPvlSRKMEj\r\n3NQ9HM0D1r7QeEfq/MtFjo9ABr0v/FMoqmnqwIZzObed2Um3wTc1ws6pxJkr\r\nbafwxXYLCyp6ClDNOEsEJRiHaFCaHxRs/ezpuaJIuyrsHuFwdf2ErLJn43Nq\r\nnU4qfwvKppo+rVLNgjOtRLLKVW+pHx2P2fJutovhgNTXttBHpIx30Zqi35lf\r\n9ySOgKQEdhSBws5479Ex0XukyopccJANnI8LedGQv0fsZ6279NLEnWRb5QBl\r\ncRPDbGShuHXe/1NXIt7hV8YvruDn+2DcmXq38/nACIhwcKCptH5oi8VUNeNW\r\nIakXr4eA2qB3snj+HGgwgg0B3pq+HV2xjyThc3P4iZ2UchK8BwRKn6iBm8wI\r\n/IqHs4h/NUA9LLnBCJJR3BFfrxTLF5VMQFe/irIvWjIUNVrZ3Lo9FS2Gp8zO\r\nfrz6G9ZgfZ05XS2iGXehrNFKqdn0mRa9nvhPxm6TXRFsdmVBPWi0zXFfRFO/\r\nX3B9AWrMXGikwtq8oQduAAT1BCn3adk7SNmn7p7uDnaal1VBKnwCz1I06ObR\r\n6dvFLevNaH3w6nx2329T+auoKBvATWRI4IBtg6er+PmRPA+srrnw4oEfxCs+\r\nDHBPCF/VZXjsnEIg3jSOcfP8uhV+BG4ev6I=\r\n=QX9B\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"p0lip","email":"jakub@rozek.tech"},"directories":{},"maintainers":[{"name":"p0lip","email":"jakub@rozek.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/httpsnippet-lite_3.0.2_1679874672563_0.6321900268785439"},"_hasShrinkwrap":false},"3.0.3":{"version":"3.0.3","name":"httpsnippet-lite","description":"HTTP Request snippet generator for *most* languages","author":{"name":"Jakub Rożek"},"contributors":[{"name":"Kong","email":"office@konghq.com"}],"homepage":"https://github.com/P0lip/httpsnippet","license":"MIT","sideEffects":false,"type":"commonjs","main":"./dist/cjs/httpsnippet.js","module":"./dist/esm/httpsnippet.js","types":"./dist/types/httpsnippet.d.ts","exports":{".":{"types":"./dist/types/httpsnippet.d.ts","import":"./dist/esm/httpsnippet.js","require":"./dist/cjs/httpsnippet.js"}},"keywords":["api","clojure","csharp","curl","go","har","http","httpie","httr","java","javascript","jquery","kotlin","objc","objective-c","ocaml","php","python","request","requests","ruby","shell","snippet","swift","swift","unirest","xhr","xmlhttprequest"],"engines":{"node":"^14.19.1 || ^16.14.2 || ^18.0.0"},"repository":{"type":"git","url":"git+https://github.com/P0lip/httpsnippet.git"},"bugs":{"url":"https://github.com/P0lip/httpsnippet/issues"},"scripts":{"lint":"npm run lint:prettify && npm run lint:code && npm run lint:markdown","lint:prettify":"prettier --write .","lint:code":"eslint . --ext ts,d.ts,test.ts --fix","lint:markdown":"markdownlint-cli2 \"**/*.md\" \"#**/node_modules\"","build":"npm run build:cjs && npm run build:esm","build:esm":"tsc -p tsconfig.build.json --outDir dist/esm --module ES2020 --declarationDir dist/types","build:cjs":"tsc -p tsconfig.build.json --outDir dist/cjs --module commonjs --declarationDir dist/types","test":"node --experimental-vm-modules node_modules/.bin/jest","prepublishOnly":"npm run lint && npm run test && npm run build"},"devDependencies":{"@types/node":"^16.11.26","@types/stringify-object":"^3.3.0","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","eslint":"^8.12.0","eslint-config-prettier":"^8.5.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-jest":"^26.1.3","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^29.5.0","markdownlint-cli2":"^0.5.1","prettier":"^2.6.2","ts-jest":"^29.0.5","typescript":"^5.0.2"},"dependencies":{"@types/har-format":"^1.2.10","formdata-node":"^4.4.1","stringify-object":"3.3.0","type-fest":"^3.6.1"},"gitHead":"179853802e7a5c74571221e96cf189b2ed2dafc3","_id":"httpsnippet-lite@3.0.3","_nodeVersion":"18.3.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-KoKe+FQ4ST8ghGCUuqEzDW5G3TosVJ5aQSCH/iIaWyEHytX2eB9dwSCHsUiF+ofnDcstxnL2qpEPETExB6NxHw==","shasum":"4404ec5cf9055fcd75acf3827b450efc8f6307e6","tarball":"https://registry.npmjs.org/httpsnippet-lite/-/httpsnippet-lite-3.0.3.tgz","fileCount":210,"unpackedSize":395147,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGnCD69vJQAnxiqtu6EaA9+1t631NUjDpDYLqFiz/M2SAiAj4Mi1WpyAzxtOAOS1gU6+/zlzWva780Wdb5CvU/pqsQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkINz2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAkg//fuoqXAvpiAi19i9XxRlvg1OVp6eY4xlU7mTVUWCC2Ga84miI\r\nr12l1D8B1XNbGq947JnpemHhEpnHvubRK75c62D4uy2fwWbSxAL8P/7aHKS5\r\nUAm24uOrHr2LuSeAyVFD+R29JqAzDootbir9tRXNkpDAHKT5t8PC8mnM3Bfj\r\n33YX56ax7cr4e73HUxjwWlfENRfZ/MaasI63HrpfAlmB7QcRSn0sE9sVWlmN\r\n14qUQmJd7zx6ggC+cgDzOBKBZbhEgcaddQjRKzpfOSkoDlbusO3osnaFiaZP\r\nCfcGqbaWo7KoVhcPKPGgc1fd/5XR/nfHAqwyiCSK+bTakx3fBwqiM1dhcBXH\r\n9iA74wvLyyI5mWYR3nV1k/sR5RoxxWblsd9ETP/os4lbj1/FszPzxLK+NvZw\r\ndczhHStWLZyHOIxa5onybPV7jnUQyG+Dy+KijBZme5ZCrlCwe5BYQ2io1z+r\r\n2D1+ZjDwX81r1+i1UPC9ggDfh4a2mTY0YYawwpZAkCMOYulQpenLnzDIDd1n\r\n4ZYOQo14zJouW0QBn7NsoowkeFpKKCIJVL+gbrd8KhHP8E8BhH2nRTbMeFza\r\nC3FsuFsB0YevYVcfw43giaIlZmCwM/RQoYG0bebPG558aAt0BYDm/wgEvV4t\r\njADtMpSiLqLAsKA7VachKj1H+NxE0RUrYoI=\r\n=7Avm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"p0lip","email":"jakub@rozek.tech"},"directories":{},"maintainers":[{"name":"p0lip","email":"jakub@rozek.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/httpsnippet-lite_3.0.3_1679875318120_0.007140639797851067"},"_hasShrinkwrap":false},"3.0.4":{"version":"3.0.4","name":"httpsnippet-lite","description":"HTTP Request snippet generator for *most* languages","author":{"name":"Jakub Rożek"},"contributors":[{"name":"Kong","email":"office@konghq.com"}],"homepage":"https://github.com/P0lip/httpsnippet","license":"MIT","sideEffects":false,"type":"module","main":"./dist/cjs/httpsnippet.js","module":"./dist/esm/httpsnippet.js","types":"./dist/types/httpsnippet.d.ts","exports":{".":{"types":"./dist/types/httpsnippet.d.ts","import":"./dist/esm/httpsnippet.js","module":"./dist/esm/httpsnippet.js","require":"./dist/cjs/httpsnippet.js"}},"keywords":["api","clojure","csharp","curl","go","har","http","httpie","httr","java","javascript","jquery","kotlin","objc","objective-c","ocaml","php","python","request","requests","ruby","shell","snippet","swift","swift","unirest","xhr","xmlhttprequest"],"engines":{"node":">=14.13"},"repository":{"type":"git","url":"git+https://github.com/P0lip/httpsnippet.git"},"bugs":{"url":"https://github.com/P0lip/httpsnippet/issues"},"scripts":{"lint":"npm run lint:prettify && npm run lint:code && npm run lint:markdown","lint:prettify":"prettier --config .prettierrc.cjs --check .","lint:code":"eslint . --ext ts,d.ts,test.ts","lint:markdown":"markdownlint-cli2 \"**/*.md\" \"#**/node_modules\"","build":"npm run build:cjs && npm run build:esm","build:esm":"tsc -p tsconfig.build.json --outDir dist/esm --module ES2020 --declarationDir dist/types","build:cjs":"tsc -p tsconfig.build.json --outDir dist/cjs --module commonjs --declarationDir dist/types","test":"node --experimental-vm-modules node_modules/.bin/jest","prepublishOnly":"npm run lint && npm run test && npm run build"},"devDependencies":{"@types/node":"^16.11.26","@types/stringify-object":"^3.3.0","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","eslint":"^8.37.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^10.0.0","jest":"^29.5.0","markdownlint-cli2":"^0.5.1","prettier":"^2.8.7","ts-jest":"^29.0.5","typescript":"^5.0.2"},"dependencies":{"@types/har-format":"^1.2.10","formdata-node":"^4.4.1","stringify-object":"3.3.0","type-fest":"^3.6.1"},"gitHead":"27b28ff751028596f35511b722f08a6a04b03416","_id":"httpsnippet-lite@3.0.4","_nodeVersion":"18.3.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-f9Z9PTmxFR7roXQD8/YOav3PhnXDb1diR7NiaR0TRQVJYX+kfwv3Aw0VtkksXRpsOXJDQNoNMw18VPkqsE/Tew==","shasum":"98f1e4118c3ca662c1a536781a8ba4bea750352b","tarball":"https://registry.npmjs.org/httpsnippet-lite/-/httpsnippet-lite-3.0.4.tgz","fileCount":210,"unpackedSize":396252,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEKieL17KeeWBF07KvSXrEZg7sU5WHU8nCwSrqATlEeQIhALgiLT7aoqCLHx58XNirkX9JRwSWAOHoizr/jmmX3Lp5"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJY2GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2+w/9E6J49Qb8v60KY4HOcEqF1e2rBHJryf0idNZdKUYTu939nmYn\r\nLBrgeqM+nwbj80ue5oLbWXkurQhkIKQ/7Rn0WQFSBt9ywp69jxndf+jZH3yg\r\nsJWRVqg02hc/bq9gSB5fPJgYxB0SUdXmYfV3vda0EawyM66tyoeDRMdo5ety\r\n3AeUeNYegMl8c4J9RthrlJSkjlKTTRJMJUZE4mU+S17j2owUfQTS0C7QYN+1\r\nUBxGahnqWre2iAXeb3Ocjwo4R9GlmWks5zA7BoQ/15o9PlRp7XXEfZqCV+RG\r\nbZF6U0SjMw2drEiMhQW9v5wpb2+SHF0XS5ULD/sZ5vHFUO4a+hLLZlR+Zofo\r\nrBU/Th1xpy0/2FsE8gQjDaIyvorkknl0mOfKKO2ON0lGldABordDTr2rgi7z\r\n9bffU6l7EHFqU+rAQxYZym2rJAzfJq1pCY+CLA5Wg2PIOCApkXqx6aIPvTd1\r\njCXvONPdaFd/v9kZ+OA7OqZUDhWUWtBTwxv9UH1NvVWUT9LVOJ6tmdxeI0zu\r\n9grRWiu/cu3JcJp/5D25AGEancWLt3bZtDAWshkvvUPIv63+a43kBrbc1YNA\r\nquKK1sY1A54SPUgLXjUsxyuhO1aM2Ts/BND6AJ9ymptzsGO11V3lRKKFD8/j\r\n3LFaj5XlmifDwKZWSUTlWJMg/LHVJPwoK7U=\r\n=o/iz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"p0lip","email":"jakub@rozek.tech"},"directories":{},"maintainers":[{"name":"p0lip","email":"jakub@rozek.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/httpsnippet-lite_3.0.4_1680182661953_0.4705637222614052"},"_hasShrinkwrap":false},"3.0.5":{"version":"3.0.5","name":"httpsnippet-lite","description":"HTTP Request snippet generator for *most* languages","author":{"name":"Jakub Rożek"},"contributors":[{"name":"Kong","email":"office@konghq.com"}],"homepage":"https://github.com/P0lip/httpsnippet","license":"MIT","sideEffects":false,"type":"module","main":"./dist/cjs/httpsnippet.js","module":"./dist/esm/httpsnippet.js","types":"./dist/types/httpsnippet.d.ts","exports":{".":{"types":"./dist/types/httpsnippet.d.ts","import":"./dist/esm/httpsnippet.mjs","module":"./dist/esm/httpsnippet.mjs","require":"./dist/cjs/httpsnippet.cjs"}},"keywords":["api","clojure","csharp","curl","go","har","http","httpie","httr","java","javascript","jquery","kotlin","objc","objective-c","ocaml","php","python","request","requests","ruby","shell","snippet","swift","swift","unirest","xhr","xmlhttprequest"],"engines":{"node":">=14.13"},"repository":{"type":"git","url":"git+https://github.com/P0lip/httpsnippet.git"},"bugs":{"url":"https://github.com/P0lip/httpsnippet/issues"},"scripts":{"lint":"npm run lint:prettify && npm run lint:code && npm run lint:markdown","lint:prettify":"prettier --check .","lint:code":"eslint . --ext ts,d.ts,test.ts","lint:markdown":"markdownlint-cli2 \"**/*.md\" \"#**/node_modules\"","build":"npm run build:cjs && npm run build:esm && npm run test:packaging","build:esm":"tsc -p tsconfig.build.json --outDir dist/esm --module ES2020 --declarationDir dist/types && node scripts/rewrite-extensions.mjs --module esm dist/esm","build:cjs":"tsc -p tsconfig.build.json --outDir dist/cjs --module commonjs --declarationDir dist/types && node scripts/rewrite-extensions.mjs --module cjs dist/cjs","test":"node --experimental-vm-modules node_modules/.bin/jest","test:packaging":"node --input-type=commonjs -e \"require('./dist/cjs/httpsnippet.cjs')\" && node --input-type=module -e \"import './dist/esm/httpsnippet.mjs'\"","prepublishOnly":"npm run lint && npm run test && npm run build"},"devDependencies":{"@types/node":"^18.15.11","@types/stringify-object":"^3.3.0","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","eslint":"^8.37.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jest-formatting":"^3.1.0","eslint-plugin-simple-import-sort":"^10.0.0","glob":"^9.3.2","jest":"^29.5.0","markdownlint-cli2":"^0.5.1","prettier":"^3.0.0-alpha.6","recast":"^0.22.0","ts-jest":"^29.0.5","typescript":"^5.0.2"},"dependencies":{"@types/har-format":"^1.2.10","formdata-node":"^4.4.1","stringify-object":"3.3.0"},"gitHead":"75aa13b6d395718146cda26b37a3102e39310b69","_id":"httpsnippet-lite@3.0.5","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-So4qTXY5iFj5XtFDwyz2PicUu+8NWrI8e8h+ZeZoVtMNcFQp4FFIntBHUE+JPUG6QQU8o1VHCy+X4ETRDwt9CA==","shasum":"af937fa37d3f34e333a1f68e64f906c0fe48c992","tarball":"https://registry.npmjs.org/httpsnippet-lite/-/httpsnippet-lite-3.0.5.tgz","fileCount":348,"unpackedSize":751567,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQsDWZiq5Ro54ZAQj879nwlCMPgaTYri3qBVca02gMjAiAl9NwqP3DxtqT6VG959RDLafSTEoFu0s2DVwceP9BQjw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKci2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp5xQ/8C7SlAC4+RtZ+HXrWO8RlqViLSO4HWQXGr/B95HOhdQ3Hy9EW\r\nPH8r0X460k7IGcnZdKXsJ0ynN9t1RiOZZt5wEqLJRiiCofjTQsobb5ilQjAR\r\nI+ON5frc7lFv5MtWSLzNMItNcahBE7PHglPNVP/fMn26zoUrDL60gitKxcYy\r\nJWR27QBzXlw5qNSN9OoS2Twdr5lKyvbNS4TbTicvdfgtoUDAMUrXTD9wwayb\r\nmgBmh6hfy+B2dGOAgGETX8pikyP+zSuPRvT6hQC9NOFC5d5n367cCDImxKbg\r\nyfi5eQaBlvMtxb7HebF46TE5HWhVMWPqBp1VNMpF80f4NFTt0NYnnHEgrEbi\r\nn5NCHfArUisxal5LbE5wNxDRjDzHhuaVZ52N86zr4emXEby4dWY5WvXZgvkm\r\n4+kFT18dn72Za9szwaDPax26XkepO0SrM6SuRP9CLIIqpAOHZI331CDPSuZn\r\nmzzOfDMXKEb8pOBoech6W+e0DwwjvGKTNVq5vArDys1MKV5T19d+DCln3cm1\r\nBenw/Wd6xhYF0CjHUPloIncQDUbb3j3VCGaqiurmH57hgx9Gixjai4/hehtt\r\nL5tmMDenEYJHGuOhdSTrw/OdYLtVSwqOFwkLsmRMO2nrs7+CoUSax8IH4Sag\r\nhzP5Huc3u543jOdbb/LcjyBvhlhr7B9t1H4=\r\n=XGJK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"p0lip","email":"jakub@rozek.tech"},"directories":{},"maintainers":[{"name":"p0lip","email":"jakub@rozek.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/httpsnippet-lite_3.0.5_1680459957759_0.3028647725796483"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-20T00:00:34.816Z","3.0.0":"2023-03-20T00:00:35.042Z","modified":"2023-04-02T18:25:58.200Z","3.0.1":"2023-03-20T12:49:26.563Z","3.0.2":"2023-03-26T23:51:12.767Z","3.0.3":"2023-03-27T00:01:58.289Z","3.0.4":"2023-03-30T13:24:22.109Z","3.0.5":"2023-04-02T18:25:58.075Z"},"maintainers":[{"name":"p0lip","email":"jakub@rozek.tech"}],"description":"HTTP Request snippet generator for *most* languages","homepage":"https://github.com/P0lip/httpsnippet","keywords":["api","clojure","csharp","curl","go","har","http","httpie","httr","java","javascript","jquery","kotlin","objc","objective-c","ocaml","php","python","request","requests","ruby","shell","snippet","swift","swift","unirest","xhr","xmlhttprequest"],"repository":{"type":"git","url":"git+https://github.com/P0lip/httpsnippet.git"},"contributors":[{"name":"Kong","email":"office@konghq.com"}],"author":{"name":"Jakub Rożek"},"bugs":{"url":"https://github.com/P0lip/httpsnippet/issues"},"license":"MIT","readme":"# HTTPSnippet-lite\n\n[![version][npm-version]][npm-url] [![License][npm-license]][license-url]\n\n> HTTP Request snippet generator for _many_ languages & tools including: `cURL`, `HTTPie`, `JavaScript`, `Node`, `C`, `Java`, `PHP`, `Objective-C`, `Swift`, `Python`, `Ruby`, `C#`, `Go`, `OCaml` and [more](https://github.com/Kong/httpsnippet/wiki/Targets)!\n\nRelies on the popular [HAR](http://www.softwareishard.com/blog/har-12-spec/#request) format to import data and describe HTTP calls.\n\n[![Build](https://github.com/httpsnippet-lite/workflows/CI/badge.svg)](https://github.com/httpsnippet-lite)\n\n- [HTTPSnippet](#httpsnippet-lite)\n  - [Quickstart](#quickstart)\n    - [Core Concepts](#core-concepts)\n    - [CLI Quickstart](#cli-quickstart)\n    - [TypeScript Library Quickstart](#typescript-library-quickstart)\n  - [TypeScript Library Usage](#typescript-library-usage)\n    - [Library Installation](#library-installation)\n    - [Types](#types)\n      - [`HarRequest`](#harrequest)\n      - [`HarEntry`](#harentry)\n      - [`TargetId`](#targetid)\n      - [`ClientId`](#clientid)\n      - [`Converter`](#converter)\n      - [`Client`](#client)\n      - [`Extension`](#extension)\n      - [`TargetInfo`](#targetinfo)\n      - [`Target`](#target)\n    - [Library Exports](#library-exports)\n      - [`new HTTPSnippet(source: HarRequest | HarEntry)`](#new-httpsnippetsource-harrequest--harentry)\n      - [`snippet.convert(targetId: string, clientId?: string, options?: T)`](#snippetconverttargetid-string-clientid-string-options-t)\n      - [`isTarget`](#istarget)\n      - [`addTarget`](#addtarget)\n      - [`isClient`](#isclient)\n      - [`addTargetClient`](#addtargetclient)\n\n## Quickstart\n\n### Core Concepts\n\n1. HTTPSnippet's input is a JSON object that represents an HTTP request in the [HAR Request Object format](http://www.softwareishard.com/blog/har-12-spec).\n1. HTTPSnippet's output is executable code that sends the input HTTP request, in a wide variety of languages and libraries.\n1. You provide HTTPSnippet your desired `target`, `client`, and `options`.\n   - a `target` refers to a group of code generators. Generally, a target is a _programming language_ like `Rust`, `Go`, `C`, or `OCaml`.\n   - `client` refers to a more specific generator within the parent target. For example, the `C#` target has two available clients, `httpclient` and `restsharp`, each referring to a popular C# library for making requests.\n   - `options` are per client and generally control things like specific indent behaviors or other formatting rules.\n\n### CLI Quickstart\n\n```shell\nnpm install --save httpsnippet-lite\n```\n\n### TypeScript Library Quickstart\n\n```ts\nimport { HTTPSnippet } from 'httpsnippet-lite';\n\nconst snippet = new HTTPSnippet({\n  method: 'GET',\n  url: 'http://mockbin.com/request',\n});\n\nconst options = { indent: '\\t' };\nconst output = await snippet.convert('shell', 'curl', options);\nconsole.log(output);\n```\n\n## TypeScript Library Usage\n\n### Library Installation\n\n| NPM                                            | Yarn                                 |\n| ---------------------------------------------- | ------------------------------------ |\n| <pre>npm install --save httpsnippet-lite</pre> | <pre>yarn add httpsnippet-lite</pre> |\n\n### Types\n\n#### `HarRequest`\n\nSee <https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/har-format> for the TypeScript type corresponding to this type\n\n#### `HarEntry`\n\n```ts\ninterface Entry {\n  request: Partial<HarRequest>;\n}\n\ninterface HarEntry {\n  log: {\n    version: string;\n    creator: {\n      name: string;\n      version: string;\n    };\n    entries: {\n      request: Partial<HarRequest>;\n    }[];\n  };\n}\n```\n\n#### `TargetId`\n\n```ts\ntype TargetId = string;\n```\n\n#### `ClientId`\n\n```ts\ntype ClientId = string;\n```\n\n#### `Converter`\n\n```ts\ntype Converter<T extends Record<string, any>> = (\n  request: Request,\n  options?: Merge<CodeBuilderOptions, T>,\n) => string;\n```\n\n#### `Client`\n\n```ts\ninterface Client<T extends Record<string, any> = Record<string, any>> {\n  info: ClientInfo;\n  convert: Converter<T>;\n}\n```\n\n#### `Extension`\n\n```ts\ntype Extension = `.${string}` | null;\n```\n\n#### `TargetInfo`\n\n```ts\ninterface TargetInfo {\n  key: TargetId;\n  title: string;\n  extname: Extension;\n  default: string;\n}\n```\n\n#### `Target`\n\n```ts\ninterface Target {\n  info: TargetInfo;\n  clientsById: Record<ClientId, Client>;\n}\n```\n\n### Library Exports\n\n#### `new HTTPSnippet(source: HarRequest | HarEntry)`\n\nName of [conversion target](https://github.com/Kong/httpsnippet/wiki/Targets)\n\n```ts\nimport { HTTPSnippet } from 'httpsnippet-lite';\n\nconst snippet = new HTTPSnippet({\n  method: 'GET',\n  url: 'http://mockbin.com/request',\n});\n```\n\n#### `snippet.convert(targetId: string, clientId?: string, options?: T)`\n\nThe `convert` method requires a target ID such as `node`, `shell`, `go`, etc. If no client ID is provided, the default client for that target will be used.\n\n> Note: to see the default targets for a given client, see `target.info.default`. For example [`shell`'s](src/targets/shell/target.ts) target has the default of `curl`.\n\nMany targets provide specific options. Look at the TypeScript types for the target you are interested in to see what options it provides. For example `shell:curl`'s options correspond to the `CurlOptions` interface in [the `shell:curl` client file](src/targets/shell/curl/client.ts).\n\n```ts\nimport { HTTPSnippet } from 'httpsnippet';\n\nconst snippet = new HTTPSnippet({\n  method: 'GET',\n  url: 'http://mockbin.com/request',\n});\n\n// generate Node.js: Native output\nconsole.log(await snippet.convert('node'));\n\n// generate Node.js: Native output, indent with tabs\nconsole.log(\n  await snippet.convert('node', {\n    indent: '\\t',\n  }),\n);\n```\n\n#### `isTarget`\n\nUseful for validating that a custom target is considered valid by HTTPSnippet.\n\n```ts\nconst isTarget: (target: Target) => target is Target;\n```\n\n```ts\nimport { myCustomTarget } from './my-custom-target';\nimport { isTarget } from 'httpsnippet-lite';\n\ntry {\n  console.log(isTarget(myCustomTarget));\n} catch (error) {\n  console.error(error);\n}\n```\n\n#### `addTarget`\n\nUse `addTarget` to add a new custom target that you can then use in your project.\n\n```ts\nconst addTarget: (target: Target) => void;\n```\n\n```ts\nimport { myCustomClient } from './my-custom-client';\nimport { HAR } from 'my-custom-har';\nimport { HTTPSnippet, addTargetClient } from 'httpsnippet-lite';\n\naddTargetClient(myCustomClient);\n\nconst snippet = new HTTPSnippet(HAR);\nconst output = await snippet.convert('customTargetId');\nconsole.log(output);\n```\n\n#### `isClient`\n\nUseful for validating that a custom client is considered valid by HTTPSnippet.\n\n```ts\nconst isClient: (client: Client) => client is Client;\n```\n\n```ts\nimport { myCustomClient } from './my-custom-client';\nimport { isClient } from 'httpsnippet';\n\ntry {\n  console.log(isClient(myCustomClient));\n} catch (error) {\n  console.error(error);\n}\n```\n\n#### `addTargetClient`\n\nUse `addTargetClient` to add a custom client to an existing target. See [`addTarget`](#addtarget) for how to add a custom target.\n\n```ts\nconst addTargetClient: (targetId: TargetId, client: Client) => void;\n```\n\n## Documentation\n\nAt the heart of this module is the [HAR Format](http://www.softwareishard.com/blog/har-12-spec/#request) as the HTTP request description format, please review some of the sample JSON HAR Request objects in [test fixtures](/test/fixtures/requests), or read the [HAR Docs](http://www.softwareishard.com/blog/har-12-spec/#request) for more details.\n\nFor detailed information on each target, please review the [wiki](https://github.com/Kong/httpsnippet/wiki).\n\n## Differences from `kong/httpsnippet`\n\nHere's a list of the most significant differences between httpsnippet-lite and [httpsnippet](https://github.com/Kong/httpsnippet) upstream:\n\n- No reliance on Node.js core modules and globals\n- convert() method is async\n- HAR is not validated\n- CLI is not bundled\n- Dual packaging available\n\n## License\n\n[MIT](LICENSE) &copy; [Kong](https://konghq.com)\n\n[license-url]: https://github.com/Kong/httpsnippet/blob/master/LICENSE\n[npm-url]: https://www.npmjs.com/package/httpsnippet-lite\n[npm-license]: https://img.shields.io/npm/l/httpsnippet-lite.svg?style=flat-square\n[npm-version]: https://img.shields.io/npm/v/httpsnippet-lite.svg?style=flat-square\n","readmeFilename":"README.md"}