{"_id":"R2","_rev":"28-3e9d5e4917ef148ace8931434def9ef7","name":"R2","description":"a CSS LTR ∞ RTL converter","dist-tags":{"latest":"1.4.3"},"versions":{"1.0.0":{"name":"R2","description":"a CSS LTR ∞ RTL converter","version":"1.0.0","homepage":"https://github.com/ded/r2","author":{"name":"Dustin Diaz","email":"@ded"},"main":"r2.js","preferGlobal":true,"repository":{"type":"git","url":"git://github.com/ded/R2.git"},"engines":{"node":">= 0.4.1"},"bin":{"r2":"bin/r2"},"directories":{"bin":"bin"},"dependencies":{"sqwish":">= 0.2.0"},"devDependencies":{},"_id":"R2@1.0.0","_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"5ccbe543b9395ff2ac9bb6b419fce357cc879621","tarball":"https://registry.npmjs.org/R2/-/R2-1.0.0.tgz","integrity":"sha512-B/pavsxGQYXBU/FLKpkAJXK/1kKSdkcDKCAe4W6DDCx0m8fBUEsZnaiGd0eqvO0oRL12UbOeuqhOkIhZP+pWEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5fAi8oHbsBM60cTm13iNn7GVyxX5mcTzLHfhOJ5A1RwIgUKm6qgu1cTlVmQddqBSMZpsuf1PP82Uozoqz1v8XBeI="}]},"scripts":{}},"1.0.1":{"name":"R2","description":"a CSS LTR ∞ RTL converter","version":"1.0.1","homepage":"https://github.com/ded/r2","author":{"name":"Dustin Diaz","email":"@ded"},"main":"r2.js","preferGlobal":true,"repository":{"type":"git","url":"git://github.com/ded/R2.git"},"engines":{"node":">= 0.4.1"},"bin":{"r2":"bin/r2"},"directories":{"bin":"bin"},"dependencies":{"sqwish":">= 0.2.0"},"devDependencies":{},"_id":"R2@1.0.1","_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"955bea70dad56a70ddcd325e2d853207bbe6b744","tarball":"https://registry.npmjs.org/R2/-/R2-1.0.1.tgz","integrity":"sha512-kJbjWsWsbSvFcZf6/5nGAnmnZLKimvvNkqeIor5XVsFI8RErc+jmhGB2eUG+IwPeHn6tOAUbHbpXuVJOvLVPsg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGiaI6VKAblbvnFNsFj0sXVL7bILbvFnqJiTqE3eA9duAiEA5JETEJm7bzoYVRiPffo6GTMirfmJa9ohOVSgP2iX7Qs="}]},"scripts":{}},"1.0.2":{"name":"R2","description":"a CSS LTR ∞ RTL converter","version":"1.0.2","homepage":"https://github.com/ded/r2","author":{"name":"Dustin Diaz","email":"@ded"},"main":"r2.js","preferGlobal":true,"repository":{"type":"git","url":"git://github.com/ded/R2.git"},"engines":{"node":">= 0.4.1"},"bin":{"r2":"bin/r2"},"directories":{"bin":"bin"},"dependencies":{"sqwish":">= 0.2.0"},"devDependencies":{},"_id":"R2@1.0.2","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"720d1a4d2643301f809d64e915956370fb305eb2","tarball":"https://registry.npmjs.org/R2/-/R2-1.0.2.tgz","integrity":"sha512-mqZ2s8QeBpjZ3DVh1+b+TJtFmIvpgWiA/ci7dp5iBxzFcfLvr7RSbfAC5vbSlHR5B2xLOdmkzj6nhDx7Qt6ZUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB2yRieaVpMJ/JmPqb2Rm6qVwv9Nd43n7KUw3WzW5shsAiBSC7K6xlbGrTOaPrZRpo9vkYrcO0B0wzeHV7YXJv7seg=="}]},"scripts":{}},"1.1.0":{"name":"R2","description":"a CSS LTR ∞ RTL converter","version":"1.1.0","homepage":"https://github.com/ded/r2","author":{"name":"Dustin Diaz","email":"@ded"},"main":"r2.js","preferGlobal":true,"repository":{"type":"git","url":"git://github.com/ded/R2.git"},"engines":{"node":">= 0.4.1"},"bin":{"r2":"bin/r2"},"directories":{"bin":"bin"},"dependencies":{},"devDependencies":{},"_id":"R2@1.1.0","_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"ff18f9a131ad72861260dd73c273a12ea524f112","tarball":"https://registry.npmjs.org/R2/-/R2-1.1.0.tgz","integrity":"sha512-+1KLWOQDSG26oyZfnQ32OSSaMLN4EdS7Nq8PH6q2cr4j6i521rRu/UAtERmUVrXIHq7hv2UFM4PRWCt3Tl+KYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDnvLHLm7mjrdSVsmdDE2TJw475AdAPBLKTgm/b4siVKAiBAYxuFVc/EsqnQNAMW8Ak9norZsMLdAONm2fFkUMAigQ=="}]},"scripts":{}},"1.1.1":{"name":"R2","description":"a CSS LTR ∞ RTL converter","version":"1.1.1","homepage":"https://github.com/ded/r2","author":{"name":"Dustin Diaz","email":"@ded"},"main":"r2.js","preferGlobal":true,"repository":{"type":"git","url":"git://github.com/ded/R2.git"},"engines":{"node":">= 0.4.1"},"bin":{"r2":"bin/r2"},"directories":{"bin":"bin"},"_npmJsonOpts":{"file":"/Users/dustindiaz/.npm/R2/1.1.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"R2@1.1.1","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.14","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"67d647fe00e1d5078a59230285a1a6eda0b584dc","tarball":"https://registry.npmjs.org/R2/-/R2-1.1.1.tgz","integrity":"sha512-AGNEiQONBf5VW3U+fgw47EPFUGYOzULxa8o3BEwZYWMram+0lecZENYkBAz1JkmP9BcCZzJY5RS/obbMYvKxLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhJHBxgxIDD2P2Qq5hjQbH5kgZdvQbxbX8OokU5O7PBAiBr9PTSBTJSpgd0xsQ1GDXfApHyUMuzL1TgPYXMPFRfFg=="}]},"scripts":{}},"1.1.2":{"name":"R2","description":"a CSS LTR ∞ RTL converter","version":"1.1.2","homepage":"https://github.com/ded/r2","author":{"name":"Dustin Diaz","email":"@ded"},"main":"r2.js","preferGlobal":true,"repository":{"type":"git","url":"git://github.com/ded/R2.git"},"engines":{"node":">= 0.4.1"},"bin":{"r2":"bin/r2"},"directories":{"bin":"bin"},"_npmUser":{"name":"ded","email":"polvero@gmail.com"},"_id":"R2@1.1.2","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"7a8557312e9c5aa96512d64cbf1b31f4c8c0e518","tarball":"https://registry.npmjs.org/R2/-/R2-1.1.2.tgz","integrity":"sha512-YM0dxBKvuEnBXRdqJiyyVPZAZTlSVoq4IL1kxjAwPQY6VI2j6kgZxJVG1M/+ZMpVdqQC65BkGnIouAJy2bc19g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHq3/dyzfek/hoQxH9Au/tCY0DMo3XzGcRmUHmrrw/aFAiEA5lWLwh1Le8sz+Dwx1uGoIi20FudWd1Nqjv4qNco+8AA="}]},"maintainers":[{"name":"ded","email":"polvero@gmail.com"}]},"1.3.1":{"name":"R2","description":"a CSS LTR ∞ RTL converter","version":"1.3.1","homepage":"https://github.com/ded/r2","author":{"name":"Dustin Diaz","email":"dustin@dustindiaz.com"},"main":"r2.js","preferGlobal":true,"repository":{"type":"git","url":"https://github.com/ded/R2.git"},"engines":{"node":">= 0.4.1"},"bin":{"r2":"bin/r2"},"directories":{"bin":"bin"},"devDependencies":{"sink-test":">= 1.0.1"},"scripts":{"test":"node tests/tests.js"},"_id":"R2@1.3.1","dist":{"shasum":"796bef27bbac4fbc430396dcd4f499690491b4af","tarball":"https://registry.npmjs.org/R2/-/R2-1.3.1.tgz","integrity":"sha512-agfWWECnzNtF1mvPSywwjRxXzw54/TCL3Vq+NoWBEkYEiET4e4dDpObjurJGrAAQk1gx3iAxIEkmIM062Ca0qQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB9Y1Hqit6KHcjB8K+oVMC7Sb1iubZDVjEAwOqegpd/tAiEA7e3I+ZU9vVobfi8TDLjxyLtmSxwhRjkvmYNDCnSwPbA="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"ded","email":"polvero@gmail.com"},"maintainers":[{"name":"ded","email":"polvero@gmail.com"}]},"1.3.2":{"name":"R2","description":"a CSS LTR ∞ RTL converter","version":"1.3.2","homepage":"https://github.com/ded/r2","author":{"name":"Dustin Diaz","email":"dustin@dustindiaz.com"},"main":"r2.js","preferGlobal":true,"repository":{"type":"git","url":"https://github.com/ded/R2.git"},"engines":{"node":">= 0.8.0"},"bin":{"r2":"bin/r2"},"directories":{"bin":"bin"},"devDependencies":{"sink-test":">= 1.0.1"},"scripts":{"test":"node tests/tests.js"},"bugs":{"url":"https://github.com/ded/R2/issues"},"_id":"R2@1.3.2","dist":{"shasum":"8b233715bb696b89fbd70a888a59f10bff9f2d7a","tarball":"https://registry.npmjs.org/R2/-/R2-1.3.2.tgz","integrity":"sha512-lZcFlghhobkfpHnHdnZTyY/2dmgcx3FW0mhBfOZqm22PjV8y9eBVsmk6gZWfOJYmqtHXTlf4BBUqH8rBKY0Esg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEwP+CuA08ey0cHOorLxMEcqJOhIf9MDJHdi8jtgkSiYAiAUlJAsTnGjQFTCWDc6kgR3Y0yab5mrBQHqAVDwTzEQIg=="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"byk","email":"ben@byk.im"},"maintainers":[{"name":"ded","email":"polvero@gmail.com"},{"name":"byk","email":"ben@byk.im"}]},"1.3.3":{"name":"R2","description":"a CSS LTR ∞ RTL converter","version":"1.3.3","homepage":"https://github.com/ded/r2","author":{"name":"Dustin Diaz","email":"dustin@dustindiaz.com"},"maintainers":[{"name":"ded","email":"polvero@gmail.com"},{"name":"byk","email":"ben@byk.im"}],"main":"r2.js","preferGlobal":true,"repository":{"type":"git","url":"https://github.com/ded/R2.git"},"engines":{"node":">= 0.8.0"},"bin":{"r2":"bin/r2"},"directories":{"bin":"bin"},"devDependencies":{"sink-test":">= 1.0.1"},"scripts":{"test":"node tests/tests.js"},"bugs":{"url":"https://github.com/ded/R2/issues"},"_id":"R2@1.3.3","dist":{"shasum":"e1559680bf659e06ca9498976947be9c88882b8b","tarball":"https://registry.npmjs.org/R2/-/R2-1.3.3.tgz","integrity":"sha512-y0kWb5tVh9tdMzX8hGYHDP13eCEtz4qrnYQsyMa2e/3zEfvBKeb/a9SW/2Gsu3ULmIT99+8qr2gcK9lX7/n9hw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEZR8mIe5GG4ztw9Vxf3qNP4109MEq6Ye8Q4Xz2DtsHgIhAKMkaTdiUs3jh5pT5AMEs5o8caEBHGEy4+rkFB0nwgDp"}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"byk","email":"ben@byk.im"}},"1.4.0":{"name":"R2","description":"a CSS LTR ∞ RTL converter","version":"1.4.0","homepage":"https://github.com/ded/r2","author":{"name":"Dustin Diaz","email":"dustin@dustindiaz.com"},"maintainers":[{"name":"ded","email":"polvero@gmail.com"},{"name":"byk","email":"ben@byk.im"}],"main":"r2.js","preferGlobal":true,"repository":{"type":"git","url":"https://github.com/ded/R2.git"},"engines":{"node":">= 0.8.0"},"bin":{"r2":"bin/r2"},"directories":{"bin":"bin"},"dependencies":{"css-parse":"~1.6.0","css-stringify":"~1.4.0"},"devDependencies":{"sink-test":">= 1.0.1"},"scripts":{"test":"node tests/tests.js"},"bugs":{"url":"https://github.com/ded/R2/issues"},"_id":"R2@1.4.0","dist":{"shasum":"c046f344e9a54455fca6df66b47d84564a8e9220","tarball":"https://registry.npmjs.org/R2/-/R2-1.4.0.tgz","integrity":"sha512-EPrSTT6jnuyK4hNc6PDBykF2VrF2MlHQRPoprwE6XU0+465KBXZlou0xLq3WG8z/zVYqAnvJK1WDtdFDfpLE5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGMsEVBYmos04nsmZ15bIB+HpKBqOPyCUziQfBbGbYuiAiBwgAwPoSD+TlyDPK95g+vljvNVotNfE7yEF06hsWXB8Q=="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"byk","email":"ben@byk.im"}},"1.4.1":{"name":"R2","description":"a CSS LTR ∞ RTL converter","version":"1.4.1","homepage":"https://github.com/ded/r2","author":{"name":"Dustin Diaz","email":"dustin@dustindiaz.com"},"maintainers":[{"name":"ded","email":"polvero@gmail.com"},{"name":"byk","email":"ben@byk.im"}],"main":"r2.js","preferGlobal":true,"repository":{"type":"git","url":"https://github.com/ded/R2.git"},"engines":{"node":">= 0.8.0"},"bin":{"r2":"bin/r2"},"directories":{"bin":"bin"},"dependencies":{"css-parse":"~1.6.0","css-stringify":"~1.4.0"},"devDependencies":{"sink-test":">= 1.0.1"},"scripts":{"test":"node tests/tests.js"},"bugs":{"url":"https://github.com/ded/R2/issues"},"_id":"R2@1.4.1","dist":{"shasum":"3f17763172387916ba7dcae3c1e804d9c72f461a","tarball":"https://registry.npmjs.org/R2/-/R2-1.4.1.tgz","integrity":"sha512-H50Yr5UXmSTZufOxeLqRH1BADMx9e8kGTz0ee/VLS9nZfoWKA6wvMjk/l6QrSk3vt8+ZtQ0gge8E0H2tk4Vopw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDr/ZLRT1lPn6BMbD8TzTvlagBU4n14cuV/MAd8+1ZRdAiBm9j3UKvS/yK0Sd9N4GViUy9qfIQYL9EKgxLNyHa7j6A=="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"byk","email":"ben@byk.im"}},"1.4.3":{"name":"R2","description":"a CSS LTR ∞ RTL converter","version":"1.4.3","homepage":"https://github.com/ded/r2","author":{"name":"Dustin Diaz","email":"dustin@dustindiaz.com"},"maintainers":[{"name":"ded","email":"polvero@gmail.com"},{"name":"byk","email":"ben@byk.im"}],"main":"r2.js","preferGlobal":true,"repository":{"type":"git","url":"https://github.com/ded/R2.git"},"engines":{"node":">= 0.8.0"},"bin":{"r2":"bin/r2"},"directories":{"bin":"bin"},"dependencies":{"css":"~2.0.0"},"devDependencies":{"sink-test":">= 1.0.1"},"scripts":{"test":"node tests/tests.js"},"bugs":{"url":"https://github.com/ded/R2/issues"},"_id":"R2@1.4.3","_shasum":"16883af6e38ccbca63cc16117ba350e215cd52c5","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"byk","email":"ben@byk.im"},"dist":{"shasum":"16883af6e38ccbca63cc16117ba350e215cd52c5","tarball":"https://registry.npmjs.org/R2/-/R2-1.4.3.tgz","integrity":"sha512-mU2evevQ9as2qdgXCM6J2yOFq2JLMHrTw2tvEP3pg1XJNDgL/sFcEnTM4A2f+VDV2hoISBM8w9wOj5XbWIsPBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4Tfwzou3tuhvHSkR0d7sANMRWOSbYGCcky0thV157WgIgCjgPhW/xiD3LilAdetDhDl2Z3W0qUhVEcK/qcK5ffUw="}]}}},"maintainers":[{"name":"ded","email":"polvero@gmail.com"},{"name":"byk","email":"ben@byk.im"}],"time":{"modified":"2022-06-13T02:15:43.957Z","created":"2011-06-02T00:41:17.258Z","1.0.0":"2011-06-02T00:41:37.793Z","1.0.1":"2011-06-02T01:27:08.716Z","1.0.2":"2011-06-13T23:11:35.191Z","1.1.0":"2011-06-14T07:35:50.623Z","1.1.1":"2011-06-26T19:22:42.106Z","1.1.2":"2012-06-08T18:11:22.315Z","1.3.1":"2013-03-04T19:06:16.228Z","1.3.2":"2013-12-03T14:24:01.965Z","1.3.3":"2013-12-04T15:51:35.833Z","1.4.0":"2013-12-09T07:49:59.410Z","1.4.1":"2013-12-09T14:21:45.813Z","1.4.3":"2014-08-07T09:26:31.547Z"},"author":{"name":"Dustin Diaz","email":"dustin@dustindiaz.com"},"repository":{"type":"git","url":"https://github.com/ded/R2.git"},"readme":"R2 [![build status](https://secure.travis-ci.org/ded/R2.png)](http://travis-ci.org/ded/R2) [![NPM version](https://badge.fury.io/js/R2.png)](http://badge.fury.io/js/R2)\n------------------------------------------------------------------------------------------------------------------------------------------------------------------------\nR2 helps you achieve cross-language layout-friendly websites (including bi-directional text). It looks like this:\n\n``` css\n/* before */\n#content {\n  float: left;\n  margin-right: 2px;\n  padding: 1px 2px 3px 4px;\n  left: 5px;\n}\n.info {\n  text-align: right;\n}\n\n/* after */\n#content {\n  float: right;\n  margin-left: 2px;\n  padding: 1px 4px 3px 2px;\n  right: 5px;\n}\n.info {\n  text-align: left;\n}\n```\n\nInstall it\n----------\n\n    $ [sudo] npm install R2 -g\n\nUse it as a CLI\n---------------\n\n### Print to stdout\n    \n    $ r2 input.css\n  \n### Print to output file\n    \n    $ r2 input.css output.css\n\n### Print to output file without compression\n\n    $ r2 input.css output.css  --no-compress\n\n### Read from output of another command\n    \n    $ lessc input.less | r2 > output.css\n\nRequire it as a Node module\n------------------------------\n\n``` js\nvar output = require('R2').swap(css)\n```\n\nTest It\n----------\n\n   $ npm test\n\nCaution\n--------\nR2 will only work as good as what you give it, therefore *inline-styles* embedded in your HTML will not converted, and therefore may cause unexpected results. However inline-styles apart from R2 is still a bad idea, and you should avoid it anyway in favor of separating content from presentation.\n\n**Happy layout Swapping!**\n","homepage":"https://github.com/ded/r2","bugs":{"url":"https://github.com/ded/R2/issues"},"readmeFilename":"README.md"}