1.0.2 • Published 6 years ago
hfp v1.0.2
HFP
快速将一个javascript函数服务化
install
npm install hfp
usage
// file: server.js
const hfp = require('hfp');
const h = hfp();
function helloworld(){
return 'helloworld';
}
h(helloworld);
node server.js
curl -X POST localhost:8080