autoprefixer 540 B

12345678910111213141516171819202122
  1. #!/usr/bin/env node
  2. let mode = process.argv[2]
  3. if (mode === '--info') {
  4. process.stdout.write(
  5. require('../')().info() + '\n')
  6. } else if (mode === '--version') {
  7. process.stdout.write(
  8. 'autoprefixer ' + require('../package.json').version + '\n')
  9. } else {
  10. process.stdout.write(
  11. 'autoprefix\n' +
  12. '\n' +
  13. 'Options:\n' +
  14. ' --info Show target browsers and used prefixes\n' +
  15. ' --version Show version number\n' +
  16. ' --help Show help\n' +
  17. '\n' +
  18. 'Usage:\n' +
  19. ' autoprefixer --info\n'
  20. )
  21. }