{"_id":"to-style","_rev":"36-f26c56a7ac83647180f76db97b176d44","name":"to-style","description":"Convert style objects to style strings","dist-tags":{"latest":"1.3.3"},"versions":{"1.0.0":{"name":"to-style","version":"1.0.0","description":"Convert style objects to style strings","main":"index.js","scripts":{"test":"make test","test-w":"make test-w","test-debug":"mocha --debug-brk --require should"},"repository":{"type":"git","url":"git://github.com/radubrehar/toStyle.git"},"dependencies":{"ustring":"^1.1.0"},"devDependencies":{"should":"~4.0.4","mocha":"~1.20.1"},"author":{"name":"Radu Brehar"},"license":"MIT","bugs":{"url":"https://github.com/radubrehar/toStyle/issues"},"keywords":["style","css","object","conver","style","to","string"],"_id":"to-style@1.0.0","dist":{"shasum":"b9ed29b2e4cc85ef3124b35d329c5e6739a39368","tarball":"https://registry.npmjs.org/to-style/-/to-style-1.0.0.tgz","integrity":"sha512-eId4a+/71Rpazw3A+UxaiyKgYmjBTVqZv6ojHY4Kjzax8ymwDIEvuh/bsS+UxCXoTYRLsZu9fLMTNq3dSSE1Ww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvb3N/TPZdH5IgQ+cThhAHNEAZa/F594mGrgkkYU+RdgIhAO9Tq1yXJTN4hMOjYA0fduK51yKpxiqQRVHuy+I5RGqA"}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"radubrehar","email":"radu@evanghelic.ro"},"maintainers":[{"name":"radubrehar","email":"radu@evanghelic.ro"}]},"1.0.1":{"name":"to-style","version":"1.0.1","description":"Convert style objects to style strings","main":"index.js","scripts":{"test":"make test","test-w":"make test-w","test-debug":"mocha --debug-brk --require should"},"repository":{"type":"git","url":"git://github.com/radubrehar/toStyle.git"},"dependencies":{"ustring":"^1.1.0"},"devDependencies":{"should":"~4.0.4","mocha":"~1.20.1"},"author":{"name":"Radu Brehar"},"license":"MIT","bugs":{"url":"https://github.com/radubrehar/toStyle/issues"},"keywords":["style","css","object","conver","style","to","string"],"_id":"to-style@1.0.1","dist":{"shasum":"493e4cf8d5ac072c2321f591742f4d1d29d9f062","tarball":"https://registry.npmjs.org/to-style/-/to-style-1.0.1.tgz","integrity":"sha512-+/GXW5aUGDaMGfBo1e18WCMDte/2tEt7cAey+BAQEH7ou52LwLyrAPFPfFdHmzLgpizpBJaV4SSXWNl0NZ4hjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0q/Q1iXFhQPUVnFTDER9ImvWFlbT37KwSCxKjkSJuyAIgC1YvUVL4UlgaNTFJjIWdV/W5wi70Tg4AwK5maZxPBkA="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"radubrehar","email":"radu@evanghelic.ro"},"maintainers":[{"name":"radubrehar","email":"radu@evanghelic.ro"}]},"1.0.2":{"name":"to-style","version":"1.0.2","description":"Convert style objects to style strings","main":"index.js","scripts":{"build":"browserify --standalone toStyle index.js -o dist/toStyle.js","test":"make test","test-w":"make test-w","test-debug":"mocha --debug-brk --require should"},"repository":{"type":"git","url":"git://github.com/radubrehar/toStyle.git"},"dependencies":{"ustring":"^1.1.0"},"devDependencies":{"should":"~4.0.4","mocha":"~1.20.1"},"author":{"name":"Radu Brehar"},"license":"MIT","bugs":{"url":"https://github.com/radubrehar/toStyle/issues"},"keywords":["style","css","object","conver","style","to","string"],"_id":"to-style@1.0.2","dist":{"shasum":"75825d5c2e86650173251c0bd8ada3874924c49e","tarball":"https://registry.npmjs.org/to-style/-/to-style-1.0.2.tgz","integrity":"sha512-ymhdJBFr8XQXW7sIrWuBN+Id2S2v2JWs9LK1ANLhia6rNLzPgxxaBXu8OcPyPt3a+TrYI7szm3XWBQ863GZGmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7zCsgzJPeisYkbiuU7rsyjop8XC/fu5kakK0WKG78FwIhAPP0QXEPsDiTGrBbVEEiLxYeT+v8E6uB9D+LcT7+ysYx"}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"radubrehar","email":"radu@evanghelic.ro"},"maintainers":[{"name":"radubrehar","email":"radu@evanghelic.ro"}]},"1.1.0":{"name":"to-style","version":"1.1.0","description":"Convert style objects to style strings","main":"index.js","scripts":{"build":"browserify --standalone toStyle index.js -o dist/toStyle.js","test":"make test","test-w":"make test-w","test-debug":"mocha --debug-brk --require should"},"repository":{"type":"git","url":"git://github.com/radubrehar/toStyle.git"},"dependencies":{"ustring":"^1.1.0"},"devDependencies":{"should":"~4.0.4","mocha":"~1.20.1"},"author":{"name":"Radu Brehar"},"license":"MIT","bugs":{"url":"https://github.com/radubrehar/toStyle/issues"},"keywords":["style","css","object","conver","style","to","string"],"_id":"to-style@1.1.0","dist":{"shasum":"ea12c2b37776f6302a8e7a122f7b9ab658b68760","tarball":"https://registry.npmjs.org/to-style/-/to-style-1.1.0.tgz","integrity":"sha512-a7Rk1ZTKCL2ujAPHGjk7lqBdr7X3T4iMAx3uCvsrU2ustlXa5srixoYj1NJD7wDCaCLvoobCUSTT3DPFkb/JTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1ok/Ja5gCG9/KCxg1+vGkKmpuQNre0E+rz8eRzIrakAIhANzbaQVn3GuqIX6wcezoIFdsTeKlOMIVP1CstRPbFws3"}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"radubrehar","email":"radu@evanghelic.ro"},"maintainers":[{"name":"radubrehar","email":"radu@evanghelic.ro"}]},"1.2.0":{"name":"to-style","version":"1.2.0","description":"Convert style objects to style strings","main":"index.js","scripts":{"build":"browserify --standalone toStyle index.js -o dist/toStyle.js","test":"make test","test-w":"make test-w","test-debug":"mocha --debug-brk --require should"},"repository":{"type":"git","url":"git://github.com/radubrehar/toStyle.git"},"dependencies":{"ustring":"^1.4.0"},"devDependencies":{"should":"~4.0.4","mocha":"~1.20.1"},"author":{"name":"Radu Brehar"},"license":"MIT","bugs":{"url":"https://github.com/radubrehar/toStyle/issues"},"keywords":["style","css","object","conver","style","to","string"],"_id":"to-style@1.2.0","dist":{"shasum":"11722284555f24ef51c15e1edd89e8db1b90edfb","tarball":"https://registry.npmjs.org/to-style/-/to-style-1.2.0.tgz","integrity":"sha512-GasBY797oqQmh/8Mju/k4khLR78Q6s8AAjifZ641eiewGQ4iRWFF5W+8RwDTsQYuBsRPJN+lhs/5jQvVs1aylg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEuYVvBF7Ne3Mfo+uX9Y4j1uHolChGcpmS0+GXc28ZdmAiADvT6o/CRlVkd5ew1JNfE5BUorNatBwJDzTqTxdB69Gg=="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"radubrehar","email":"radu@evanghelic.ro"},"maintainers":[{"name":"radubrehar","email":"radu@evanghelic.ro"}]},"1.3.0":{"name":"to-style","version":"1.3.0","description":"Convert style objects to style strings","main":"index.js","scripts":{"build":"browserify --standalone toStyle index.js -o dist/toStyle.js","test":"make test","test-w":"make test-w","test-debug":"mocha --debug-brk --require should"},"repository":{"type":"git","url":"git://github.com/radubrehar/toStyle.git"},"dependencies":{"ustring":"^1.4.0"},"devDependencies":{"should":"~4.0.4","mocha":"~1.20.1"},"author":{"name":"Radu Brehar"},"license":"MIT","bugs":{"url":"https://github.com/radubrehar/toStyle/issues"},"keywords":["style","css","object","conver","style","to","string"],"_id":"to-style@1.3.0","dist":{"shasum":"0d3dd41a49137888be26294b9afd7cd7d5b0c2fe","tarball":"https://registry.npmjs.org/to-style/-/to-style-1.3.0.tgz","integrity":"sha512-vh32kw2QkF2/wvxZgKpWGUS7LTcotgxmuUOzSk7GgIa2js9UEEKOQzZ7fAz7F/XwFeiwvZw3UOi003tNDWSChg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqHp9TKcBYjdpGTFMX2g0EUsUJHiaMHb/lIA7hRquqgAiEA4bfm/37Bsun2nwOkZwNmBKzoIRg5PIOuEqagrkRUj7A="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"radubrehar","email":"radu@evanghelic.ro"},"maintainers":[{"name":"radubrehar","email":"radu@evanghelic.ro"}]},"1.3.1":{"name":"to-style","version":"1.3.1","description":"Convert style objects to style strings","main":"index.js","scripts":{"build":"browserify --standalone toStyle index.js -o dist/toStyle.js","test":"make test","test-w":"make test-w","test-debug":"mocha --debug-brk --require should"},"repository":{"type":"git","url":"git://github.com/radubrehar/toStyle.git"},"dependencies":{"ustring":"^1.4.0"},"devDependencies":{"should":"~4.0.4","mocha":"~1.20.1"},"author":{"name":"Radu Brehar"},"license":"MIT","bugs":{"url":"https://github.com/radubrehar/toStyle/issues"},"keywords":["style","css","object","conver","style","to","string"],"_id":"to-style@1.3.1","dist":{"shasum":"4de79652740d1c5df722b8f8c92dde8ab10f5ff2","tarball":"https://registry.npmjs.org/to-style/-/to-style-1.3.1.tgz","integrity":"sha512-Prap4oFJwZM2x368I0tlwTAY5hFv8PKSphlHUrCFaxMzbKsBNI20/HP+cG20UajGN8hdmpR7WV0oiEVbYLdvMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDU4TLoJ0tQNt72exroDs2RHGyBevGZjP5ZCEj8S5dGtgIgOrvyP9iXYQox4mD5nzkbbrJzIFfXFmpbviT9Do+rcYw="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"radubrehar","email":"radu@evanghelic.ro"},"maintainers":[{"name":"radubrehar","email":"radu@evanghelic.ro"}]},"1.3.2":{"name":"to-style","version":"1.3.2","description":"Convert style objects to style strings","main":"index.js","scripts":{"build":"browserify --standalone toStyle index.js -o dist/toStyle.js","test":"make test","test-w":"make test-w","test-debug":"mocha --debug-brk --require should"},"repository":{"type":"git","url":"git://github.com/radubrehar/toStyle.git"},"dependencies":{},"devDependencies":{"should":"~4.0.4","mocha":"~1.20.1"},"author":{"name":"Radu Brehar"},"license":"MIT","bugs":{"url":"https://github.com/radubrehar/toStyle/issues"},"keywords":["style","css","object","conver","style","to","string"],"gitHead":"c3c3e35b1f07619453e0f797b6af173694588829","homepage":"https://github.com/radubrehar/toStyle","_id":"to-style@1.3.2","_shasum":"aebbcc16dc065a5e28e82f7575c196a58c1e1580","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"radubrehar","email":"radu@evanghelic.ro"},"maintainers":[{"name":"radubrehar","email":"radu@evanghelic.ro"}],"dist":{"shasum":"aebbcc16dc065a5e28e82f7575c196a58c1e1580","tarball":"https://registry.npmjs.org/to-style/-/to-style-1.3.2.tgz","integrity":"sha512-SNoPAEcvOrmdJKiWd/R9FoQE0yTn3Sye4NOCtScybsN7GbA+JVx2jQKBSZQeVC3FaLwDNCaaHN9yGAP63TXEjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGM95V9Lb4nPxDGBGnfNFpHQjPNADq/ZGBwvhXmvtGNfAiEA6fXqHT6lLORO1bi8jz2SW19Ho1RA2PpMpzBvhUwJ4D4="}]}},"1.3.3":{"name":"to-style","version":"1.3.3","description":"Convert style objects to style strings","main":"index.js","scripts":{"build":"browserify --standalone toStyle index.js -o dist/toStyle.js","test":"make test","test-w":"make test-w","test-debug":"mocha --debug-brk --require should"},"repository":{"type":"git","url":"git://github.com/radubrehar/toStyle.git"},"dependencies":{},"devDependencies":{"should":"~4.0.4","mocha":"~1.20.1"},"author":{"name":"Radu Brehar"},"license":"MIT","bugs":{"url":"https://github.com/radubrehar/toStyle/issues"},"keywords":["style","css","object","conver","style","to","string"],"gitHead":"43e38cfbfb361091f916666954a501669997da15","homepage":"https://github.com/radubrehar/toStyle","_id":"to-style@1.3.3","_shasum":"63a2b70a6f4a7d4fdc2ed57a0be4e7235cb6699c","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"radubrehar","email":"radu@evanghelic.ro"},"maintainers":[{"name":"radubrehar","email":"radu@evanghelic.ro"}],"dist":{"shasum":"63a2b70a6f4a7d4fdc2ed57a0be4e7235cb6699c","tarball":"https://registry.npmjs.org/to-style/-/to-style-1.3.3.tgz","integrity":"sha512-9K8KYegr9hrdm8yPpu5iZjJp5t6RPAp4gFDU5hD9zR8hwqgF4fsoSitMtkRKQG2qkP5j/uG3wajbgV09rjmIqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBdMOz3VCVY/Pw30fXuw8BXGDiU0UzUUXNMbj0W9lMTAAiEAi9cxxu4+IrmxKtjii/cHwe0nCMpH5wdEbr++0sI4WsM="}]}}},"readme":"toStyle\n=======\n\nConverts style objects to strings. Can be used on node or in the browser.\n\n## Install\n\n```npm install to-style```\n\n## Usage\n\n```js\nvar toStyleString = require('to-style').string\nvar toStyleObject = require('to-style').object\n```\n\n### toStyleString\n\n```js\ntoStyleString({\n    border: {\n        width: 1,\n        color: 'red'\n    },\n    padding: 4,\n    margin: {\n        top: 5\n    }\n}) == 'border-width: 1px; border-color: red; padding: 4px; margin-top: 5px;'\n```\n\n### toStyleObject\n```js\n\ntoStyleObject({\n    padding: {\n        top: 3,\n        bottom: 2\n    },\n    border: '1px solid red',\n    margin: 4\n}) // =>\n/*\n{\n    'padding-top': '3px',\n    'padding-bottom': '2px',\n    'border': '1px solid red',\n    'margin': '4px'\n}\n */\n```\n\nYou can also get your styles in camel-case, just pass a config object as a second argument to ```toStyleObject```, with ```camelize: true```\n\nExample:\n\n```js\ntoStyleObject({\n    padding: {\n        top: 10\n    },\n    'border-width': 20\n}, { camelize: true})\n\n/**\n *  {\n *      paddingTop: '10px',\n *      borderWidth: '20px'\n *  }\n */\n```\n\n## Usage in browser\n\nIn browser, make sure you add ```dist/toStyle.js``` to your page. This exposes a global ```toStyle``` variable.\n\n```js\nvar toStyleString = toStyle.string\nvar toStyleObject = toStyle.object\n\n```","maintainers":[{"name":"radubrehar","email":"radu@evanghelic.ro"}],"time":{"modified":"2022-06-27T07:25:13.324Z","created":"2014-08-06T12:48:46.510Z","1.0.0":"2014-08-06T12:48:49.663Z","1.0.1":"2014-08-06T12:50:59.805Z","1.0.2":"2014-08-06T12:59:11.441Z","1.1.0":"2014-09-04T11:49:50.914Z","1.2.0":"2014-09-23T12:02:58.664Z","1.3.0":"2014-09-30T08:58:53.082Z","1.3.1":"2014-10-02T04:55:44.835Z","1.3.2":"2015-01-22T13:26:30.680Z","1.3.3":"2015-01-22T13:35:37.914Z"},"readmeFilename":"README.md","keywords":["style","css","object","conver","style","to","string"],"repository":{"type":"git","url":"git://github.com/radubrehar/toStyle.git"},"author":{"name":"Radu Brehar"},"bugs":{"url":"https://github.com/radubrehar/toStyle/issues"},"license":"MIT","homepage":"https://github.com/radubrehar/toStyle","users":{"weifei365":true,"oleg_tsyba":true}}