{"versions":{"0.9.0":{"name":"css-scoped","version":"0.9.0","description":"Limit the css scope by adding a uniform parent selector name to the selector, which is useful in componentized development and rendering.","main":"lib/scope.js","scripts":{"run":"node ./test/index.js","test":"mocha  ./test/scope.test.js","cover":"istanbul cover node_modules/mocha/bin/_mocha","coveralls":"npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls"},"keywords":["scope","secoped","css","style","css-module"],"author":{"name":"so","email":"so@redream.cn"},"license":"MIT","bugs":{"url":"https://github.com/secreter/scoped-css/issues"},"repository":{"type":"git","url":"git+https://github.com/secreter/scoped-css.git"},"dependencies":{},"devDependencies":{"chai":"^4.1.2","coveralls":"^3.0.1","istanbul":"^0.4.5","mocha":"^5.2.0"},"gitHead":"8eb4fe9fe6e8a807c8528148c7c9fdc5f88eba11","homepage":"https://github.com/secreter/scoped-css#readme","_id":"css-scoped@0.9.0","_npmVersion":"5.7.1","_nodeVersion":"8.10.0","_npmUser":{"name":"anonymous","email":"so@redream.cn"},"dist":{"integrity":"sha512-ywOnDw1BDVM7P8qX1dsPLTQefnP5LgauBwjj+j4gjqFy9FCQTM7AQOYKGJ3bPxuSw0OZNny/e8O5LaYp5F1fUQ==","shasum":"d19ea57f50b51731653bfd2959b92ddda188aa6f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/css-scoped/-/css-scoped-0.9.0.tgz","fileCount":5,"unpackedSize":9932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbLOiQCRA9TVsSAnZWagAAT9kP/0PKxQ1gu3517wDdEpQ6\nLkUC3Fjhio4GU5cN/M4vbekOHclgJ5F3YVGWi6g6OTlUefhcQZnc5RxjSsJ4\nuwTxUs6GBt0+uulJ1j3/Wb5jxk4OnOqKXVqSxZA5hNayXRFYfpi/z1RaSh2U\nTtX7EmHimIUf4HARew3io+eWNCVhq2u/urWhMHQCT4D4V33DcwNIJ7y7ztA7\nDNrre56Fbjqd8ptpkqX8TpCiCndFHGZ27t7J2db61QKNTEk1y9oEoXPlKWkG\nqvLyudJ1b2Pr0dBpBbVRPvDnEh97/qQCQEtYsxDDnGpGJk+IYXABGxYpZA4B\n6zOMA6dznyZdgwAJxxsPPlfYg86LQLC7KaFNUipmIMigDAq+dRZ1Q6jb6gM1\nFOjYD2++EivZ44e9Lt2mRfXuFG6zNyDEsdD7ZY4/nFLH5iLDjiwgH80EsENt\ngPUViSs+QyJc6Jf84DqAcoMbBKmYV2OWLDiLlOXmVvBwk5m3kJqjVxpuZLVw\n5eDyAepRQXE6+FSdx8ohaG/sTweIvF13kwhj1hh99CO9/aQ03odS7dQ0wutZ\nIlTy73g87/zwOeKEKN/T7yIQnJ1n1z2miHc1aOsfanuRzqTqd1+r28nkzqkd\nBIwcxz6goAjDzidQp8SRYewNzHDQdRZ0XQDWkYlCZRtBzlAcUg8WVncX8sBE\nbAop\r\n=BPAC\r\n-----END PGP SIGNATURE-----\r\n","size":2509},"maintainers":[{"name":"anonymous","email":"so@redream.cn"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-scoped_0.9.0_1529669776068_0.22128508001589386"},"_cnpmcore_publish_time":"2021-12-20T07:15:11.839Z","contributors":[]},"1.0.0":{"name":"css-scoped","version":"1.0.0","description":"Limit the css scope by adding a uniform parent selector name to the selector, which is useful in componentized development and rendering.","main":"lib/scope.js","scripts":{"example":"node ./example/index.js","test":"mocha  ./test/scope.test.js","cover":"istanbul cover node_modules/mocha/bin/_mocha","coveralls":"npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls"},"keywords":["scope","secoped","css","style","selector","css-module"],"author":{"name":"so","email":"so@redream.cn"},"license":"MIT","bugs":{"url":"https://github.com/secreter/scoped-css/issues"},"repository":{"type":"git","url":"git+https://github.com/secreter/scoped-css.git"},"dependencies":{},"devDependencies":{"chai":"^4.1.2","coveralls":"^3.0.1","istanbul":"^0.4.5","mocha":"^5.2.0"},"gitHead":"b8edd494e6e5db4a66c90c7a1eef2892ca69275c","homepage":"https://github.com/secreter/scoped-css#readme","_id":"css-scoped@1.0.0","_npmVersion":"5.7.1","_nodeVersion":"8.10.0","_npmUser":{"name":"anonymous","email":"so@redream.cn"},"dist":{"integrity":"sha512-4DWTjYQqhv0KjaFlhr8S5l8/L8FfVWOmwxgY6SpU3st2E+FE9hqWWNA95iU7y9aZRzf9DMRb3MGXod5DuyVxZQ==","shasum":"a4c7ec9b70386d7cb9a3ec1cc3f26c7fd7338e07","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/css-scoped/-/css-scoped-1.0.0.tgz","fileCount":8,"unpackedSize":13050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbLP+KCRA9TVsSAnZWagAAT5gP/3drmh063nH1+ObR7X9h\n9dyFsozwnE9OsOcg9+DO1XEb3DYeiwSmpyd6Bp8Bn/9B8SMow/h7wgjZTr2F\nIEMTNc7xwUTINhoJZcwDLxjdybjuq+lmQByUuhGPWx4GDcTdqoXcoVFXwN6p\nB/8bsQA5UoQXSgD2KT5QhF2F5lptsPEWOMUrMxxURsXz+aCX6DGVrfA7sITq\nkDGd2nLZI8oYD3xkSvxiVvZJIbrh7He/Q/i7A8uGtsUIXE11bQfVWLRVvkxY\noal/da1AuP0so7mFI5HRMw2eb+hQ37Og1Eu8+UJcq0FdgVrJ2fbihyf4ZHhT\npeRWVPL/5Okkbu1Jb1IRI/ZlZ9Atzl2ock7Sjk3b+Vr9QCyCxaTFMwkClhT7\n8BtnagTDs+V7RianPuopPKnTdLn7wY5H2RpysO1F2pOBpKINO/bTs99nMXBk\nISVai1ebtxDPGqZGcxc/BEPvwTD0wwpwjvMkW/o9WExKSzFeRXouru0UcGpG\nvLw3gGIUHrnAl6gcMVqgUaUXGH2Uh8TXXiYflYiBprufvD0+6GpRohtpONDW\nG+5wnckOrgzMJbzGUYRon3jOeqZRDdBpDKsfl3ElmtFIEHwqkZhkwRBUlQOK\nWMoYQ3netOx1J+VbVuCMcDhvhprfirpQD7kGW9b5zzPRKucB2q9ZKpm0U8gq\nwBYq\r\n=N9v3\r\n-----END PGP SIGNATURE-----\r\n","size":3778},"maintainers":[{"name":"anonymous","email":"so@redream.cn"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-scoped_1.0.0_1529675658076_0.8827292489125953"},"_cnpmcore_publish_time":"2021-12-20T07:15:12.720Z","contributors":[]}},"dist-tags":{"latest":"1.0.0"},"name":"css-scoped","time":{"created":"2022-01-27T16:09:30.341Z","modified":"2023-07-28T06:51:35.142Z","0.9.0":"2018-06-22T12:16:16.122Z","1.0.0":"2018-06-22T13:54:18.150Z"},"readme":"# css-scoped\r\n\r\n----------\r\n\r\n![Packagist](https://img.shields.io/packagist/l/doctrine/orm.svg)    ![npm](https://img.shields.io/npm/v/css-scoped.svg)  ![npm](https://img.shields.io/npm/dm/css-scoped.svg)  [![Build Status](https://travis-ci.org/secreter/scoped-css.svg?branch=master)](https://travis-ci.org/secreter/scoped-css)   [![Coveralls](https://img.shields.io/coveralls/secreter/scoped-css.svg)](https://coveralls.io/github/secreter/scoped-css)\r\n\r\n > Limit the css scope by adding a uniform parent selector name to the selector, which is useful in componentized development and rendering.\r\n\r\n\r\n## Installation\r\n-------\r\n```javascript\r\nnpm i css-scoped -S\r\n```\r\n\r\n### Usage\r\n-------\r\n```javascript\r\nconst scope = require('css-scoped')\r\nconst scopedCss=scope(css,'parent')\r\n```\r\n\r\n### Examples\r\n------\r\n```javascript\r\nconst scope = require('css-scoped')\r\nconst css=`\r\nh1, h2, h3, h4, h5, h6 {\r\n    font-size: 14px;\r\n}\r\na{\r\n    color: #000;\r\n}\r\n.list-img-flex .job .job-mes span:not(:last-child):after {\r\n    margin: 0 5px;\r\n    position: relative;\r\n}\r\n@media (min-width: 1500px) and (orientation: landscape){\r\n    .header ~ .title{\r\n        color:#666;\r\n    }\r\n}\r\n`\r\nconst scopedCss=scope(css,'handsome')\r\nconsole.log(scopedCss)\r\n```\r\n> output\r\n```css\r\n.handsome h1,.handsome h2,.handsome h3,.handsome h4,.handsome h5,.handsome h6 { font-size: 14px; }\r\n.handsome a { color: #000; }\r\n.handsome .list-img-flex .job .job-mes span:not(:last-child):after { margin: 0 5px; position: relative; }\r\n@media (min-width: 1500px) and (orientation: landscape) { .handsome .header ~ .title { color:#666; } } \r\n```\r\n\r\n### License\r\n-------\r\n[MIT][1]\r\n\r\n\r\n  [1]: https://github.com/secreter/scoped-css/blob/master/LICENSE","users":{}}