{"_id":"inverter","_rev":"27-3c481b816c6a22cb01ade0f404f57cda","name":"inverter","description":"Simply translate LTR-based CSS file to RTL, or the opposite. Can be both used on the server-side with Node.js, or client-side.","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"inverter","description":"Simply translate LTR-based CSS file to RTL, or the opposite. Can be both used on the server-side with Node.js, or client-side.","version":"0.1.0","author":{"name":"Pierre Matri","email":"pierre.matri@coolony.com"},"contributors":[{"name":"Pierre Matri","email":"pierre.matri@coolony.com"}],"devDependencies":{"mocha":"*","should":"*"},"keywords":["inverter","invert","css","ltr","rtl","i18n","internationalization"],"repository":{"type":"git","url":"git://github.com/coolony/inverter.git"},"main":"index","scripts":{"test":"make test"},"engines":{"node":">= 0.5.0 < 0.7.0"},"_npmUser":{"name":"coolony","email":"pierre.matri@coolony.com"},"_id":"inverter@0.1.0","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.18","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"061cab692ba2edbe36e2c657a497c96f9485de1e","tarball":"https://registry.npmjs.org/inverter/-/inverter-0.1.0.tgz","integrity":"sha512-2TWizcJcriyWvJtcDEwkEgmMcP3ugnx3deXJtENeRgjj+URjdT3BvfjDvj9yHtarv2GztyCP4NnSj5QrKM4asQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2rmMysTZF8wWskATs89aXesOnsx6e5ctAz/oOSDIDdgIgWyujcXPTHH+/cmNf4lwz/cyfNwueAEac2ffZFsp/INY="}]},"maintainers":[{"name":"coolony","email":"pierre.matri@coolony.com"}],"directories":{}},"0.1.1":{"name":"inverter","description":"Simply translate LTR-based CSS file to RTL, or the opposite. Can be both used on the server-side with Node.js, or client-side.","version":"0.1.1","author":{"name":"Pierre Matri","email":"pierre.matri@coolony.com"},"contributors":[{"name":"Pierre Matri","email":"pierre.matri@coolony.com"}],"devDependencies":{"mocha":"*","should":"*"},"keywords":["inverter","invert","css","ltr","rtl","i18n","internationalization"],"repository":{"type":"git","url":"git://github.com/coolony/inverter.git"},"main":"index","scripts":{"test":"make test"},"engines":{"node":">= 0.5.0 < 0.7.0"},"_npmUser":{"name":"coolony","email":"pierre.matri@coolony.com"},"_id":"inverter@0.1.1","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.18","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"fc18054f637c30de5dcf976798a4bd3848d89dc9","tarball":"https://registry.npmjs.org/inverter/-/inverter-0.1.1.tgz","integrity":"sha512-4wXQnG8dFJslKilLz8R0npKvXpJnfzIB4cOY46IP7CYlnsv0spUq4B8SxwC4AMJ3kg8d9cNkcm9Wu+2GFEGdVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFRpJDTq6sAZXvpyd+MU8fY825xn5vMsg6tYXPB94ix7AiBe+AtXSFAeNZUXufbE1GEoa9NVvC591F2ChqSUxTAHYw=="}]},"maintainers":[{"name":"coolony","email":"pierre.matri@coolony.com"}]}},"readme":"Inverter\n========\n\nSimply translate LTR-based CSS file to RTL, or the opposite. Can be both used on the server-side with Node.js, or client-side.\n\n\nBasic Usage\n-----------\n\n```javascript\nvar inverter = require('inverter');\n  , inverted_css = inverter.invert('.some_css_class { margin: 8px 3px 9px 2px; float: left; }')\n```\n\nYou may optionally want to prevent some filters from running:\n\n```javascript\nvar inverter = require('inverter');\n  , inverted_css = inverter.invert(myCSS, {exclude: ['fixGradient']))\n```\n\n\nInverter will\n-------------\n\n* **fixLeftRight**: Replace `left` with `right` and the opposite, but:\n  * No replacement will be made between parentheses (`background-image: url(bright-left.png)` will be left intact)\n  * No replacement will be made in selectors (`.block-left { […] }` will be left intact)\n  \n* **fixBodyDirection**: Replace `direction: ltr` with `direction: rtl` and the opposite, only for the body tag\n\n* **fixCursor**: Replace, for example, `cursor: nw-resize` with `cursor: ne-resize`\n\n* **fixBorderRadius**: Fix `border-radius` definitions, so `border-radius: 5px 2px 4px / 9px 2px` will become `border-radius: 2px 5px 2px 4px / 2px 9px`\n\n* **fixFourPartNotation**: Fixes four part notation, so, for example, `border: 1px 2px 3px 4px` will be rewritten to `border: 1px 4px 3px 2px`. As it can interfere with *fixBorderRadius*, `border-radius` is explicitely excluded from the scope of this fix\n\n* **fixGradient**: Fixes most common CSS gradient definitions. This fix will replace `left` with `right`, `XXXdeg` with `-XXXdeg` and the opposites inside gradients.\n\n\nTests\n-----\n\nThis package is tested using [Mocha](http://visionmedia.github.com/mocha/). To run the tests, run `npm install` inside the package directory to install development dependencies, and then simply `make test`.","maintainers":[{"name":"coolony","email":"pierre.matri@coolony.com"}],"time":{"modified":"2022-06-19T01:54:59.701Z","created":"2012-04-25T13:20:39.763Z","0.1.0":"2012-04-25T13:20:42.002Z","0.1.1":"2012-04-25T16:04:29.998Z"},"author":{"name":"Pierre Matri","email":"pierre.matri@coolony.com"},"repository":{"type":"git","url":"git://github.com/coolony/inverter.git"}}