Sha256: 80932275980e8aaacdb688d967aa0269ccad0d4353ce7fd11b3f95156fb8d7d5
Contents?: true
Size: 532 Bytes
Versions: 69
Compression:
Stored size: 532 Bytes
Contents
#!/usr/bin/env node 'use strict'; var pkg = require('./package.json'); var opn = require('./'); function help() { console.log([ pkg.description, '', 'Usage', ' $ opn <file|url> [app]', '', 'Example', ' $ opn http://sindresorhus.com', ' $ opn http://sindresorhus.com firefox', ' $ opn unicorn.png' ].join('\n')); } if (process.argv.indexOf('--help') !== -1) { help(); return; } if (process.argv.indexOf('--version') !== -1) { console.log(pkg.version); return; } opn(process.argv[2], process.argv[3]);
Version data entries
69 entries across 69 versions & 2 rubygems