{"_id":"@abhijithvijayan/styler","_rev":"2-517a857b198381865decd211d87f522f","name":"@abhijithvijayan/styler","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@abhijithvijayan/styler","version":"1.0.0","description":"CSS Modules Style Helper","license":"MIT","repository":{"type":"git","url":"git+https://github.com/abhijithvijayan/styler.git"},"author":{"name":"abhijithvijayan","email":"email@abhijithvijayan.in","url":"https://abhijithvijayan.in"},"engines":{"node":">=10.0.0"},"main":"lib/cjs/index.js","module":"lib/esm/index.js","types":"lib/cjs/index.d.ts","scripts":{"watch":"tsc --module esnext --outDir lib/esm --watch","build:cjs":"tsc --module commonjs --outDir lib/cjs","build:esm":"tsc --module esnext --outDir lib/esm","build":"rimraf lib && yarn build:cjs && yarn build:esm","pack:list":"npm pack && tar -xvzf *.tgz && rm -rf package *.tgz","prepublishOnly":"yarn test && yarn build","test":"jest","test:watch":"jest --watch","lint":"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.ts":["eslint --ext .ts"]},"keywords":["css","modules"],"dependencies":{"@abhijithvijayan/ts-utils":"^1.2.2"},"peerDependencies":{"@abhijithvijayan/ts-utils":"^1.2.2"},"devDependencies":{"@abhijithvijayan/eslint-config":"2.6.2","@abhijithvijayan/eslint-config-airbnb":"^1.0.2","@abhijithvijayan/tsconfig":"^1.3.0","@babel/eslint-parser":"^7.13.14","@types/jest":"^26.0.23","@types/node":"^15.0.2","@typescript-eslint/eslint-plugin":"^4.23.0","@typescript-eslint/parser":"^4.23.0","eslint":"^7.26.0","eslint-config-prettier":"^6.15.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.4.0","eslint-plugin-react":"^7.23.2","eslint-plugin-react-hooks":"^4.2.0","husky":"^4.3.8","jest":"^26.6.3","lint-staged":"^11.0.0","prettier":"^2.3.0","rimraf":"^3.0.2","ts-jest":"^26.5.6","typescript":"4.4.4"},"gitHead":"2664174f1f7c8973fd2f80aff32f9c0642d1084d","bugs":{"url":"https://github.com/abhijithvijayan/styler/issues"},"homepage":"https://github.com/abhijithvijayan/styler#readme","_id":"@abhijithvijayan/styler@1.0.0","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-D8amRDeXG4VxH676Jhqwj9VdixDdy/uvi4UD/aR7HfWbLOXKdJbQeltyW9kwWXMMFtO/G+B6BXsgaLOx4NpdUQ==","shasum":"ab85652dc929644ab907625c63757192a7efc0c4","tarball":"https://registry.npmjs.org/@abhijithvijayan/styler/-/styler-1.0.0.tgz","fileCount":11,"unpackedSize":12170,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHkS9PBvP6HXSAYvfLGYPoKFQzjIcLoA1P31y09K+6IwIgXFkmKmTC1pingIaxvLQe024uICNQzJRDhDM+OZpFoF8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw+mkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDow//W1ePNDUFDA7NqNm8rWDqMaxLAxiIlQF3jQUZ8M4+vu2maY+y\r\nNFpl2Zv3qQeAkV1kfB5fr2vTyC7tkX4XUItq/AN0zTQNY9fTgyN3f09ZnWVv\r\nvwLf/vMC9N7n9ED/kPzrstlSrhmgltoQz/tz16JaXjliIRZYDbckCUKZeSnU\r\nfzZulDbVr9QcoZAoWpUZUIh1Vukoua4sSss8nE/rFKSJywz1cwTLKh2qkMmX\r\nFjE0K4exsZHmlMtB3dqUrhE/kD6c2Rqj0VgksloFN0Z2Ak+2+ytHM5o10XGk\r\nSWGjeNGoQKenaDhq+pJlDfWXmI7fPQ+iwC01CPuqWMMMcFF7xoEQcB3lISy1\r\nfoXCSfbQUqNG0dPAag3HNCJfUMzusfhBquLb669qnRFJQSGlJEDhBsmsXTOC\r\nfPAwTbtAScU7pX6XE2X45Rrzd0qO2DN2CkMgy/MOCmPt4EUg1KtT+grI7ulz\r\nxT1X4BSh26/8KMrWXW2SL0ZjOHXnpm8TxU5R29yNbSatOH1ehLQOsazxQcLP\r\nTQtQppmYl+VHEmH8+eDqY0FmLhQ+OILIhHDOuPNrUQ0HqN0P3HTL4LbNWv89\r\ntzw9RZmDYfBdjDTbzukODav0GDhawpoU62be9a4C8GgLPJo2PfJ9LgWfTIJK\r\nvpjma+52sZ0Wn3TsODygXp1HieBZyPO85Zs=\r\n=2X7K\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"abhijithvijayan","email":"email@abhijithvijayan.in"},"directories":{},"maintainers":[{"name":"abhijithvijayan","email":"email@abhijithvijayan.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styler_1.0.0_1673783716069_0.6671994290680132"},"_hasShrinkwrap":false},"1.0.1":{"name":"@abhijithvijayan/styler","version":"1.0.1","description":"CSS Modules Style Helper","license":"MIT","repository":{"type":"git","url":"git+https://github.com/abhijithvijayan/styler.git"},"author":{"name":"abhijithvijayan","email":"email@abhijithvijayan.in","url":"https://abhijithvijayan.in"},"engines":{"node":">=10.0.0"},"main":"lib/cjs/index.js","module":"lib/esm/index.js","types":"lib/cjs/index.d.ts","scripts":{"watch":"tsc --module esnext --outDir lib/esm --watch","build:cjs":"tsc --module commonjs --outDir lib/cjs","build:esm":"tsc --module esnext --outDir lib/esm","build":"rimraf lib && npm run build:cjs && npm run build:esm","pack:list":"npm pack && tar -xvzf *.tgz && rm -rf package *.tgz","prepublishOnly":"npm run pack:list","test":"jest","test:watch":"jest --watch","lint":"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.ts":["eslint --ext .ts"]},"keywords":["css","utility","css-modules"],"dependencies":{"@abhijithvijayan/ts-utils":"^1.2.2"},"peerDependencies":{"@abhijithvijayan/ts-utils":"^1.2.2"},"devDependencies":{"@abhijithvijayan/eslint-config":"^2.8.1","@abhijithvijayan/eslint-config-airbnb":"^1.1.0","@abhijithvijayan/tsconfig":"^1.3.0","@babel/eslint-parser":"^7.24.1","@types/jest":"^26.0.23","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","eslint":"^8.57.0","eslint-config-prettier":"^8.10.0","eslint-plugin-import":"^2.29.1","eslint-plugin-jsx-a11y":"^6.8.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-react":"^7.34.1","eslint-plugin-react-hooks":"^4.6.0","husky":"^4.3.8","jest":"^26.6.3","lint-staged":"^11.0.0","prettier":"^3.2.5","rimraf":"^3.0.2","ts-jest":"^26.5.6","typescript":"^4.9.5"},"_id":"@abhijithvijayan/styler@1.0.1","gitHead":"7b6b3b6fd99cb6889eb6878383db7135d54e2f08","bugs":{"url":"https://github.com/abhijithvijayan/styler/issues"},"homepage":"https://github.com/abhijithvijayan/styler#readme","_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-4maiTJRrY6ig2ey4QTIwkNevqgnX7sKTKQZEjlxB0v031f/rYn6aQP58i2MytYmvq82E5nsuMq/mhmDRaUDYrA==","shasum":"922d399ef949447c4d92f1d2cbf3b3edd3ff360a","tarball":"https://registry.npmjs.org/@abhijithvijayan/styler/-/styler-1.0.1.tgz","fileCount":15,"unpackedSize":24387,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abhijithvijayan%2fstyler@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC427LW9cOcRVQHgZBODizOM+71OEqyG2HqgoFNJhPNjQIgDJhNES8NUlZZvReBjaImYBU4/1DjO88g9Xlf0+UGH+A="}]},"_npmUser":{"name":"abhijithvijayan","email":"email@abhijithvijayan.in"},"directories":{},"maintainers":[{"name":"abhijithvijayan","email":"email@abhijithvijayan.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styler_1.0.1_1711807614792_0.9464053918351802"},"_hasShrinkwrap":false},"1.1.0":{"name":"@abhijithvijayan/styler","version":"1.1.0","description":"CSS Modules Style Helper","license":"MIT","repository":{"type":"git","url":"git+https://github.com/abhijithvijayan/styler.git"},"author":{"name":"abhijithvijayan","email":"email@abhijithvijayan.in","url":"https://abhijithvijayan.in"},"type":"module","exports":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","sideEffects":false,"engines":{"node":">=18"},"scripts":{"watch":"tsc --watch","build":"rimraf lib && tsc","pack:list":"npm pack && tar -xvzf *.tgz && rm -rf package *.tgz","prepublishOnly":"npm run pack:list","test":"jest","test:watch":"jest --watch","lint":"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.ts":["eslint --ext .ts"]},"keywords":["css","utility","css-modules"],"dependencies":{"@abhijithvijayan/ts-utils":"^1.2.2"},"peerDependencies":{"@abhijithvijayan/ts-utils":"^1.2.2"},"devDependencies":{"@abhijithvijayan/eslint-config":"^2.8.1","@abhijithvijayan/eslint-config-airbnb":"^1.1.0","@abhijithvijayan/tsconfig":"^1.3.0","@babel/eslint-parser":"^7.24.1","@types/jest":"^26.0.23","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","eslint":"^8.57.0","eslint-config-prettier":"^8.10.0","eslint-plugin-import":"^2.29.1","eslint-plugin-jsx-a11y":"^6.8.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-react":"^7.34.1","eslint-plugin-react-hooks":"^4.6.0","husky":"^4.3.8","jest":"^26.6.3","lint-staged":"^11.0.0","prettier":"^3.2.5","rimraf":"^3.0.2","ts-jest":"^26.5.6","typescript":"^4.9.5"},"_id":"@abhijithvijayan/styler@1.1.0","gitHead":"508276b35532593ac080b17607fb8cf07b8240e9","bugs":{"url":"https://github.com/abhijithvijayan/styler/issues"},"homepage":"https://github.com/abhijithvijayan/styler#readme","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-Q4ALTmwPg7wLb6s1o7nNpubUvNYkEkhkx52XCjl0Gn6n+e6P2Wh7tePpZMIvTYxFvB0g6U+uCzRMovwx5Gul9A==","shasum":"1e8b7b1307cabe65b86bc7445bb8bc87af9c3cb6","tarball":"https://registry.npmjs.org/@abhijithvijayan/styler/-/styler-1.1.0.tgz","fileCount":7,"unpackedSize":9459,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abhijithvijayan%2fstyler@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFZ4uo3oqtipjKHhEVg3wwO77ZItxvElWZyI+T/LymygIhAN//AkzjNuhJrF81TamE2df4bsK/YHR/XnUCrPTWSiCy"}]},"_npmUser":{"name":"abhijithvijayan","email":"email@abhijithvijayan.in"},"directories":{},"maintainers":[{"name":"abhijithvijayan","email":"email@abhijithvijayan.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styler_1.1.0_1711877555963_0.7822748065252461"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-15T11:55:16.004Z","1.0.0":"2023-01-15T11:55:16.238Z","modified":"2024-03-31T09:32:36.582Z","1.0.1":"2024-03-30T14:06:54.936Z","1.1.0":"2024-03-31T09:32:36.145Z"},"maintainers":[{"name":"abhijithvijayan","email":"email@abhijithvijayan.in"}],"description":"CSS Modules Style Helper","homepage":"https://github.com/abhijithvijayan/styler#readme","keywords":["css","utility","css-modules"],"repository":{"type":"git","url":"git+https://github.com/abhijithvijayan/styler.git"},"author":{"name":"abhijithvijayan","email":"email@abhijithvijayan.in","url":"https://abhijithvijayan.in"},"bugs":{"url":"https://github.com/abhijithvijayan/styler/issues"},"license":"MIT","readme":"<h1 align=\"center\">@abhijithvijayan/styler</h1>\n<p align=\"center\">CSS Modules Style Helper</p>\n<div align=\"center\">\n  <a href=\"https://www.npmjs.com/package/@abhijithvijayan/styler\">\n    <img src=\"https://img.shields.io/npm/v/@abhijithvijayan/styler\" alt=\"NPM\" />\n  </a>\n  <a href=\"https://travis-ci.com/abhijithvijayan/styler\">\n    <img src=\"https://travis-ci.com/abhijithvijayan/styler.svg?branch=main\" alt=\"Travis Build\" />\n  </a>\n  <a href=\"https://david-dm.org/abhijithvijayan/styler\">\n    <img src=\"https://img.shields.io/david/abhijithvijayan/styler.svg?colorB=orange\" alt=\"DEPENDENCIES\" />\n  </a>\n  <a href=\"https://github.com/abhijithvijayan/styler/blob/main/license\">\n    <img src=\"https://img.shields.io/github/license/abhijithvijayan/styler.svg\" alt=\"LICENSE\" />\n  </a>\n  <a href=\"https://twitter.com/intent/tweet?text=Check%20out%20%40abhijithvijayan%2Fstyler%21%20by%20%40_abhijithv%0A%0ACSS%20Modules%20Style%20Helper%0Ahttps%3A%2F%2Fgithub.com%2Fabhijithvijayan%2Fstyler%0A%0A%23css%20%23scss%20%23sass%20%23modules%20%23styler%20%23util\">\n     <img src=\"https://img.shields.io/twitter/url/http/shields.io.svg?style=social\" alt=\"TWEET\" />\n  </a>\n</div>\n<h3 align=\"center\">🙋‍♂️ Made by <a href=\"https://twitter.com/_abhijithv\">@abhijithvijayan</a></h3>\n<p align=\"center\">\n  Donate:\n  <a href=\"https://www.paypal.me/iamabhijithvijayan\" target='_blank'><i><b>PayPal</b></i></a>,\n  <a href=\"https://www.patreon.com/abhijithvijayan\" target='_blank'><i><b>Patreon</b></i></a>\n</p>\n<p align=\"center\">\n  <a href='https://www.buymeacoffee.com/abhijithvijayan' target='_blank'>\n    <img height='36' style='border:0px;height:36px;' src='https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png' border='0' alt='Buy Me a Coffee' />\n  </a>\n</p>\n<hr />\n\n❤️ it? ⭐️ it on [GitHub](https://github.com/abhijithvijayan/styler/stargazers) or [Tweet](https://twitter.com/intent/tweet?text=Check%20out%20%40abhijithvijayan%2Fstyler%21%20by%20%40_abhijithv%0A%0ACSS%20Modules%20Style%20Helper%0Ahttps%3A%2F%2Fgithub.com%2Fabhijithvijayan%2Fstyler%0A%0A%23css%20%23scss%20%23sass%20%23modules%20%23styler%20%23util) about it.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [API](#api)\n- [Issues](#issues)\n\t- [🐛 Bugs](#-bugs)\n- [LICENSE](#license)\n\n## Installation\n\nEnsure you have [Node.js](https://nodejs.org) 18 or later installed. Then run the following:\n\n```\n# via npm\nnpm install @abhijithvijayan/styler\n\n# or yarn\nyarn add @abhijithvijayan/styler\n```\n\n## Usage\n\n```js\nimport Styler from '@abhijithvijayan/styler';\nimport * as React from 'react';\n\nimport styles from './styles.scss';\n\n\nfunction App({theme = {}, show = false}) {\n\tconst styler = new Styler(styles, theme);\n\n\treturn (\n\t\t<div className={styler.get(\"wrapper\")}>\n\t\t\t<p className={styler.get([\"heading\", show && \"show\"])}>hello world</p>\n\t\t\t<p className={styler.get([\"message\"], [\"static-class-name\"])}>new message</p>\n\t\t</div>\n\t);\n}\n```\n\n## API\n\n## Issues\n\n_Looking to contribute? Look for the [Good First Issue](https://github.com/abhijithvijayan/styler/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22good+first+issue%22)\nlabel._\n\n### 🐛 Bugs\n\nPlease file an issue [here](https://github.com/abhijithvijayan/styler/issues/new) for bugs, missing documentation, or unexpected behavior.\n\n[**See Bugs**](https://github.com/abhijithvijayan/styler/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22type%3A+bug%22)\n\n### Linting & TypeScript Config\n\n- Shared Eslint & Prettier Configuration - [`@abhijithvijayan/eslint-config`](https://www.npmjs.com/package/@abhijithvijayan/eslint-config)\n- Shared TypeScript Configuration - [`@abhijithvijayan/tsconfig`](https://www.npmjs.com/package/@abhijithvijayan/tsconfig)\n\n## License\n\nMIT © [Abhijith Vijayan](https://abhijithvijayan.in)\n","readmeFilename":"readme.md"}