{"_id":"@csstools/css-tokenizer","_rev":"297930","name":"@csstools/css-tokenizer","description":"Tokenize CSS","dist-tags":{"latest":"2.2.3"},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""},{"name":"romainmenke","email":""}],"time":{"modified":"2024-01-09T05:28:02.000Z","created":"2022-11-14T09:45:20.857Z","2.2.3":"2023-12-31T16:29:29.593Z","2.2.2":"2023-12-15T23:14:50.250Z","2.2.1":"2023-09-24T19:43:28.998Z","2.2.0":"2023-07-24T16:17:38.302Z","2.1.1":"2023-04-10T10:48:02.169Z","2.1.0":"2023-02-21T11:42:56.628Z","2.0.2":"2023-02-13T14:24:12.649Z","2.0.1":"2023-01-28T07:21:20.974Z","2.0.0":"2023-01-19T18:46:21.526Z","1.0.0":"2022-11-14T09:45:20.857Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-tokenizer"},"versions":{"2.2.3":{"name":"@csstools/css-tokenizer","description":"Tokenize CSS","version":"2.2.3","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"}}},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-tokenizer"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","tokenizer"],"_id":"@csstools/css-tokenizer@2.2.3","gitHead":"273ac9d1c682c55cc40832551961040270fef3a1","types":"./dist/index.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"b099d543ea57b64f495915a095ead583866c50c6","size":11533,"noattachment":false,"key":"/@csstools/css-tokenizer/-/@csstools/css-tokenizer-2.2.3.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-tokenizer/download/@csstools/css-tokenizer-2.2.3.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-tokenizer_2.2.3_1704040169424_0.6530625843149771"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-31T16:29:29.593Z","publish_time":1704040169593,"_source_registry_name":"default","_cnpm_publish_time":1704040169593},"2.2.2":{"name":"@csstools/css-tokenizer","description":"Tokenize CSS","version":"2.2.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"},"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"}}},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-tokenizer"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","tokenizer"],"_id":"@csstools/css-tokenizer@2.2.2","gitHead":"08d135d46f20ffb5781818a459c30a3a24679fd7","types":"./dist/index.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"bcd85cef4468c356833b21e96d38b940c9760605","size":9885,"noattachment":false,"key":"/@csstools/css-tokenizer/-/@csstools/css-tokenizer-2.2.2.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-tokenizer/download/@csstools/css-tokenizer-2.2.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-tokenizer_2.2.2_1702682090028_0.5716182144746753"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-15T23:14:50.250Z","publish_time":1702682090250,"_source_registry_name":"default","_cnpm_publish_time":1702682090250},"2.2.1":{"name":"@csstools/css-tokenizer","description":"Tokenize CSS","version":"2.2.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"}},"devDependencies":{"@rmenke/css-tokenizer-tests":"^1.1.1","postcss-parser-tests":"^8.8.0"},"scripts":{"benchmark":"node ./test/benchmark.mjs","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"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-tokenizer"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","tokenizer"],"volta":{"extends":"../../package.json"},"_id":"@csstools/css-tokenizer@2.2.1","gitHead":"40be1de549473ac67dacdea71a6a3e8f7ad0931e","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"shasum":"9dc431c9a5f61087af626e41ac2a79cce7bb253d","size":12568,"noattachment":false,"key":"/@csstools/css-tokenizer/-/@csstools/css-tokenizer-2.2.1.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-tokenizer/download/@csstools/css-tokenizer-2.2.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-tokenizer_2.2.1_1695584608780_0.4755734275622858"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-24T19:43:28.998Z","publish_time":1695584608998,"_source_registry_name":"default","_cnpm_publish_time":1695584608998},"2.2.0":{"name":"@csstools/css-tokenizer","description":"Tokenize CSS","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"}},"devDependencies":{"@rmenke/css-tokenizer-tests":"^1.1.1","postcss-parser-tests":"^8.6.0"},"scripts":{"benchmark":"node ./test/benchmark.mjs","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"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-tokenizer"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","tokenizer"],"volta":{"extends":"../../package.json"},"gitHead":"f9b14f5c4a9c2a578620fe579f198a4a26cd2efe","_id":"@csstools/css-tokenizer@2.2.0","_nodeVersion":"20.2.0","_npmVersion":"9.6.7","dist":{"shasum":"9d70e6dcbe94e44c7400a2929928db35c4de32b5","size":12564,"noattachment":false,"key":"/@csstools/css-tokenizer/-/@csstools/css-tokenizer-2.2.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-tokenizer/download/@csstools/css-tokenizer-2.2.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-tokenizer_2.2.0_1690215458135_0.09081176458292828"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-24T16:17:38.302Z","publish_time":1690215458302,"_source_registry_name":"default","_cnpm_publish_time":1690215458302},"2.1.1":{"name":"@csstools/css-tokenizer","description":"Tokenize CSS","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"}},"devDependencies":{"@rmenke/css-tokenizer-tests":"^1.0.9","postcss-parser-tests":"^8.5.1"},"scripts":{"benchmark":"node ./test/benchmark.mjs","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"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-tokenizer"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","tokenizer"],"volta":{"extends":"../../package.json"},"gitHead":"3ebd978ef0176b039bd41a9576d250f260e191db","_id":"@csstools/css-tokenizer@2.1.1","_nodeVersion":"18.13.0","_npmVersion":"9.4.1","dist":{"shasum":"07ae11a0a06365d7ec686549db7b729bc036528e","size":11856,"noattachment":false,"key":"/@csstools/css-tokenizer/-/@csstools/css-tokenizer-2.1.1.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-tokenizer/download/@csstools/css-tokenizer-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-tokenizer_2.1.1_1681123681960_0.46796077143323944"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-10T10:48:02.169Z","publish_time":1681123682169,"_cnpm_publish_time":1681123682169},"2.1.0":{"name":"@csstools/css-tokenizer","description":"Tokenize CSS","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"}},"devDependencies":{"@rmenke/css-tokenizer-tests":"^1.0.9","postcss-parser-tests":"^8.5.1"},"scripts":{"benchmark":"node ./test/benchmark.mjs","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":"npm run test:exports && node ./test/test.mjs","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-tokenizer"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","tokenizer"],"volta":{"extends":"../../package.json"},"gitHead":"e160e818d876b6d110453945746f040e2de40b86","_id":"@csstools/css-tokenizer@2.1.0","_nodeVersion":"18.13.0","_npmVersion":"9.4.1","dist":{"shasum":"fee4de3d444db3ce9007f3af6474af8ba3e4b930","size":11953,"noattachment":false,"key":"/@csstools/css-tokenizer/-/@csstools/css-tokenizer-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-tokenizer/download/@csstools/css-tokenizer-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-tokenizer_2.1.0_1676979776471_0.5076008035207611"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-21T11:42:56.628Z","publish_time":1676979776628,"_cnpm_publish_time":1676979776628},"2.0.2":{"name":"@csstools/css-tokenizer","description":"Tokenize CSS","version":"2.0.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":"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"}},"devDependencies":{"@rmenke/css-tokenizer-tests":"^1.0.9","postcss-parser-tests":"^8.5.1"},"scripts":{"benchmark":"node ./test/benchmark.mjs","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":"npm run test:exports && node ./test/test.mjs","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-tokenizer"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","tokenizer"],"volta":{"extends":"../../package.json"},"gitHead":"718c02d64202b0539734295aff5a811a3348bfc9","_id":"@csstools/css-tokenizer@2.0.2","_nodeVersion":"18.13.0","_npmVersion":"9.4.1","dist":{"shasum":"3635560ffc8f1994295d7ce3482e14f956d3f9e1","size":11968,"noattachment":false,"key":"/@csstools/css-tokenizer/-/@csstools/css-tokenizer-2.0.2.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-tokenizer/download/@csstools/css-tokenizer-2.0.2.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-tokenizer_2.0.2_1676298252480_0.7539872623501664"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-13T14:24:12.649Z","publish_time":1676298252649,"_cnpm_publish_time":1676298252649},"2.0.1":{"name":"@csstools/css-tokenizer","description":"Tokenize CSS","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"}},"devDependencies":{"@rmenke/css-tokenizer-tests":"^1.0.9","postcss-parser-tests":"^8.5.1"},"scripts":{"benchmark":"node ./test/benchmark.mjs","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":"npm run test:exports && node ./test/test.mjs","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-tokenizer"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","tokenizer"],"volta":{"extends":"../../package.json"},"gitHead":"141671243a19d739ad03293d56e31929accedd30","_id":"@csstools/css-tokenizer@2.0.1","_nodeVersion":"18.8.0","_npmVersion":"8.18.0","dist":{"shasum":"cb1e11752db57e69d9aa0e84c3105a25845d4055","size":11578,"noattachment":false,"key":"/@csstools/css-tokenizer/-/@csstools/css-tokenizer-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-tokenizer/download/@csstools/css-tokenizer-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-tokenizer_2.0.1_1674890480758_0.6633005764001174"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-28T07:21:20.974Z","publish_time":1674890480974,"_cnpm_publish_time":1674890480974},"2.0.0":{"name":"@csstools/css-tokenizer","description":"Tokenize CSS","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"}},"devDependencies":{"@rmenke/css-tokenizer-tests":"^1.0.9","postcss-parser-tests":"^8.5.1"},"scripts":{"benchmark":"node ./test/benchmark.mjs","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":"npm run test:exports && node ./test/test.mjs","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-tokenizer"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","tokenizer"],"volta":{"extends":"../../package.json"},"gitHead":"1f649f67cc178de33066bbe944fb50d36cd8b8d9","_id":"@csstools/css-tokenizer@2.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"fa2a7e8f4ed965e73ba30ee80c00fa64980fd11e","size":11531,"noattachment":false,"key":"/@csstools/css-tokenizer/-/@csstools/css-tokenizer-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-tokenizer/download/@csstools/css-tokenizer-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-tokenizer_2.0.0_1674153981279_0.34750593989936185"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-19T18:46:21.526Z","publish_time":1674153981526,"_cnpm_publish_time":1674153981526},"1.0.0":{"name":"@csstools/css-tokenizer","description":"Tokenize CSS","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"}},"scripts":{"benchmark":"node ./test/benchmark.mjs","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":"npm run test:exports && node ./test/test.mjs","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"packages/css-tokenizer"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["css","tokenizer"],"volta":{"extends":"../../package.json"},"gitHead":"3ef58e2e9369f40e3f60f405b7dd82edc0dd3e8e","_id":"@csstools/css-tokenizer@1.0.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"161c0c9b632952ee8c2f0a62eb479d736a5627ff","size":11931,"noattachment":false,"key":"/@csstools/css-tokenizer/-/@csstools/css-tokenizer-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/css-tokenizer/download/@csstools/css-tokenizer-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-tokenizer_1.0.0_1668419120669_0.22570465744154888"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-14T11:14:18.454Z","publish_time":1668419120857,"_cnpm_publish_time":1668419120857}},"readme":"# CSS Tokenizer\n\n[<img alt=\"npm version\" src=\"https://img.shields.io/npm/v/@csstools/css-tokenizer.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-tokenizer.md)\n\n## Usage\n\nAdd [CSS Tokenizer] to your project:\n\n```bash\nnpm install @csstools/css-tokenizer --save-dev\n```\n\n```js\nimport { tokenizer, TokenType } from '@csstools/css-tokenizer';\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\nwhile (true) {\n\tconst token = t.nextToken();\n\tif (token[0] === TokenType.EOF) {\n\t\tbreak;\n\t}\n\n\tconsole.log(token);\n}\n```\n\nOr use the `tokenize` helper function:\n\n```js\nimport { tokenize } from '@csstools/css-tokenizer';\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 tokens = tokenize({\n\tcss: myCSS,\n});\n\nconsole.log(tokens);\n```\n\n### Options\n\n```ts\n{\n\tonParseError?: (error: ParseError) => void\n}\n```\n\n#### `onParseError`\n\nThe tokenizer is forgiving and won't stop when a parse error is encountered.\n\nTo receive parsing error information you can set a callback.\n\n```js\nimport { tokenizer, TokenType } from '@csstools/css-tokenizer';\n\nconst t = tokenizer({\n\tcss: '\\\\',\n}, { onParseError: (err) => console.warn(err) });\n\nwhile (true) {\n\tconst token = t.nextToken();\n\tif (token[0] === TokenType.EOF) {\n\t\tbreak;\n\t}\n}\n```\n\nParser errors will try to inform you where in the tokenizer logic the error happened.\nThis tells you what kind of error occurred.\n\n## Goals and non-goals\n\nThings this package aims to be:\n- specification compliant CSS tokenizer\n- a reliable low level package to be used in CSS parsers\n\nWhat it is not:\n- opinionated\n- fast\n- small\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-tokenizer\n\n[CSS Tokenizer]: https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer\n","_attachments":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"license":"MIT"}