{"_id":"css2str","_rev":"2834561","name":"css2str","description":"transform css to string that can be inserted by js","dist-tags":{"latest":"0.1.1"},"maintainers":[{"name":"popomore","email":""}],"time":{"modified":"2022-09-06T15:29:40.000Z","created":"2014-06-06T18:48:21.961Z","0.1.1":"2014-07-03T10:56:26.686Z","0.1.0":"2014-06-06T18:48:21.961Z"},"users":{},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"repository":{"type":"git","url":"https://github.com/popomore/css2str"},"versions":{"0.1.1":{"name":"css2str","version":"0.1.1","description":"transform css to string that can be inserted by js","main":"index","dependencies":{"css":"~2.0.0"},"devDependencies":{"coveralls":"~2.10.0","istanbul":"~0.2.7","mocha":"~1.18.2","should":"~4.0.1"},"repository":{"type":"git","url":"https://github.com/popomore/css2str"},"homepage":"https://github.com/popomore/css2str","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"bugs":{"url":"https://github.com/popomore/css2str/issues"},"_id":"css2str@0.1.1","dist":{"shasum":"c31433ed5166d46243b3950b12de879ae5eabbfe","size":1497,"noattachment":false,"key":"/css2str/-/css2str-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/css2str/download/css2str-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":""}],"directories":{},"publish_time":1404384986686,"_hasShrinkwrap":false,"_cnpm_publish_time":1404384986686,"_cnpmcore_publish_time":"2021-12-16T13:58:46.761Z"},"0.1.0":{"name":"css2str","version":"0.1.0","description":"transform css to string that can be inserted by js","main":"index","dependencies":{"css":"~1.6.0"},"devDependencies":{"coveralls":"~2.10.0","istanbul":"~0.2.7","mocha":"~1.18.2","should":"~4.0.1"},"repository":{"type":"git","url":"https://github.com/popomore/css2str"},"homepage":"https://github.com/popomore/css2str","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"bugs":{"url":"https://github.com/popomore/css2str/issues"},"_id":"css2str@0.1.0","dist":{"shasum":"456819b856701c8f6c6c8035287d571d7420807c","size":1470,"noattachment":false,"key":"/css2str/-/css2str-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/css2str/download/css2str-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":""}],"directories":{},"publish_time":1402080501961,"_hasShrinkwrap":false,"_cnpm_publish_time":1402080501961,"_cnpmcore_publish_time":"2021-12-16T13:58:47.008Z"}},"readme":"# css2str [![Build Status](https://travis-ci.org/popomore/css2str.png?branch=master)](https://travis-ci.org/popomore/css2str) [![Coverage Status](https://coveralls.io/repos/popomore/css2str/badge.png?branch=master)](https://coveralls.io/r/popomore/css2str?branch=master)\n\nTransform css to string that can be inserted by js\n\n---\n\n## Install\n\n```\n$ npm install css2str -g\n```\n\n## Usage\n\n```\nvar css2str = require('css2str');\nvar code = css2str(fs.readFileSync(filepath));\n```\n\nThen you can use [import-style](https://github.com/popomore/import-style) to import css in browser.\n\n```\nvar importStyle = require('import-style');\nimportStyle(code);\n```\n\n## Options\n\n### prefix\n\nThis option will add a parent selector of every selector.\n\n```\n// origin css\n\na {\n  border: none;\n}\n\n// yield\n.container a{border: none;}\n```\n\nWith code\n\n```\nvar opt = {prefix: '.container'}\nvar code = css2str(fs.readFileSync(filepath), opt);\n```\n\n## LISENCE\n\nCopyright (c) 2014 popomore. Licensed under the MIT license.\n","_attachments":{},"homepage":"https://github.com/popomore/css2str","bugs":{"url":"https://github.com/popomore/css2str/issues"},"license":"MIT"}