Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codeplate

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeplate - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

78

bin.js

@@ -34,76 +34,4 @@ #!/usr/bin/env node

// if (!process.argv.slice(2).length) {
// }
// var args = process.argv.slice(3);
// var subcmd = program.args[0];
// if (!subcmd) {
// // process.stdout.write(program.helpInformation());
// program.emit('--list');
// process.exit();
// }
// if(program.list){
// codeplate.getRes({
// list: program.list
// });
// }else{
// program.help();
// }
// if(program.clear){
// require("./lib/certMgr").clearCerts(function(){
// console.log( color.green("all certs cleared") );
// process.exit(0);
// });
// }else if(program.root){
// require("./lib/certMgr").generateRootCA(function(){
// process.exit(0);
// });
// }else if(program.install){
// npm.load({
// "prefix": process.env.NODE_PATH + '/anyproxy/'
// }, function (er) {
// npm.commands.install(program.args || [], function (er, data) {
// if(er)throw er;
// })
// npm.registry.log.on("log", function (message) {
// })
// });
// }else{
// var proxy = require("./proxy.js");
// var ruleModule;
// if(program.rule){
// var ruleFilePath = path.resolve(process.cwd(),program.rule);
// try{
// if(fs.existsSync(ruleFilePath)){
// ruleModule = require(ruleFilePath);
// console.log("rule file loaded :" + ruleFilePath);
// }else{
// console.log(ruleFilePath);
// console.log(color.red("can not find rule file"));
// }
// }catch(e){
// console.log("failed to load rule file :" + e.toString());
// }
// }
// var option = {
// type : program.type,
// port : program.port,
// hostname : program.host,
// dbFile : program.file,
// throttle : program.throttle,
// rule : ruleModule,
// disableWebInterface : false,
// interceptHttps : program.intercept
// };
// var proxyServer = new proxy.proxyServer(option);
// }
if (!process.argv.slice(2).length) {
process.stdout.write(program.helpInformation());
}

2

package.json
{
"name": "codeplate",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "codeplate.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc