{"_id":"solidity-comments","_rev":"2-fdd462cc048b45dab8d71034754603b1","name":"solidity-comments","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"solidity-comments","version":"0.0.1","repository":{"type":"git","url":"git+https://github.com/frangio/solidity-comments.git"},"main":"index.js","types":"index.d.ts","napi":{"name":"solidity-comments","triples":{"defaults":false,"additional":["aarch64-apple-darwin","aarch64-pc-windows-msvc","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","i686-pc-windows-msvc","x86_64-apple-darwin","x86_64-pc-windows-msvc","x86_64-unknown-linux-gnu","x86_64-unknown-linux-musl","x86_64-unknown-freebsd"]}},"license":"MIT","devDependencies":{"@napi-rs/cli":"^2.9.0","ava":"^4.3.3","prettier":"^2.6.2"},"engines":{"node":">= 12"},"scripts":{"artifacts":"napi artifacts","build":"napi build --platform --release","build:debug":"napi build --platform","prepublishOnly":"napi prepublish -t npm","test":"ava","version":"napi version","clean":"rm index.js index.d.ts *.node","prettier":"prettier --write *.md *.json *.js *.d.ts __test__/*.mjs"},"ava":{"timeout":"2m"},"optionalDependencies":{"solidity-comments-darwin-arm64":"0.0.1","solidity-comments-win32-arm64-msvc":"0.0.1","solidity-comments-linux-arm64-gnu":"0.0.1","solidity-comments-linux-arm64-musl":"0.0.1","solidity-comments-win32-ia32-msvc":"0.0.1","solidity-comments-darwin-x64":"0.0.1","solidity-comments-win32-x64-msvc":"0.0.1","solidity-comments-linux-x64-gnu":"0.0.1","solidity-comments-linux-x64-musl":"0.0.1","solidity-comments-freebsd-x64":"0.0.1"},"gitHead":"926c8aa7069da6babcc98f0fd4c834dcb066a430","description":"`solidity-comments` is an N-API library built in Rust, which exposes a single function, which takes the contents of a Solidity source file and returns its imports and version pragmas.","bugs":{"url":"https://github.com/frangio/solidity-comments/issues"},"homepage":"https://github.com/frangio/solidity-comments#readme","dependencies":{"solidity-comments-darwin-arm64":"0.0.1","solidity-comments-win32-arm64-msvc":"0.0.1","solidity-comments-linux-arm64-gnu":"0.0.1","solidity-comments-linux-arm64-musl":"0.0.1","solidity-comments-win32-ia32-msvc":"0.0.1","solidity-comments-darwin-x64":"0.0.1","solidity-comments-win32-x64-msvc":"0.0.1","solidity-comments-linux-x64-gnu":"0.0.1","solidity-comments-linux-x64-musl":"0.0.1","solidity-comments-freebsd-x64":"0.0.1"},"_id":"solidity-comments@0.0.1","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-secIyG/ZevPl1qv4YKux6UiTv0jC/4Km79/LAv3GckqtYOH3cH5nSHe/IkQfIkAn7sLbWcOxWKvIckL9vS0hRg==","shasum":"dc5cdeda2af7464196f5d63ba1d746e898cf46f4","tarball":"https://registry.npmjs.org/solidity-comments/-/solidity-comments-0.0.1.tgz","fileCount":7,"unpackedSize":12211,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBLe40lncHo67Au0smfDL2rPopWeTNC+Ms4h3zj23pcLAiAtV9uRXucJFPE35I65qSr4/rPS2RJMZcZDU3bj6sGOjA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGjcSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHjg//VCOGpLTfuDfedT7Px9dj1LdJKzfLnCjfPqYaDwSaGGHjAk7H\r\nJ65VjF+G7yUzDFO4w5FoWNLsk3CWK/ShGtba6q35O1ffTKJtZEvx1goSGOWl\r\nlvDfGPbonFs1G49GoILcPo147gd8jCAjjwT091T3onq0BK3ufiDI1cUdOn7K\r\nkI4teH7I86WQLHGeB922/IvccTVpGL/xgb5o9dXZNKo7H7Iq6WZ8zUOWml8V\r\nA6TcRpEgLM8aSlDjo9dpvzApK3iNA97lusC65F9nSPsplsMK09Y8Anel9pW6\r\nv2EcV7KPHel4uqhVMzDqgAQ3DrNMTgN12Bimu6A5I5z2RonIs+m1yfbJs5ds\r\nfUnrDabAgnu8VYvL1ZaBllukwodmz+7bKOEqJr8ASXI+QwPbGXW/njqR6Soj\r\nx6BBXpuNeajIEodx4hOO+6WWvnc17G35morCJGRThKI3602cpXAuPSwedhIv\r\nSt+5FXtpiyHAGohBnmyER9l9LnQzPPS4MsLuPGFDPAiU1RqxiEZKbRtTa3jp\r\nwQJ5Fx3m4DtRR9wpujn3qIlJlZ4dG0bhfNvzCA3qgYfni4Bf2a2PfdP2dDiY\r\nzE/kiKzi8J2sR4PwlCBdy9FvrVUWV6guZPC+AKQbmskcAAlTf0QdHtQG4Ni5\r\n5RJwfJ0HHsDkDHt2ZKKmV57fAYYle4n3+PQ=\r\n=Iv3t\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"frangio","email":"frangio.1@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/solidity-comments_0.0.1_1662662418139_0.585219184902156"},"_hasShrinkwrap":false},"0.0.2":{"name":"solidity-comments","version":"0.0.2","repository":{"type":"git","url":"git+https://github.com/frangio/solidity-comments.git"},"main":"index.js","types":"index.d.ts","napi":{"name":"solidity-comments","triples":{"defaults":false,"additional":["aarch64-apple-darwin","aarch64-pc-windows-msvc","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","i686-pc-windows-msvc","x86_64-apple-darwin","x86_64-pc-windows-msvc","x86_64-unknown-linux-gnu","x86_64-unknown-linux-musl","x86_64-unknown-freebsd"]}},"license":"MIT","devDependencies":{"@napi-rs/cli":"^2.9.0","ava":"^4.3.3","prettier":"^2.6.2"},"engines":{"node":">= 12"},"scripts":{"artifacts":"napi artifacts","build":"napi build --platform --release","build:debug":"napi build --platform","prepublishOnly":"napi prepublish -t npm","test":"ava","version":"napi version","clean":"rm index.js index.d.ts *.node","prettier":"prettier --write *.md *.json *.js *.d.ts __test__/*.mjs"},"ava":{"timeout":"2m"},"optionalDependencies":{"solidity-comments-darwin-arm64":"0.0.2","solidity-comments-win32-arm64-msvc":"0.0.2","solidity-comments-linux-arm64-gnu":"0.0.2","solidity-comments-linux-arm64-musl":"0.0.2","solidity-comments-win32-ia32-msvc":"0.0.2","solidity-comments-darwin-x64":"0.0.2","solidity-comments-win32-x64-msvc":"0.0.2","solidity-comments-linux-x64-gnu":"0.0.2","solidity-comments-linux-x64-musl":"0.0.2","solidity-comments-freebsd-x64":"0.0.2"},"gitHead":"45183f5ff5c4a9bd327d3d2eed5084de0d7e6cc2","description":"`solidity-comments` is an N-API library built in Rust, which exposes a single function, which takes the contents of a Solidity source file and returns its comments.","bugs":{"url":"https://github.com/frangio/solidity-comments/issues"},"homepage":"https://github.com/frangio/solidity-comments#readme","dependencies":{"solidity-comments-darwin-arm64":"0.0.2","solidity-comments-win32-arm64-msvc":"0.0.2","solidity-comments-linux-arm64-gnu":"0.0.2","solidity-comments-linux-arm64-musl":"0.0.2","solidity-comments-win32-ia32-msvc":"0.0.2","solidity-comments-darwin-x64":"0.0.2","solidity-comments-win32-x64-msvc":"0.0.2","solidity-comments-linux-x64-gnu":"0.0.2","solidity-comments-linux-x64-musl":"0.0.2","solidity-comments-freebsd-x64":"0.0.2"},"_id":"solidity-comments@0.0.2","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-G+aK6qtyUfkn1guS8uzqUeua1dURwPlcOjoTYW/TwmXAcE7z/1+oGCfZUdMSe4ZMKklNbVZNiG5ibnF8gkkFfw==","shasum":"e1158d243ad55d5803882f2a67c0298466df573b","tarball":"https://registry.npmjs.org/solidity-comments/-/solidity-comments-0.0.2.tgz","fileCount":7,"unpackedSize":11467,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC6y0oq6U63JUm6UO4HWpkh0vitSlubb6v7+Yu3xz+q9AiAjQbeT3djlvTLSvB/ccXRlW9rDKz4XoN8GC92OxT21CA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGj2HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/Ug/+NHFuJWDXZqWVqHmet1S/MsoIQ1zwz6EnqqxNwfAe+gnM9+97\r\nv8ONq5f6dKGsfIwxlJj68q4kKCtQfnZgx2bdV1Pqe4Bf80dTNw93REB8AniX\r\nK6RlWVf5zUa8JM3JIYADBY4ERPYNUB7+a2+QROT40d/9rZiElQ27x1+frFqB\r\nz1l+1zHMoXdeutPsXoxWBL6rlGSAor9f2W6HCR6hSKDEASwmE0EBHjb469CG\r\nAB27VLnE5dnclKsjmtIZuZzd8UQpBsWFPEUWdPsFKroHx+fYOhQsxU2jaJak\r\n+ZiCgtuGs+WZyvdx98NLm/ZPJ7QfqcCRBkmGIvO5LSCuestU0An2E+tA6J6y\r\n3ByrWmJ2XnWfKKxzA1wnP8+DZ+1qr3lRQcjlBBvT8hfFblQ6g13VaZF7/l3/\r\nHGh+4614eP7B46T2boto0wpHBhgpm8sOxJwQoJFD0FXomxLfDXkGtkI/7Fxf\r\n26gGRxuMl+GBUKWA4pyuy8tgJaJIvWvwMAqavnURQ2bQwrzpH3nWG7PtD3dI\r\ntcPnDOSgw7K8SQ4l9jUENnOcK/9HiHawXz3yzAlFqy3zqgCbPX81n2LyFRdy\r\n3dRoMJVPioDiBHUVF1vgT7yBfm9MxWT9Gryp5EdMHmwxn9wJddtJeomfTw8Y\r\ngUaOpCxEohWqoBwnG89SKRwvNy9Fqx7M2xI=\r\n=2tQ/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"frangio","email":"frangio.1@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/solidity-comments_0.0.2_1662664070864_0.11979875333367507"},"_hasShrinkwrap":false},"0.1.1":{"name":"solidity-comments","version":"0.1.1","repository":{"type":"git","url":"git+https://github.com/frangio/solidity-comments.git"},"main":"index.js","types":"index.d.ts","napi":{"name":"solidity-comments","triples":{"defaults":false,"additional":["aarch64-apple-darwin","aarch64-pc-windows-msvc","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","i686-pc-windows-msvc","x86_64-apple-darwin","x86_64-pc-windows-msvc","x86_64-unknown-linux-gnu","x86_64-unknown-linux-musl","x86_64-unknown-freebsd"]}},"license":"MIT","devDependencies":{"@napi-rs/cli":"^2.9.0","ava":"^4.3.3","prettier":"^2.6.2"},"engines":{"node":">= 12"},"scripts":{"artifacts":"napi artifacts","build":"napi build --platform --release","build:debug":"napi build --platform","prepublishOnly":"napi prepublish -t npm","test":"ava","version":"napi version","clean":"rm index.js index.d.ts *.node","prettier":"prettier --write *.md *.json *.js *.d.ts __test__/*.mjs"},"ava":{"timeout":"2m"},"optionalDependencies":{"solidity-comments-darwin-arm64":"0.1.1","solidity-comments-win32-arm64-msvc":"0.1.1","solidity-comments-linux-arm64-gnu":"0.1.1","solidity-comments-linux-arm64-musl":"0.1.1","solidity-comments-win32-ia32-msvc":"0.1.1","solidity-comments-darwin-x64":"0.1.1","solidity-comments-win32-x64-msvc":"0.1.1","solidity-comments-linux-x64-gnu":"0.1.1","solidity-comments-linux-x64-musl":"0.1.1","solidity-comments-freebsd-x64":"0.1.1"},"gitHead":"d9292cfd646229a4e6d953ac2f7727460a6b003b","description":"`solidity-comments` is an N-API library built in Rust, which exposes a single function, which takes the contents of a Solidity source file and returns its comments.","bugs":{"url":"https://github.com/frangio/solidity-comments/issues"},"homepage":"https://github.com/frangio/solidity-comments#readme","dependencies":{"solidity-comments-darwin-arm64":"0.1.1","solidity-comments-win32-arm64-msvc":"0.1.1","solidity-comments-linux-arm64-gnu":"0.1.1","solidity-comments-linux-arm64-musl":"0.1.1","solidity-comments-win32-ia32-msvc":"0.1.1","solidity-comments-darwin-x64":"0.1.1","solidity-comments-win32-x64-msvc":"0.1.1","solidity-comments-linux-x64-gnu":"0.1.1","solidity-comments-linux-x64-musl":"0.1.1","solidity-comments-freebsd-x64":"0.1.1"},"_id":"solidity-comments@0.1.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-NcoArLAZNHs5iROYF5fS1B818fpF+E16Ogx756Bfc0Y5nnTiBCaCdJWD3lvEFie8o3V3u6nx5c/LAMP2j6pN1A==","shasum":"af81dae1f5dc304a56aeae59e5ba4fee0117217e","tarball":"https://registry.npmjs.org/solidity-comments/-/solidity-comments-0.1.1.tgz","fileCount":8,"unpackedSize":29654,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCI6H/++m6goN3pU6UCx4R8rvWkIoa/7Ycf0zRNCDMK5wIhAMf+TqEst4Hfbmnm5HTjrVIwIfXna4Jr5RMwQn2QTnK0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjpiQ8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmphtBAAjr+N9ElXDI8gsuKZ9eekDleuZBWyPSAp2ttbu3mabQjKxn8V\r\nqwz7WbkrPTPCa2one7O8cBux+QC/WkaK/f7hyxfqLHmyLx8gyOkvoyF5GQ4o\r\nzw07xZEikoXe+cT1IuL1PzrNIeU6boRuE3sqhEMkjb/l/lwWh43Z5zJymum3\r\n+dYfl/LnKTnPKMT1iv2xR4YOKJyP+jcEF6mM2z3442Ny5qgSJNwhjnaj30Px\r\n2fgzsEFGvr2rjAEb8DL73a8TyHjTH8pcDkPsCUkUlPRXr/kGGV/bbhyYOnvb\r\nQk9Eg928Ggbu24gf3/xYGpAYTl128EMo+YCHJkOEjVBYnLhKRArNfD3aRvBN\r\n/GG56U4pWq6He18ML9U/XFd+FP1RadvyEqVLaDHwZqA7z8slm02nW8GwXoPs\r\n9pUAv7HMXiJahtZWLi9LTRdkfnbvr8BXQ4R6e/YlRZlswRkxv6HL5z0VPgdv\r\nzvyktUEF+3JdVqIdHbUPGDmow/w4kWYnJWUohTLocOm5K8DJPmFRE2VTOsfA\r\nT/1MrJ9tMyju2oyKXBvkNezSwo5Y7OQ7FJSDn6mkFnkTT15lC72i7OY55dbf\r\n8bYxyB45+xpW98H5flzIUxB5Tn8oUv7zbsNCCLJxan1TrMjelJD9KahWtGjX\r\nSXgaCtpP+cUDWsRGV5Jk9KkgbJmw3vE20vQ=\r\n=6blN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"frangio","email":"frangio.1@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/solidity-comments_0.1.1_1671832636296_0.5444016380895833"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-08T18:40:18.079Z","0.0.1":"2022-09-08T18:40:18.320Z","modified":"2022-12-23T21:57:16.601Z","0.0.2":"2022-09-08T19:07:51.107Z","0.1.1":"2022-12-23T21:57:16.503Z"},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"}],"description":"`solidity-comments` is an N-API library built in Rust, which exposes a single function, which takes the contents of a Solidity source file and returns its comments.","homepage":"https://github.com/frangio/solidity-comments#readme","repository":{"type":"git","url":"git+https://github.com/frangio/solidity-comments.git"},"bugs":{"url":"https://github.com/frangio/solidity-comments/issues"},"license":"MIT","readme":"# `solidity-comments`\n\n`solidity-comments` is an N-API library built in Rust, which exposes a single function, which takes the contents of a Solidity source file and returns its comments.\n\n## Installation\n\n```bash\nnpm install solidity-comments\n```\n\n## API\n\n```ts\nexport interface AnalysisResult {\n  comments: Array<Comment>;\n}\n\nexport interface Comment {\n  start: number\n  end: number\n  text: string\n}\n\nexport function analyze(input: string): AnalysisResult;\n```\n\n## Browser support\n\nThis library doesn't work in a browser.\n\n## Regenerating `index.js` and `index.d.ts`\n\nThese files have to be committed because of our current Github Actions, yet, they are autogenerated.\n\nYou can run `cargo clean`, `yarn clean`, and `yarn build` to recreate them.\n","readmeFilename":"README.md"}