{"name":"@csstools/postcss-ic-unit","version":"2.0.0","keywords":["CJK water ideograph","css","glyph","ic","length","postcss-plugin","values"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","_id":"@csstools/postcss-ic-unit@2.0.0","homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"b6a1aae744994543a294e8ef31c1f1b3d3389f09","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-ic-unit/download/@csstools/postcss-ic-unit-2.0.0.tgz","fileCount":8,"integrity":"sha512-R120sQLhdNFH1K3cBpTLAwqu41L9r9BF5K+6tWMMbCpSiUXhNcYCJWbghf2546No9HBiWGL8YLZabsuaHKAEKg==","signatures":[{"sig":"MEUCICEzN1zQ86IAAypKwn7ShmEUo7d6IEMqtJf8RTNFv9ZsAiEAkL/EXi7atCl2sfv4acctm9bN2Q2XUeEYU3EshhnvFZ4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14376,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjz5/yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmooMA/7BP10OHh4vysXRVCMW8tN/w3N6yzh51Mrt+MioluwQpnbBqsE\r\n1bFRvwXCEjgZiXYo04/Z1QpRpTGnLA3nLePN3g7Pj2TIovMBIUD19/M/bP6I\r\nNeunUvLp2hHBHJJ2GrCn35aUGC7NtbcgavE3V/nxfvbwUNoatnQqpOIdR8jh\r\n9qxjlgBiLXRKZoMu7hVX3gYPd8D5yB9QYXcXpSUw68zbNilebQe1VGhaOz8V\r\n7jFY2QA43TmnrEikiPlW7wgpmwDEO7nuUR/L9eN7sgEj9Zl+/bHtf/EfGUMd\r\n+aCbLT1hFEbl53GevpTLF+FpH8wETistwmCeEBEDPPIhiRPdWtXyQT3ZhRJr\r\nViejYCYor7ggv973aEr6aRPzH+ex2vsXYyX496y2WXohF6tHA6/Hpt2/JOJC\r\n8Ln8bMfK2ovJEsVwSqJfW08qu/FQ0f2PMQlDHFiBvsAlfTy5/hU6Iw5/VuyE\r\nXGc3LOF4AkdvaOVy2RoNGmK+YLExeNFJ8rvsX4MBefGHH1FG4w3hcfKNNGWr\r\nNCjJY6fYrNs+UVm5pcE802topsTqekqTLNBb4ZB8aFRAggy3cQE0rRtTDPJd\r\nWw79Fx04d9HLRSJiXzbL4iCPNpjKuOgVP4jGLMPOGip8bMTQbmRp6/dhPApV\r\nR9Z4qdZhThLWuT6uhXeF0HeN46F6nkvAMSs=\r\n=EXc8\r\n-----END PGP SIGNATURE-----\r\n","size":5580,"noattachment":false,"key":"/@csstools/postcss-ic-unit/-/@csstools/postcss-ic-unit-2.0.0.tgz"},"main":"dist/index.cjs","types":"dist/index.d.ts","volta":{"extends":"../../package.json"},"module":"dist/index.mjs","engines":{"node":"^14 || ^16 || >=18"},"exports":{".":{"import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"funding":{"url":"https://opencollective.com/csstools","type":"opencollective"},"gitHead":"d08923a352507c69642b9f3f560d098532c19df1","scripts":{"docs":"node ../../.github/bin/generate-docs/install.mjs","lint":"npm run lint:eslint && npm run lint:package-json","test":"node .tape.mjs && npm run test:exports","build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"","prebuild":"npm run clean","lint:eslint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","prepublishOnly":"npm run clean && npm run build && npm run test","lint:package-json":"node ../../.github/bin/format-package-json.mjs","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"csstools":{"exportName":"postcssIcUnit","humanReadableName":"PostCSS IC Unit"},"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-ic-unit"},"_npmVersion":"8.1.2","description":"Use the ic length unit","directories":{},"_nodeVersion":"16.13.1","dependencies":{"postcss-value-parser":"^4.2.0","@csstools/postcss-progressive-custom-properties":"^2.0.0"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"tmp":"tmp/postcss-ic-unit_2.0.0_1674551282139_0.49964053121762575","host":"s3://npm-registry-packages"},"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=\"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<br><br>\n[<img alt=\"Baseline Status\" src=\"https://cssdb.org/images/badges-baseline/ic-unit.svg\" height=\"20\">][css-url]\n[<img alt=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/ic-unit.svg\" height=\"20\">][css-url]\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","publish_time":1674551282319,"maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_cnpm_publish_time":1674551282319,"dist-tags":{"latest":"5.0.6"}}