Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. parse ARGV
- 2. ls /etc/*usb*
- - if devices found
- ports = devices array
- 3. check ARGV for '-i' flag
- - if -i flag found
- console.log(ARGV[i])
- exit
- 4. return devices array (from step 1)
Advertisement
Add Comment
Please, Sign In to add comment