{"_id":"@csstools/postcss-ic-unit","_rev":"259761","name":"@csstools/postcss-ic-unit","description":"Use the ic length unit","dist-tags":{"latest":"2.0.2"},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"time":{"modified":"2023-03-27T17:09:26.000Z","created":"2022-02-15T18:55:29.139Z","2.0.2":"2023-02-08T08:37:05.280Z","2.0.1":"2023-01-28T07:41:36.510Z","2.0.0":"2023-01-24T09:08:02.319Z","1.0.1":"2022-07-08T16:50:19.989Z","1.0.0":"2022-02-15T18:55:29.139Z"},"users":{},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-ic-unit"},"versions":{"2.0.2":{"name":"@csstools/postcss-ic-unit","description":"Use the ic length unit","version":"2.0.2","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","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"}},"dependencies":{"@csstools/postcss-progressive-custom-properties":"^2.0.0","postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{"prebuild":"npm run clean","build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"","docs":"node ../../.github/bin/generate-docs/install.mjs","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","test":"node .tape.mjs && npm run test:exports","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-ic-unit"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["CJK water ideograph","css","glyph","ic","length","postcss-plugin","values"],"csstools":{"exportName":"postcssIcUnit","humanReadableName":"PostCSS IC Unit"},"volta":{"extends":"../../package.json"},"gitHead":"a3d9b7dce205bc6d17880214321265ec9c99734a","_id":"@csstools/postcss-ic-unit@2.0.2","_nodeVersion":"18.13.0","_npmVersion":"9.4.1","dist":{"shasum":"5a5e481c53977deec3d63793788eec924d4c5f7d","size":5799,"noattachment":false,"key":"/@csstools/postcss-ic-unit/-/@csstools/postcss-ic-unit-2.0.2.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-ic-unit/download/@csstools/postcss-ic-unit-2.0.2.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-ic-unit_2.0.2_1675845425117_0.054918758221554675"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-08T08:37:05.280Z","publish_time":1675845425280,"_cnpm_publish_time":1675845425280},"2.0.1":{"name":"@csstools/postcss-ic-unit","description":"Use the ic length unit","version":"2.0.1","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","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"}},"dependencies":{"@csstools/postcss-progressive-custom-properties":"^2.0.0","postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{"prebuild":"npm run clean","build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"","docs":"node ../../.github/bin/generate-docs/install.mjs","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","test":"node .tape.mjs && npm run test:exports","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-ic-unit"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["CJK water ideograph","css","glyph","ic","length","postcss-plugin","values"],"csstools":{"exportName":"postcssIcUnit","humanReadableName":"PostCSS IC Unit"},"volta":{"extends":"../../package.json"},"gitHead":"deac3272941595388119bb0d55dececfc64ff9aa","_id":"@csstools/postcss-ic-unit@2.0.1","_nodeVersion":"18.8.0","_npmVersion":"8.18.0","dist":{"shasum":"9663a0ab89407275c3b79b48230b3d64a944f451","size":5610,"noattachment":false,"key":"/@csstools/postcss-ic-unit/-/@csstools/postcss-ic-unit-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-ic-unit/download/@csstools/postcss-ic-unit-2.0.1.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-ic-unit_2.0.1_1674891696328_0.7372217729540791"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-28T07:41:36.510Z","publish_time":1674891696510,"_cnpm_publish_time":1674891696510},"2.0.0":{"name":"@csstools/postcss-ic-unit","description":"Use the ic length unit","version":"2.0.0","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","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"}},"dependencies":{"@csstools/postcss-progressive-custom-properties":"^2.0.0","postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{"prebuild":"npm run clean","build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"","docs":"node ../../.github/bin/generate-docs/install.mjs","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","test":"node .tape.mjs && npm run test:exports","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-ic-unit"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["CJK water ideograph","css","glyph","ic","length","postcss-plugin","values"],"csstools":{"exportName":"postcssIcUnit","humanReadableName":"PostCSS IC Unit"},"volta":{"extends":"../../package.json"},"gitHead":"d08923a352507c69642b9f3f560d098532c19df1","_id":"@csstools/postcss-ic-unit@2.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"b6a1aae744994543a294e8ef31c1f1b3d3389f09","size":5580,"noattachment":false,"key":"/@csstools/postcss-ic-unit/-/@csstools/postcss-ic-unit-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-ic-unit/download/@csstools/postcss-ic-unit-2.0.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-ic-unit_2.0.0_1674551282139_0.49964053121762575"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-24T09:08:02.319Z","publish_time":1674551282319,"_cnpm_publish_time":1674551282319},"1.0.1":{"name":"@csstools/postcss-ic-unit","description":"Use the ic length unit","version":"1.0.1","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","funding":{"type":"opencollective","url":"https://opencollective.com/csstools"},"engines":{"node":"^12 || ^14 || >=16"},"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"}},"dependencies":{"@csstools/postcss-progressive-custom-properties":"^1.1.0","postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.2"},"scripts":{"build":"rollup -c ../../rollup/default.js","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"","docs":"node ../../.github/bin/generate-docs/install.mjs","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","test":"node .tape.mjs && npm run test:exports","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-ic-unit"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["CJK water ideograph","css","glyph","ic","length","postcss-plugin","values"],"csstools":{"exportName":"postcssIcUnit","humanReadableName":"PostCSS IC Unit"},"volta":{"extends":"../../package.json"},"gitHead":"bd50761ea0b6c0697e27f672cc0cfd71ed6f33be","_id":"@csstools/postcss-ic-unit@1.0.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"28237d812a124d1a16a5acc5c3832b040b303e58","size":5559,"noattachment":false,"key":"/@csstools/postcss-ic-unit/-/@csstools/postcss-ic-unit-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-ic-unit/download/@csstools/postcss-ic-unit-1.0.1.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-ic-unit_1.0.1_1657299019758_0.15776676126843037"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-08T16:54:37.955Z","publish_time":1657299019989,"_cnpm_publish_time":1657299019989},"1.0.0":{"name":"@csstools/postcss-ic-unit","version":"1.0.0","description":"Use the ic length unit","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","engines":{"node":"^12 || ^14 || >=16"},"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":{"build":"rollup -c ../../rollup/default.js","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"","lint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","prepublishOnly":"npm run clean && npm run build && npm run test","stryker":"stryker run --logLevel error","test":"node .tape.mjs && npm run test:exports","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs"},"peerDependencies":{"postcss":"^8.3"},"keywords":["postcss-plugin","ic","css","values","length","glyph","CJK water ideograph"],"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-ic-unit"},"volta":{"extends":"../../package.json"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dependencies":{"@csstools/postcss-progressive-custom-properties":"^1.1.0","postcss-value-parser":"^4.2.0"},"gitHead":"fbcbffb0576fb9930ca0f74c32fa63c19e3c35a5","_id":"@csstools/postcss-ic-unit@1.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"f484db59fc94f35a21b6d680d23b0ec69b286b7f","size":5415,"noattachment":false,"key":"/@csstools/postcss-ic-unit/-/@csstools/postcss-ic-unit-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-ic-unit/download/@csstools/postcss-ic-unit-1.0.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-ic-unit_1.0.0_1644951328958_0.3954563715245547"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-15T18:55:36.134Z","publish_time":1644951329139,"_cnpm_publish_time":1644951329139}},"readme":"# PostCSS IC Unit [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][postcss]\n\n\n[<img alt=\"npm version\" src=\"https://img.shields.io/npm/v/@csstools/postcss-ic-unit.svg\" height=\"20\">][npm-url]\n[<img alt=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/ic-unit.svg\" height=\"20\">][css-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\n[PostCSS IC Unit] lets you use the ic length unit, following the [CSS Values and Units Module] specification.\n\n```pcss\np {\n  text-indent: 2ic;\n}\n\n.bubble {\n  width: calc(8ic + 20px);\n}\n\n/* becomes */\np {\n  text-indent: 2em;\n}\n\n.bubble {\n  width: calc(8em + 20px);\n}\n```\n\n_See prior work by [JLHwung](https://github.com/JLHwung) here [postcss-ic-unit](https://github.com/JLHwung/postcss-ic-unit)\nTo ensure long term maintenance and to provide the needed features this plugin was recreated based on JLHwung's work._\n\n## Usage\n\nAdd [PostCSS IC Unit] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-ic-unit --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssIcUnit = require('@csstools/postcss-ic-unit');\n\npostcss([\n  postcssIcUnit(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS IC Unit] runs in all Node environments, with special\ninstructions for:\n\n| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |\n| --- | --- | --- | --- | --- |\n\n## Options\n\n### preserve\n\nThe `preserve` option determines whether the original source\nis preserved. By default, it is not preserved.\n\n```js\npostcssIcUnit({ preserve: true })\n```\n\n```pcss\np {\n  text-indent: 2ic;\n}\n\n/* becomes */\n\np {\n  text-indent: 2em;\n  text-indent: 2ic;\n}\n```\n\n[postcss]: https://github.com/postcss/postcss\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#ic-unit\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-ic-unit\n\n[Gulp PostCSS]: https://github.com/postcss/gulp-postcss\n[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Loader]: https://github.com/postcss/postcss-loader\n[CSS Values and Units Module]: https://www.w3.org/TR/css-values-4/#ic\n[PostCSS IC Unit]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit\n","_attachments":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"license":"CC0-1.0"}