Node.js CLI tool for easy file sharing using Transfer.sh
The easiest way to get transfer-sh is with npm:
$ npm install -g transfer-sh
$ transfer hello.txt
Will return a link to the resource and automatically you'll have it copied to your clipboard.
PS. transfer
is an alias for transfer-sh
.
const transfer = require('transfer-sh')
transfer(__dirname+'/hello.txt')
.then(function (link) { console.log(link) })
.catch(function (err) { console.log(err) })