-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
22 lines (22 loc) · 1.01 KB
/
package.json
File metadata and controls
22 lines (22 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"name": "simple-crypto-service",
"version": "1.0.0",
"description": "Simple RSA encryption service for Postman",
"main": "server.js",
"scripts": {
"start": "node server.js",
"dev": "nodemon server.js",
"dev:crypto": "node server-crypto.js",
"test": "node test-client.js",
"test:headers": "node -e \"require('dotenv').config(); const http = require('http'); const data = JSON.stringify({secureTokenData:'TEST',signatureData:'{}',publicKey:process.env.PUBLIC_KEY,privateKey:process.env.PRIVATE_KEY}); const req = http.request({hostname:'localhost',port:3000,path:'/headers',method:'POST',headers:{'Content-Type':'application/json','Content-Length':data.length}}, (res) => { let d=''; res.on('data',c=>d+=c); res.on('end',()=>console.log(JSON.parse(d).success?'✅':'❌')); }); req.write(data); req.end();\"",
"watch": "node --watch server.js"
},
"dependencies": {
"express": "^4.18.2",
"dotenv": "^16.3.0",
"node-rsa": "^1.1.1"
},
"devDependencies": {
"nodemon": "^3.0.1"
}
}