Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cli.js 399B

1234567891011121314151617181920
  1. #!/usr/bin/env node
  2. var extract = require('./')
  3. var args = process.argv.slice(2)
  4. var source = args[0]
  5. var dest = args[1] || process.cwd()
  6. if (!source) {
  7. console.error('Usage: extract-zip foo.zip <targetDirectory>')
  8. process.exit(1)
  9. }
  10. extract(source, {dir: dest}, function (err, results) {
  11. if (err) {
  12. console.error('error!', err)
  13. process.exit(1)
  14. } else {
  15. process.exit(0)
  16. }
  17. })