
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
fs-extra, async to create a simple file and directory monitor & synchronize tool.
mycli watch-cp <source> <destination>
serve-static, express to provide static resouce http server, we create add extions feature. Please fellow below guide to provide extions js file.
mycli http-server <path> <port> [--https=true] [-e extionsService.js]
| Type | Description |
|---|---|
| proxy | 1.3.0 new feature, integrate http-proxy-middleware |
| get | handle GET request in extion for special api or mock api |
| post | handle POST request in extion for special api or mock api |
// For proxy api extion:
var ext = {
"/crservices":{
proxyURL:'http://staging.cross-v.me',
changeOrigin: true,
type:"proxy"
}
};
module.exports = ext;
// For GET request extion:
var ext = {
"/test/:name":{
fn:function(request, response){
response.send(request.params.name+' Hello World!');
},
type:"get"
}
};
module.exports = ext;
js-yaml, nedb using yaml to provide proxy configuration and using nedb to record all response data.
mycli http-proxy <configuration file path>
We can through "http://127.0.0.1:[8888]/proxyDB" to manage proxy cache data.
please follow below structure to provide your yaml file:
---
server:
port: 8888
proxyType: "HTTP" # if want to proxy HTTPS please change to HTTPS
replay: false # if want to reuse local store response, change to true
target:
host: "query.yahooapis.com"
port: 80
#key: "./privateKey.pem" # follow nodejs api doc to provide key for HTTPS
#cert: "./certificate.pem" # follow nodejs api doc to provide cert for HTTPS
#passphrase: "password" # a string of passphrase for the private key
1.4.1 - bug fix, (1)resolve http-proxy target server disconnect the proccess crash issue. (2)fixed recording error status response issue. (3) fixed PUT, DELETE issue.
1.4.0 - add proxy API whitelist feature
1.3.1 - minor bug fix
1.3.0 - add proxy extions in http-server
1.2.1 - add proxy datatbase manage page - http://127.0.0.1:[port]/proxyDB
FAQs
commandline tools
We found that mycli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.