UNPKG

transfr

Version:

A Node CLI to upload files with https://transfer.sh/

10 lines (8 loc) 261 B
const path = require('path'); const putFile = require('./lib/putFile'); module.exports = function transfr(fileName) { const filePath = path.resolve(fileName); putFile(filePath) .then(link => console.log(link)) .catch(err => console.error(err)); };