Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

readme.md 901B

il y a 9 ans
123456789101112131415161718192021222324252627282930313233343536373839
  1. # browser-prefix
  2. This is a simple utility to add browser prefixes to CSS. Its syntax is really simple; just add `@prefix` to the beginning of any line, and it will add all relevant browser prefixes to that line. All prefixes will be on the same line, which means all line numbers will match between your source files and the result.
  3. ## Installation
  4. Install with npm:
  5. `npm install browser-prefix`
  6. To install as a command line application:
  7. `npm install -g browser-prefix`
  8. ## Usage
  9. ### In node.js
  10. ```
  11. var prefix = require("browser-prefix");
  12. prefix("@prefix foo: bar;");
  13. //returns '-moz-foo: bar; -webkit-foo: bar; -o-foo: bar; -ms-foo: bar; foo: bar;'
  14. ```
  15. ### As a CLI application
  16. From stdin:
  17. ```
  18. $ echo "@prefix foo: bar" | browser-prefix
  19. # returns '-moz-foo: bar; -webkit-foo: bar; -o-foo: bar; -ms-foo: bar; foo: bar;'
  20. ```
  21. From file:
  22. ```
  23. $ browser-prefix < infile.css > outfile.css
  24. ```