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

certbot

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

certbot - npm Package Compare versions

Comparing version 1.0.1 to 5.0.1

5

package.json
{
"name": "certbot",
"version": "1.0.1",
"version": "5.0.1",
"main": "server.js",

@@ -17,3 +17,4 @@ "repository": "https://github.com/Dois2/BOMPRO_LUCAS.git",

"node-cmd": "^3.0.0",
"node-run-cmd": "^1.0.1"
"node-run-cmd": "^1.0.1",
"shelljs": "^0.8.3"
},

@@ -20,0 +21,0 @@ "devDependencies": {

18

src/server.js
// Importações módulos:
const express = require("express");
const cors = require("cors");
var cmd = require("node-cmd");
var shell = require("shelljs");
const server = express();

@@ -9,3 +9,3 @@ server.use(cors());

const porta = 222;
const porta = 13100;

@@ -39,10 +39,12 @@ server.listen(porta);

var teste = cmd.get(command, function(err, data, stderr) {
if (err != null) {
console.log(`Deu este erro ${err}`);
} else {
console.log(`O que logou: ${data}`);
shell.exec(stopNginx80, function(code, stdout, stderr) {
console.log("Exit code:", code);
if (code == 1) {
shell.exec(startNginx80);
}
console.log("Program output:", stdout);
console.log("Program stderr:", stderr);
});
// console.log(teste);
return res.json({ Status: "ok" });
});
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