{"_id":"@csstools/css-parser-algorithms","_rev":"297925","name":"@csstools/css-parser-algorithms","description":"Algorithms to help you parse CSS from an array of tokens.","dist-tags":{"latest":"2.5.0"},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""},{"name":"romainmenke","email":""}],"time":{"modified":"2024-01-09T05:28:01.000Z","created":"2022-11-14T09:46:50.038Z","2.5.0":"2023-12-31T16:30:45.640Z","2.4.0":"2023-12-15T23:16:53.864Z","2.3.2":"2023-09-24T19:43:53.239Z","2.3.1":"2023-07-24T16:19:41.521Z","2.3.0":"2023-07-03T08:07:56.760Z","2.2.0":"2023-06-01T13:44:12.807Z","2.1.1":"2023-04-10T11:02:08.510Z","2.1.0":"2023-03-25T07:47:07.565Z","2.0.1":"2023-01-28T07:21:37.950Z","2.0.0":"2023-01-19T18:54:04.858Z","1.0.0":"2022-11-14T09:46:50.038Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-parser-algorithms"},"versions":{"2.5.0":{"name":"@csstools/css-parser-algorithms","description":"Algorithms to help you parse CSS from an array of tokens.","version":"2.5.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":"^14 || ^16 || >=18"},"type":"module","main":"dist/index.cjs","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"default":"./dist/index.cjs"}}},"peerDependencies":{"@csstools/css-tokenizer":"^2.2.3"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-parser-algorithms"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","parser"],"_id":"@csstools/css-parser-algorithms@2.5.0","gitHead":"b600119d074b21f61a86b14d085a72f88ecb4852","types":"./dist/index.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"0c03cd5418a9f404a05ff2ffcb1b69d04e8ec532","size":10116,"noattachment":false,"key":"/@csstools/css-parser-algorithms/-/@csstools/css-parser-algorithms-2.5.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-parser-algorithms/download/@csstools/css-parser-algorithms-2.5.0.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-parser-algorithms_2.5.0_1704040245415_0.2770327853300387"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-31T16:30:45.640Z","publish_time":1704040245640,"_source_registry_name":"default","_cnpm_publish_time":1704040245640},"2.4.0":{"name":"@csstools/css-parser-algorithms","description":"Algorithms to help you parse CSS from an array of tokens.","version":"2.4.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":"^14 || ^16 || >=18"},"type":"module","main":"dist/index.cjs","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"default":"./dist/index.cjs"}}},"peerDependencies":{"@csstools/css-tokenizer":"^2.2.2"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-parser-algorithms"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","parser"],"_id":"@csstools/css-parser-algorithms@2.4.0","gitHead":"62432b0c438f8f2057b14a52aa27760d878fdc5b","types":"./dist/index.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"88c7b62b8e00c391b24c585f9db5a0b62ed665b0","size":8258,"noattachment":false,"key":"/@csstools/css-parser-algorithms/-/@csstools/css-parser-algorithms-2.4.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-parser-algorithms/download/@csstools/css-parser-algorithms-2.4.0.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-parser-algorithms_2.4.0_1702682213690_0.31032717017202827"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-15T23:16:53.864Z","publish_time":1702682213864,"_source_registry_name":"default","_cnpm_publish_time":1702682213864},"2.3.2":{"name":"@csstools/css-parser-algorithms","description":"Algorithms to help you parse CSS from an array of tokens.","version":"2.3.2","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":"^14 || ^16 || >=18"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"peerDependencies":{"@csstools/css-tokenizer":"^2.2.1"},"scripts":{"build":"rollup -c ../../rollup/default.mjs","lint":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run build && npm run test","stryker":"stryker run --logLevel error","test":"node ./test/test.mjs && node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node ./test/test.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-parser-algorithms"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","parser"],"volta":{"extends":"../../package.json"},"_id":"@csstools/css-parser-algorithms@2.3.2","gitHead":"0ec4cdb9b2f9011278a04dfdbe325c54b47392db","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"shasum":"1e0d581dbf4518cb3e939c3b863cb7180c8cedad","size":8124,"noattachment":false,"key":"/@csstools/css-parser-algorithms/-/@csstools/css-parser-algorithms-2.3.2.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-parser-algorithms/download/@csstools/css-parser-algorithms-2.3.2.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-parser-algorithms_2.3.2_1695584633035_0.270095813902016"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-24T19:43:53.239Z","publish_time":1695584633239,"_source_registry_name":"default","_cnpm_publish_time":1695584633239},"2.3.1":{"name":"@csstools/css-parser-algorithms","description":"Algorithms to help you parse CSS from an array of tokens.","version":"2.3.1","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":"^14 || ^16 || >=18"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"peerDependencies":{"@csstools/css-tokenizer":"^2.2.0"},"scripts":{"build":"rollup -c ../../rollup/default.mjs","lint":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run build && npm run test","stryker":"stryker run --logLevel error","test":"node ./test/test.mjs && node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node ./test/test.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-parser-algorithms"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","parser"],"volta":{"extends":"../../package.json"},"gitHead":"33f11604f1dd25ceafe6ab2296f6ffbbbbe141f0","_id":"@csstools/css-parser-algorithms@2.3.1","_nodeVersion":"20.2.0","_npmVersion":"9.6.7","dist":{"shasum":"ec4fc764ba45d2bb7ee2774667e056aa95003f3a","size":8093,"noattachment":false,"key":"/@csstools/css-parser-algorithms/-/@csstools/css-parser-algorithms-2.3.1.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-parser-algorithms/download/@csstools/css-parser-algorithms-2.3.1.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-parser-algorithms_2.3.1_1690215581352_0.3424998035985971"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-24T16:19:41.521Z","publish_time":1690215581521,"_source_registry_name":"default","_cnpm_publish_time":1690215581521},"2.3.0":{"name":"@csstools/css-parser-algorithms","description":"Algorithms to help you parse CSS from an array of tokens.","version":"2.3.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":"^14 || ^16 || >=18"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"peerDependencies":{"@csstools/css-tokenizer":"^2.1.1"},"scripts":{"build":"rollup -c ../../rollup/default.mjs","lint":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run build && npm run test","stryker":"stryker run --logLevel error","test":"node ./test/test.mjs && node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node ./test/test.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-parser-algorithms"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","parser"],"volta":{"extends":"../../package.json"},"gitHead":"7a93612dab05a76f8b16e053b66612e909d9e74f","_id":"@csstools/css-parser-algorithms@2.3.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"shasum":"0cc3a656dc2d638370ecf6f98358973bfbd00141","size":8060,"noattachment":false,"key":"/@csstools/css-parser-algorithms/-/@csstools/css-parser-algorithms-2.3.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-parser-algorithms/download/@csstools/css-parser-algorithms-2.3.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-parser-algorithms_2.3.0_1688371676607_0.33687410597656586"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-03T08:07:56.760Z","publish_time":1688371676760,"_source_registry_name":"default","_cnpm_publish_time":1688371676760},"2.2.0":{"name":"@csstools/css-parser-algorithms","description":"Algorithms to help you parse CSS from an array of tokens.","version":"2.2.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":"^14 || ^16 || >=18"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"peerDependencies":{"@csstools/css-tokenizer":"^2.1.1"},"scripts":{"build":"rollup -c ../../rollup/default.mjs","lint":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run build && npm run test","stryker":"stryker run --logLevel error","test":"node ./test/test.mjs && node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node ./test/test.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-parser-algorithms"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","parser"],"volta":{"extends":"../../package.json"},"gitHead":"610cb27840d202f25c8bac08ec097e70de292512","_id":"@csstools/css-parser-algorithms@2.2.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"shasum":"1268b07196d1118296443aeff41bca27d94b0981","size":7774,"noattachment":false,"key":"/@csstools/css-parser-algorithms/-/@csstools/css-parser-algorithms-2.2.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-parser-algorithms/download/@csstools/css-parser-algorithms-2.2.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-parser-algorithms_2.2.0_1685627052649_0.25474052679749426"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-01T13:44:12.807Z","publish_time":1685627052807,"_source_registry_name":"default","_cnpm_publish_time":1685627052807},"2.1.1":{"name":"@csstools/css-parser-algorithms","description":"Algorithms to help you parse CSS from an array of tokens.","version":"2.1.1","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT","funding":{"type":"opencollective","url":"https://opencollective.com/csstools"},"engines":{"node":"^14 || ^16 || >=18"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"peerDependencies":{"@csstools/css-tokenizer":"^2.1.1"},"scripts":{"build":"rollup -c ../../rollup/default.mjs","lint":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run build && npm run test","stryker":"stryker run --logLevel error","test":"node ./test/test.mjs && node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node ./test/test.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-parser-algorithms"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","parser"],"volta":{"extends":"../../package.json"},"gitHead":"4f8c8efb3f07b98167b39b87c87f67c8362407e7","_id":"@csstools/css-parser-algorithms@2.1.1","_nodeVersion":"18.13.0","_npmVersion":"9.4.1","dist":{"shasum":"7b62e6412a468a2d1096ed267edd1e4a7fd4a119","size":7550,"noattachment":false,"key":"/@csstools/css-parser-algorithms/-/@csstools/css-parser-algorithms-2.1.1.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-parser-algorithms/download/@csstools/css-parser-algorithms-2.1.1.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-parser-algorithms_2.1.1_1681124528298_0.2682100573737334"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-10T11:02:08.510Z","publish_time":1681124528510,"_cnpm_publish_time":1681124528510},"2.1.0":{"name":"@csstools/css-parser-algorithms","description":"Algorithms to help you parse CSS from an array of tokens.","version":"2.1.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT","funding":{"type":"opencollective","url":"https://opencollective.com/csstools"},"engines":{"node":"^14 || ^16 || >=18"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"peerDependencies":{"@csstools/css-tokenizer":"^2.0.0"},"scripts":{"build":"rollup -c ../../rollup/default.mjs","lint":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run build && npm run test","stryker":"stryker run --logLevel error","test":"node ./test/test.mjs && node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node ./test/test.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-parser-algorithms"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","parser"],"volta":{"extends":"../../package.json"},"gitHead":"3dbf3070daeb78ae0753e5ec0bfb8899d332bf9a","_id":"@csstools/css-parser-algorithms@2.1.0","_nodeVersion":"18.13.0","_npmVersion":"9.4.1","dist":{"shasum":"c0a605b0218790faeb5911f240964891c6031501","size":7518,"noattachment":false,"key":"/@csstools/css-parser-algorithms/-/@csstools/css-parser-algorithms-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-parser-algorithms/download/@csstools/css-parser-algorithms-2.1.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-parser-algorithms_2.1.0_1679730427413_0.12333984313361879"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-25T07:47:07.565Z","publish_time":1679730427565,"_cnpm_publish_time":1679730427565},"2.0.1":{"name":"@csstools/css-parser-algorithms","description":"Algorithms to help you parse CSS from an array of tokens.","version":"2.0.1","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT","funding":{"type":"opencollective","url":"https://opencollective.com/csstools"},"engines":{"node":"^14 || ^16 || >=18"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"peerDependencies":{"@csstools/css-tokenizer":"^2.0.0"},"scripts":{"prebuild":"npm run clean","build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"","lint":"npm run lint:eslint && npm run lint:package-json","lint:eslint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","lint:package-json":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run clean && npm run build && npm run test","stryker":"stryker run --logLevel error","test":"node ./test/test.mjs","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node ./test/test.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-parser-algorithms"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","parser"],"volta":{"extends":"../../package.json"},"gitHead":"8df3010a138e57609fd453a592b6ed0e42bf513d","_id":"@csstools/css-parser-algorithms@2.0.1","_nodeVersion":"18.8.0","_npmVersion":"8.18.0","dist":{"shasum":"ff02629c7c95d1f4f8ea84d5ef1173461610535e","size":7266,"noattachment":false,"key":"/@csstools/css-parser-algorithms/-/@csstools/css-parser-algorithms-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-parser-algorithms/download/@csstools/css-parser-algorithms-2.0.1.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-parser-algorithms_2.0.1_1674890497742_0.7919654918929446"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-28T07:21:37.950Z","publish_time":1674890497950,"_cnpm_publish_time":1674890497950},"2.0.0":{"name":"@csstools/css-parser-algorithms","description":"Algorithms to help you parse CSS from an array of tokens.","version":"2.0.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT","funding":{"type":"opencollective","url":"https://opencollective.com/csstools"},"engines":{"node":"^14 || ^16 || >=18"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"peerDependencies":{"@csstools/css-tokenizer":"^2.0.0"},"scripts":{"prebuild":"npm run clean","build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"","lint":"npm run lint:eslint && npm run lint:package-json","lint:eslint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","lint:package-json":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run clean && npm run build && npm run test","stryker":"stryker run --logLevel error","test":"node ./test/test.mjs","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node ./test/test.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-parser-algorithms"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","parser"],"volta":{"extends":"../../package.json"},"gitHead":"5efb700e8a864e3b298bd1d0eba3063c34f2f829","_id":"@csstools/css-parser-algorithms@2.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"2f27a1f2aef94f5d009d3d83f08f1e095dff2b30","size":7234,"noattachment":false,"key":"/@csstools/css-parser-algorithms/-/@csstools/css-parser-algorithms-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-parser-algorithms/download/@csstools/css-parser-algorithms-2.0.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-parser-algorithms_2.0.0_1674154444682_0.2481414978320664"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-19T18:54:04.858Z","publish_time":1674154444858,"_cnpm_publish_time":1674154444858},"1.0.0":{"name":"@csstools/css-parser-algorithms","description":"Algorithms to help you parse CSS from an array of tokens.","version":"1.0.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT","funding":{"type":"opencollective","url":"https://opencollective.com/csstools"},"engines":{"node":"^14 || ^16 || >=18"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"peerDependencies":{"@csstools/css-tokenizer":"^1.0.0"},"scripts":{"build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"","lint":"npm run lint:eslint && npm run lint:package-json","lint:eslint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","lint:package-json":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run clean && npm run build && npm run test","stryker":"stryker run --logLevel error","test":"node ./test/test.mjs","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node ./test/test.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-parser-algorithms"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","parser"],"volta":{"extends":"../../package.json"},"gitHead":"65cb694bce119418e65a5bc7f2ade19c158c2d96","_id":"@csstools/css-parser-algorithms@1.0.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"63f0ecbb926abf92d6cd8d076663650ad340db8c","size":7067,"noattachment":false,"key":"/@csstools/css-parser-algorithms/-/@csstools/css-parser-algorithms-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-parser-algorithms/download/@csstools/css-parser-algorithms-1.0.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-parser-algorithms_1.0.0_1668419209935_0.54392966783924"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-14T11:15:05.025Z","publish_time":1668419210038,"_cnpm_publish_time":1668419210038}},"readme":"# CSS Parser Algorithms\n\n[<img alt=\"npm version\" src=\"https://img.shields.io/npm/v/@csstools/css-parser-algorithms.svg\" height=\"20\">][npm-url]\n[<img alt=\"Build Status\" src=\"https://github.com/csstools/postcss-plugins/workflows/test/badge.svg\" height=\"20\">][cli-url]\n[<img alt=\"Discord\" src=\"https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white\">][discord]\n\nImplemented from : https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\n\n## API\n\n[Read the API docs](./docs/css-parser-algorithms.md)\n\n## Usage\n\nAdd [CSS Parser Algorithms] to your project:\n\n```bash\nnpm install @csstools/css-parser-algorithms @csstools/css-tokenizer --save-dev\n```\n\n[CSS Parser Algorithms] only accepts tokenized CSS.\nIt must be used together with `@csstools/css-tokenizer`.\n\n\n```js\nimport { tokenizer, TokenType } from '@csstools/css-tokenizer';\nimport { parseComponentValue } from '@csstools/css-parser-algorithms';\n\nconst myCSS =  `@media only screen and (min-width: 768rem) {\n\t.foo {\n\t\tcontent: 'Some content!' !important;\n\t}\n}\n`;\n\nconst t = tokenizer({\n\tcss: myCSS,\n});\n\nconst tokens = [];\n\n{\n\twhile (!t.endOfFile()) {\n\t\ttokens.push(t.nextToken());\n\t}\n\n\ttokens.push(t.nextToken()); // EOF-token\n}\n\nconst options = {\n\tonParseError: ((err) => {\n\t\tthrow err;\n\t}),\n};\n\nconst result = parseComponentValue(tokens, options);\n\nconsole.log(result);\n```\n\n### Available functions\n\n- [`parseComponentValue`](https://www.w3.org/TR/css-syntax-3/#parse-component-value)\n- [`parseListOfComponentValues`](https://www.w3.org/TR/css-syntax-3/#parse-list-of-component-values)\n- [`parseCommaSeparatedListOfComponentValues`](https://www.w3.org/TR/css-syntax-3/#parse-comma-separated-list-of-component-values)\n\n### Utilities\n\n#### `gatherNodeAncestry`\n\nThe AST does not expose the entire ancestry of each node.\nThe walker methods do provide access to the current parent, but also not the entire ancestry.\n\nTo gather the entire ancestry for a a given sub tree of the AST you can use `gatherNodeAncestry`.\nThe result is a `Map` with the child nodes as keys and the parents as values.\nThis allows you to lookup any ancestor of any node.\n\n```css\nimport { parseComponentValue } from '@csstools/css-parser-algorithms';\n\nconst result = parseComponentValue(tokens, options);\nconst ancestry = gatherNodeAncestry(result);\n```\n\n### Options\n\n```ts\n{\n\tonParseError?: (error: ParseError) => void\n}\n```\n\n#### `onParseError`\n\nThe parser algorithms are forgiving and won't stop when a parse error is encountered.\nParse errors also aren't tokens.\n\nTo receive parsing error information you can set a callback.\n\nParser errors will try to inform you about the point in the parsing logic the error happened.\nThis tells you the kind of error.\n\n## Goals and non-goals\n\nThings this package aims to be:\n- specification compliant CSS parser\n- a reliable low level package to be used in CSS sub-grammars\n\nWhat it is not:\n- opinionated\n- fast\n- small\n- a replacement for PostCSS (PostCSS is fast and also an ecosystem)\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/css-parser-algorithms\n\n[CSS Parser Algorithms]: https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms\n","_attachments":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"license":"MIT"}