{"_id":"prefixfree","_rev":"5-6bbc6f1c8a223946a41e6d9d79001ffe","name":"prefixfree","description":"Break free from CSS prefix hell!","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"prefixfree","version":"1.0.0","description":"Break free from CSS prefix hell!","main":"prefixfree.js","directories":{"test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/LeaVerou/prefixfree.git"},"keywords":["CSS","prefixes"],"author":{"name":"Lea Verou"},"license":"MIT","bugs":{"url":"https://github.com/LeaVerou/prefixfree/issues"},"homepage":"https://github.com/LeaVerou/prefixfree","gitHead":"5a98a288b24660e80c7ca19796b4f7eab789c241","_id":"prefixfree@1.0.0","_shasum":"82b0edbbac107f2a3e2dc569d6c3df4035cd7910","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"leaverou","email":"lea@verou.me"},"dist":{"shasum":"82b0edbbac107f2a3e2dc569d6c3df4035cd7910","tarball":"https://registry.npmjs.org/prefixfree/-/prefixfree-1.0.0.tgz","integrity":"sha512-TKFEyl/lFSDLF4dHLjwUqtsJLi9Qo4uM9aaPGW4n2J+m0W88PqHHvlkLpLm1Smam8p+ohu1OjbLqSWEMYpfiZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAm+d07e8sQtWkwl37DtKMrjA4a2RH6ygiutyMdseI/2AiAIlcY8RIz9qRMYfmFdbKNZtKq2A6/eNeG6x/BFM4WcDQ=="}]},"maintainers":[{"name":"leaverou","email":"lea@verou.me"}]}},"readme":"# [-prefix-**free**](http://leaverou.github.com/prefixfree/)\n## Break free from CSS prefix hell!\n\n[Project homepage](http://leaverou.github.com/prefixfree/)\n\nA script that lets you use only unprefixed CSS properties everywhere. \nIt works behind the scenes, adding the current browser’s prefix to any CSS code, only when it’s needed.\n\n## API Documentation\nNote: To use -prefix-free you don't need to write any JS code, just to include prefixfree.js in your page. The following is meant mostly for plugin authors.\n\n-prefix-free creates 2 global variables: `StyleFix` and `PrefixFree`. StyleFix is a framework for building various CSS fixers and -prefix-free depends on it. Currently, StyleFix is bundled with -prefix-free and only available this way, but it might eventually get split to a separate project, with separate documentation.\n\n## StyleFix API Documentation\n\n### Properties\n\tStyleFix.fixers\nAn array of the current callbacks.\n\n### Functions\n\tStyleFix.register(callback)\nAdds `callback` to the queue of functions that will be called when fixing CSS code. `callback` will be called with the following parameters:\n\n* **css** (String): The CSS code that is being processed,\n* **raw** (Boolean): Whether the CSS code can contain rules etc or it's just a bunch of declarations (such as the ones found in the `style` attribute),\n* **element** (HTMLElement): The node that the CSS code came from (such as a `<link>` element, a `<style>` element or any element with a `style` attribute)\n\nand it should return the fixed CSS code.\n\n\tStyleFix.link(linkElement)\n\nProcesses a `<link rel=\"stylesheet\">` element and converts it to a `<style>` element with fixed code. Relative URLs will be converted.\n\n\tStyleFix.styleElement(styleElement)\n\t\nFixes code inside a `<style>` element.\n\n\tStyleFix.styleAttribute(element)\n\t\nFixes code inside the `style` attribute of an element. Will not work in IE and Firefox &lt; 3.6 due to a bug those have with `getAttribute('style')`: In IE invalid values of valid properties will be dropped, and in Firefox &lt; 3.6 anything invalid will be dropped.\n\n\tStyleFix.camelCase(str)\n\tStyleFix.deCamelCase(str)\nUtility methods that convert a string to camelCase and back.\n\n## -prefix-free API Documentation\n\n### Properties\n\tPrefixFree.prefix\nThe detected prefix of the current browser (like `'-moz-'` or `'-webkit-'`)\n\n\tPrefixFree.Prefix\nThe detected prefix of the current browser in camelCase format (like `'Moz'` or `'Webkit'`)\n\n\tPrefixFree.properties\n\tPrefixFree.functions\n\tPrefixFree.keywords\n\tPrefixFree.selectors\n\tPrefixFree.atrules\nProperties/functions/keywords/etc that are **only** available with a prefix in the current browser.\n\n### Functions\n\tPrefixFree.prefixCSS(code [, raw])\nPrefixes the properties and values in the code passed with the prefix of the current browser, only when needed. If the second parameter is truthy, it also prefixes selectors and @-rules. This is the most useful method in -prefix-free.\n\n\tPrefixFree.prefixSelector(selector)\n\tPrefixFree.prefixProperty(property)\nPrefixes the passed selector or property **even when it's supported prefix-less**. These are more internal methods and I assume they won't be too useful in general.","maintainers":[{"name":"leaverou","email":"lea@verou.me"}],"time":{"modified":"2022-06-24T14:03:52.773Z","created":"2016-01-16T17:28:44.217Z","1.0.0":"2016-01-16T17:28:44.217Z"},"homepage":"https://github.com/LeaVerou/prefixfree","keywords":["CSS","prefixes"],"repository":{"type":"git","url":"https://github.com/LeaVerou/prefixfree.git"},"author":{"name":"Lea Verou"},"bugs":{"url":"https://github.com/LeaVerou/prefixfree/issues"},"license":"MIT","readmeFilename":"README.md","users":{"filipve":true,"maycon_ribeiro":true}}