1.1.0 • Published 7 years ago
prore v1.1.0
Promise-request
Nodejs http module with promise
#Usage
npm install prore
then
import { post, get } from 'prore'
post({
host: 'localhost',
port: '3001',
path: '/test'
},'hi')
.then(function(data){
console.log(data)
})
get({
host: 'localhost',
port: '3001',
path: '/test'
},'hi')
.then(function(data){
console.log(data)
})
post({
host: 'localhost',
port: '3001',
path: '/test'
headers: {
'Content-Type': 'multipart/form-data',
}
},'I am data')
.then(function(data){
console.log(data)
})