{"_id":"css-simple-parser","_rev":"6-e55e4795139e59c8483865fa957b174f","name":"css-simple-parser","dist-tags":{"latest":"3.0.2"},"versions":{"1.0.0":{"name":"css-simple-parser","version":"1.0.0","keywords":["css","scss","sass","simple","parser","ast","fast","small","tiny"],"author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"license":"MIT","_id":"css-simple-parser@1.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/css-simple-parser#readme","bugs":{"url":"https://github.com/fabiospampinato/css-simple-parser/issues"},"ava":{"files":["test/index.js"]},"dist":{"shasum":"f9e846bb43328fabcc30d5e1751159f6995d9ba8","tarball":"https://registry.npmjs.org/css-simple-parser/-/css-simple-parser-1.0.0.tgz","fileCount":26,"integrity":"sha512-kpHMPxGT25+3jxTe9E0NfQu+b2JLin1UM/IF6Yj7wIzbZpJAZ/wf4JQFj1kh8RLy1MyJ7Ym5CditJDo78Oai/w==","signatures":[{"sig":"MEQCIHwdBrplUSYL2i9rGaE2vmNjOclpco4krZ7F/0piraDUAiAgKsR6JayrfPEwr3KO9pLDgEozJAneU+x8Un1HXPW2BQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMhDDCRA9TVsSAnZWagAADjAP/j7x7oMFKTr91WXwaqpq\ngVqXnQCwzSZzlQD2x9sqKRzVKNbKdfORoArzIbsbTO8fIPXlZ0KWrh0Hnd0e\nMesfHSDZLNzltHJmxNGqgrUBq+uCuuqrGKL9ht+Zn/fkN47C5vhCMb12Yd8q\neTbLGFwfaHVxEZP5w6sweleTIcLWSxgsACgLZffVs/mv0q/uB3/MIwqhv/R2\nKaeINKAsnqMDTzgn8UqeyxsIiJgO1hpPiojl6i1gdvdRqRfB3TIPLbFK1z5I\nD/0u0mvVms7Suucs7kWgelQokMAVALw2XnMpnrpOVS35fG0YodV6vt8b+8Uq\ndoO11XBUZZF8uCer6G0hanJ5aKnCcpoYIde9jZ4Rn5WRz1tDAzUqDyS1UISr\nrt55DMlnI7AzBA/412DTN8IHLmWRuV+Ml2NZgQJUt7hlzJLqO3QEtZWT2Vcg\n4VNx4cqpD0xZ3d/NN/K4Wl2GZg4xpMwUuKnpcO2dYu2mQwwo0KtaHJ5ngIWA\n2/IhT6qN58pYhSJBZsDo5xwOz1I+rN/WfjJbMKIRpd3j3YNFnl0oJxBGQ13x\nWDy6i7dD5WRfJNcSNlV5/5FDRuRZE3obwGBrVjbcjbSKeJYZYyV9W9qFKhD7\nyyGJqkEQABD9izpJMW59ey5UdequQw4p65JBE6sLRNIPWjPSQgxieYK84PQr\n/+zi\r\n=FnUJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"98f3adb7651e84e82072424a6de0bb11a022f179","scripts":{"test":"ava","clean":"npm run clean:dist && npm run clean:coverage","report":"nyc report","compile":"tsc --skipLibCheck && tstei","coverage":"nyc --reporter=html ava","benchmark":"node tasks/benchmark.js","clean:dist":"rimraf dist","test:watch":"ava --watch","report:html":"open coverage/index.html","compile:watch":"tsc --skipLibCheck --watch","clean:coverage":"rimraf coverage .nyc_output","prepublishOnly":"npm run clean && npm run compile && npm run coverage"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/css-simple-parser.git","type":"git"},"_npmVersion":"6.4.1","description":"A (S)CSS parser that's tiny, blazing fast and (too) simple.","directories":{},"_nodeVersion":"8.4.0","dependencies":{"detect-eol":"^1.0.0","string-indexes":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^2.3.0","nyc":"^15.0.0","rimraf":"^3.0.1","ava-spec":"^1.1.1","benchloop":"^1.3.1","typescript":"^3.7.5","@types/node":"^13.5.1","css-simple-minifier":"^1.0.0","typescript-transform-export-interop":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/css-simple-parser_1.0.0_1580339394643_0.8943690578162371","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"css-simple-parser","version":"2.0.0","keywords":["css","scss","sass","simple","parser","ast","fast","small","tiny"],"author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"license":"MIT","_id":"css-simple-parser@2.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/css-simple-parser#readme","bugs":{"url":"https://github.com/fabiospampinato/css-simple-parser/issues"},"ava":{"files":["test/index.js"]},"dist":{"shasum":"d31447dc6f0ca77b5865cc0bb4b1a9f9a4df3abb","tarball":"https://registry.npmjs.org/css-simple-parser/-/css-simple-parser-2.0.0.tgz","fileCount":26,"integrity":"sha512-Cs6legY9YM4DQ9pNxpAh4vQdDmBTA5OAARAhBn2jLM2Q0b57w7My5Ykt2riRLQBsrcegqkJvKvIzsuRtNm6IIg==","signatures":[{"sig":"MEUCIGhJ4Ehr7CByR/bvE4G9M6GMWFBkUGQ6PDL7svNE61JoAiEAwl5Rvj8b5/3n51dnaXc3f2b1O+JhuYgTSP1CvB/e+jQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55729,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMsz2CRA9TVsSAnZWagAAWuQP/03URV9+tUHGfXXy25AM\nPyGyZfGTrg/8Oh1tMuHUZY72lWlyBxj3bATRxyhIgHMxEXtwuh7SO80UujtH\nzaFZfSQJEz2wjW3RYD/EzhFveNq+riKityu7afeLvGOfYbY4RiNzHWvHVvys\nOmyEo5kyeCHHbCiZ0c848HHNZfCjLQLKcLDdk0D90UHuKmOVHO1b+PjRaFCq\nVwss4EjUTodxqstKJWP9lKOIC0TadKgIETWJqk/DPeAiVlnPef94fKSCyY8X\n8bi7ZyTlXtMfz7n2ukLldCsc/OgvidK5YT0kyk+t+OdUBrHFpFrZVzIIfaVk\nAxM42nYt0+FshVhd8ztGgaTe6aVinzrS2f9GBSmVniRUm5cLn9lD0sdmqlbB\n6mvV5Ecf9a4L8ySetOdq0Rqj51i4MHpl/GTo6XPk36IrQ5Y+l6bUQPqs/1Wd\nF93c2G2eOB+dfqyiyXc0zJAAUp01+GjHrmHVS6zOEtFR3/OEaaNybxdtmFTh\nXJWKAY6yBJTgwdYIxrHBLrOHNFIJcKA31XkYnzbNWuNxLAbx8EXDEMfr7nqD\nkFBQmU8/2Hx5QlB9dUwkkL863iWDnAKRx2wsF4BgearFfx9lFywnO5yAM5Ib\nHGoJekf4N+SOVCYJ5+Ltcib5hjeNhSp2rlQUvXbsInPcifRq5rlp3B4pO+x5\nFEyV\r\n=VIEZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"fcd2fa08717e599c7cccb87100df94b015f434ad","scripts":{"test":"ava","clean":"npm run clean:dist && npm run clean:coverage","report":"nyc report","compile":"tsc --skipLibCheck && tstei","coverage":"nyc --reporter=html ava","benchmark":"node tasks/benchmark.js","clean:dist":"rimraf dist","test:watch":"ava --watch","report:html":"open coverage/index.html","compile:watch":"tsc --skipLibCheck --watch","clean:coverage":"rimraf coverage .nyc_output","prepublishOnly":"npm run clean && npm run compile && npm run coverage"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/css-simple-parser.git","type":"git"},"_npmVersion":"6.4.1","description":"A (S)CSS parser that's tiny, blazing fast and (too) simple.","directories":{},"_nodeVersion":"8.4.0","dependencies":{"string-indexes":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^2.3.0","nyc":"^15.0.0","rimraf":"^3.0.1","ava-spec":"^1.1.1","benchloop":"^1.3.1","typescript":"^3.7.5","@types/node":"^13.5.1","css-simple-minifier":"^1.0.0","typescript-transform-export-interop":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/css-simple-parser_2.0.0_1580387574544_0.1409576884831807","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"css-simple-parser","version":"2.0.1","keywords":["css","scss","sass","simple","parser","ast","fast","small","tiny"],"author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"license":"MIT","_id":"css-simple-parser@2.0.1","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/css-simple-parser#readme","bugs":{"url":"https://github.com/fabiospampinato/css-simple-parser/issues"},"ava":{"files":["test/index.js"]},"dist":{"shasum":"77764093df091da999b765d51697715bece627c2","tarball":"https://registry.npmjs.org/css-simple-parser/-/css-simple-parser-2.0.1.tgz","fileCount":26,"integrity":"sha512-0zAlwfwAY6+/TdWMy3uv+zznbWODby5RPwCXwGC+74yZAxxPOtaq5PZfn85Qs8fRKSANpQlAnRXLRuvzFVLmNg==","signatures":[{"sig":"MEUCIGG1VWErwUvUSdKUiITuD6xNMUeqzFzB0/H/0rcm5ZbcAiEAryiPd99nR76ocfFMWNCjHE4iyIjcPyx2KIH1uQ7XyFY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOMAeCRA9TVsSAnZWagAAevUP/jShamToDlZrTV82XhjC\nOXKM9mgxzkDUSEfCbVkUhlKyP5ARPY98cHAluvFH2m4N+4I2EbWLQ+FrvoMN\nBcFrTpxF/Y5kwxGOVHHDjq8ngNNTPEcpyxF9x5gOy9tmSCDhy0O3pLLMHimE\n/DZK5YbeSmrneU48YwVIUk/Ik50Rufbo2KXY7TRjuDMU/jERYPxTYigBV6fA\npQC2LCTM4//mA8pxzpwID6+7NAvj1WUgw20C0rWosUJwgh40wqHdVY5bOdE4\nmg36bFv9g3epKCvj9ZYOPkSmyXw5YCk/yWQqKZDC+xSI5Zo4oMB9x00cwdx5\nxDKgZv3wurPdbnDcd5Lo3AEwdILADEqY5RafZZRQalCC081VOv3P2vhc3bL/\nhaqLq3kdTVPQLCM20KEo3dsORAEF5mx0vEP/4uviEL9nz5wFNiBgjhTGcD1a\n3g4bHGs6kJess+RaqRIaHzLcAM3MNN+i7V1pSptVngDAdBZyNeBST3DiKeAx\nv5cR36JjTV8nVsBmuDk+9KUsZPpK0pdJZ/xrEjvruk5JTC0ouZOVPIvw4ubH\nntfcZrRWXJJIw5dIrFUCRxsTqIEUDpTEr81zZ1o4784JojlcnWRCS1IIMijB\nTcNPFyac1Kb87ZpB+7RQcCKdxeOiOg+04EghSMp8MGblY6IoERIInVuPsFqC\netvF\r\n=JRKx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c188571744ea4b1604541c31c8fd7b4c4581b597","scripts":{"test":"ava","clean":"npm run clean:dist && npm run clean:coverage","report":"nyc report","compile":"tsc --skipLibCheck && tstei","coverage":"nyc --reporter=html ava","benchmark":"node tasks/benchmark.js","clean:dist":"rimraf dist","test:watch":"ava --watch","report:html":"open coverage/index.html","compile:watch":"tsc --skipLibCheck --watch","clean:coverage":"rimraf coverage .nyc_output","prepublishOnly":"npm run clean && npm run compile && npm run coverage"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/css-simple-parser.git","type":"git"},"_npmVersion":"6.4.1","description":"A (S)CSS parser that's tiny, blazing fast and (too) simple.","directories":{},"_nodeVersion":"8.4.0","dependencies":{"string-indexes":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^2.3.0","nyc":"^15.0.0","rimraf":"^3.0.1","ava-spec":"^1.1.1","benchloop":"^1.3.1","typescript":"^3.7.5","@types/node":"^13.5.1","css-simple-minifier":"^1.0.0","typescript-transform-export-interop":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/css-simple-parser_2.0.1_1580777501516_0.7673866956236686","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"css-simple-parser","version":"3.0.0","keywords":["css","scss","sass","simple","parser","ast","fast","small","tiny"],"_id":"css-simple-parser@3.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/css-simple-parser#readme","bugs":{"url":"https://github.com/fabiospampinato/css-simple-parser/issues"},"dist":{"shasum":"3d2c072ab594b7e7409101ec9c823baf3fe1d14a","tarball":"https://registry.npmjs.org/css-simple-parser/-/css-simple-parser-3.0.0.tgz","fileCount":29,"integrity":"sha512-vCQf8BH7UO+HqA4DG1gkYzLVlRSLHD64leDWmfBrZZnZuHyGcTDFs6OqYNTDV36n4JbKMA6v4DnJeNRVXdk2nw==","signatures":[{"sig":"MEYCIQDWPsOgmaNlhXdWO8GdKwf2GwQfRntvNwXoPM/JucGuPQIhAKO6nfBsIp+pJMZrab13eBWnX9i9ZA5V5ArG+g5yhSE+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTgeTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpjUQ//bZJcgJnTslNcDt92gD6qxVBZuhQa2aSElmeOj/8THYmdCT5B\r\n24qlwdYhIneDHeDZoVM5faFRT//6y/vYN0O57fGzgM1kErRwZfJ67yTFFPiB\r\ngXEunyaNWnmQJ2C1un7wZ4+mGh+aGLZMxOSm8SzWIO8Sm9CJaIxdj2cY7b3Y\r\nV8H2QpLbInuHAClgmrRQV5iSFVuPZ/6YnSK1jOlc42f4cvdlxAE6lsXzruGL\r\n1p5Qi6J8lfcs2bhL6jHvDkR8mmXnLAbjGDSgRDI31UpUS8jSLQA5sR5qunE9\r\nXJcyJwaFLaVpplyoJhtD6c6nGKX9Lvjn330WVpoJfi1LDH5dkKNzcPM6mWVF\r\nT6YQk7/n4zmzyN0eE7ZXenx6MRWHF/bANqSyrUuzrqQaFua2bJNSufB1bCU6\r\n0B8VxN6eWMo4PiWdiUsAvHqi1QvNEWyhPyZzQTgpqmiRLwvOGF9y5WJ4/RRJ\r\nWZ1TTHvrArFRBnxpMenNaUrAYn73UaaPiq9aNZgcNSVnqfnot8YJ4akP61+Z\r\nsuZPX7tlDOqFAhJ5buPyQIyAKlxWq8JZzFc+vMbduu3nSkjk2+AlNruRLyqw\r\ne2hlz2uZ39gGWZfxyr2hUeWB4cpHKpkSmDqvh436j3XTwEt3rsMxkWL/bNPr\r\nXvdDueEFhMFRai48JZBXseIsxNBZZdXMD0w=\r\n=uaow\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"c270d50b8ce910eb3697dcf0e9e64e70ca6fafb5","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","benchmark":"tsex benchmark","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"npm run clean && npm run compile && npm run test","benchmark:watch":"tsex benchmark --watch"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/css-simple-parser.git","type":"git"},"_npmVersion":"8.1.0","description":"A (S)CSS parser that's tiny, blazing fast and (too) simple.","directories":{},"_nodeVersion":"16.13.0","dependencies":{"string-indexes":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"fava":"^0.0.6","tsex":"^1.0.6","benchloop":"^1.3.2","typescript":"^4.6.3","css-simple-minifier":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/css-simple-parser_3.0.0_1649280914840_0.8520492643929589","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"css-simple-parser","version":"3.0.1","keywords":["css","scss","sass","simple","parser","ast","fast","small","tiny"],"license":"MIT","_id":"css-simple-parser@3.0.1","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/css-simple-parser#readme","bugs":{"url":"https://github.com/fabiospampinato/css-simple-parser/issues"},"dist":{"shasum":"a87ebbc46c1dae5a318df8a24207544a19ff0236","tarball":"https://registry.npmjs.org/css-simple-parser/-/css-simple-parser-3.0.1.tgz","fileCount":17,"integrity":"sha512-3Qw7n/wskjwmuJ55biYHTismx2orYV/jXDNu4V4dDIZ61lr2bHF08t2MGAwqB7IDbDMEoflC55web7AJKVvqgA==","signatures":[{"sig":"MEUCIBC5ehl/NQeY5SE8cERonbC2c6jZWteb+ML+FSRESoCbAiEAkeDlJlDJ7mN3xIUrY7pHD6n4Iwul0ZpUDbC8fLZ1RZI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12374},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"df7395b949a52f80c2eedeb09787f74b2896b683","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","benchmark":"tsex benchmark","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare","benchmark:watch":"tsex benchmark --watch"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/css-simple-parser.git","type":"git"},"_npmVersion":"10.2.3","description":"A (S)CSS parser that's tiny, blazing fast and (too) simple.","directories":{},"_nodeVersion":"18.19.0","dependencies":{"string-indexes":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"fava":"^0.3.4","tsex":"^4.0.2","benchloop":"^2.1.1","typescript":"^5.7.3","css-simple-minifier":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/css-simple-parser_3.0.1_1737836647634_0.6373573749193204","host":"s3://npm-registry-packages-npm-production"}},"3.0.2":{"name":"css-simple-parser","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/css-simple-parser.git"},"description":"A (S)CSS parser that's tiny, blazing fast and (too) simple.","license":"MIT","version":"3.0.2","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"benchmark":"tsex benchmark","benchmark:watch":"tsex benchmark --watch","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["css","scss","sass","simple","parser","ast","fast","small","tiny"],"dependencies":{"string-indexes":"^2.0.1"},"devDependencies":{"benchloop":"^2.1.1","css-simple-minifier":"^2.0.1","fava":"^0.3.4","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"css-simple-parser@3.0.2","gitHead":"1e1ebf6909f12e506f8f12ab2aae97c32c87e2a7","bugs":{"url":"https://github.com/fabiospampinato/css-simple-parser/issues"},"homepage":"https://github.com/fabiospampinato/css-simple-parser#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-8PzVfpTZVdRN5X7/4yIdcfM+u7b8C4OF+bchwX7eH0JlPEgpVH8axAr9ByNYMmm20xNIi0Z8llg/JtvhFql/ig==","shasum":"380345dbaa377dd0d3a060d3a085979114566c08","tarball":"https://registry.npmjs.org/css-simple-parser/-/css-simple-parser-3.0.2.tgz","fileCount":17,"unpackedSize":12363,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGkz0stomucoZUFIkR4+9tIQcvVzhCHnkGxwWyzMJFFLAiEA0JNTIrNaiY7KhYIEbVnXmVq+WpvjYVntEZ4aq789S8c="}]},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/css-simple-parser_3.0.2_1737836859122_0.7966219883950949"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-29T23:09:54.642Z","modified":"2025-01-25T20:27:39.508Z","1.0.0":"2020-01-29T23:09:54.808Z","2.0.0":"2020-01-30T12:32:54.639Z","2.0.1":"2020-02-04T00:51:41.625Z","3.0.0":"2022-04-06T21:35:15.006Z","3.0.1":"2025-01-25T20:24:07.857Z","3.0.2":"2025-01-25T20:27:39.309Z"},"bugs":{"url":"https://github.com/fabiospampinato/css-simple-parser/issues"},"license":"MIT","homepage":"https://github.com/fabiospampinato/css-simple-parser#readme","keywords":["css","scss","sass","simple","parser","ast","fast","small","tiny"],"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/css-simple-parser.git"},"description":"A (S)CSS parser that's tiny, blazing fast and (too) simple.","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"readme":"# CSS Simple Parser\n\nA (S)CSS parser that's tiny, blazing fast and (too) simple.\n\n## Features\n\n- **Tiny**: at ~1.5kb (min + gzip) this is about as small a CSS parser as you can get.\n- **Blazing fast**: on a mid-2014 MBP it takes ~0.03ms, on average when benchmarking, to generate an AST for [this](https://github.com/fabiospampinato/css-simple-parser/blob/master/test/fixtures.js) ~500 lines CSS string, about 100x faster than PostCSS.\n- **Nesting**: nested (S)CSS rules are supported.\n\n## Caveats\n\nThe _big_ caveat is that this is not a full-blown CSS parser, it can only parse (S)CSS strings with the following limitations:\n\n- Only rule blocks are supported at the top-level, e.g. no `@charset`, `@import` etc.\n- No `{`, `}` or `;` can be used inside strings, e.g. `div[attr=\";{}\"]`, `content: \"{}\"` etc.\n- Lastly, the generated AST is quite crude and might require further processing.\n\n## Install\n\n```sh\nnpm install css-simple-parser\n```\n\n## Usage\n\n### AST\n\nThe AST (Abstract Syntax Tree) provided by this library has the following shape:\n\n```ts\ntype AST = ROOT_NODE;\n\ntype ROOT_NODE = {\n  parent: null,\n  children: NODE[]\n};\n\ntype NODE = {\n  parent: ROOT_NODE | NODE,\n  index: number,\n  indexEnd: number,\n  selector: string,\n  selectorIndex: number,\n  selectorIndexEnd: number,\n  body: string,\n  bodyIndex: number,\n  bodyIndexEnd: number,\n  children: NODE[]\n};\n```\n\n### `Parser.parse`\n\nThis method computes an AST from the given CSS string.\n\n```ts\nimport Parser from 'css-simple-parser';\n\nconst ast = Parser.parse ( '.foo {}' );\n```\n\n### `Parser.stringify`\n\nThis method computes a CSS string given an AST.\n\n```ts\nimport Parser from 'css-simple-parser';\n\nconst ast = Parser.parse ( '.foo {}' );\nconst css = Parser.stringify ( ast );\n```\n\n### `Parser.traverse`\n\nThis method calls a function with each node found in the AST, the AST is being traversed depth-first.\n\n```ts\nimport Parser from 'css-simple-parser';\n\nconst ast = Parser.parse ( '.foo {}' );\n\nParser.traverse ( ast, node => {\n  console.log ( node.selector );\n});\n```\n\n## Related\n\n- **[css-flatten](https://github.com/fabiospampinato/css-flatten)**: Flattens a nested CSS string, `&` placeholders are supported too.\n- **[css-simple-minifier](https://github.com/fabiospampinato/css-simple-minifier)**: A CSS minifier that's tiny and very fast.\n\n## License\n\nMIT © Fabio Spampinato\n","readmeFilename":"readme.md"}