node-mysql-admin
Advanced tools
@@ -61,4 +61,2 @@ var express = require('express'); | ||
| }; | ||
| }; |
@@ -7,3 +7,3 @@ <div class="container-fluid"> | ||
| <img src="resources/nodejs-logo.png" class="logo-login"/> | ||
| NodeAdmin | ||
| Node MySQL Admin | ||
| </h1> | ||
@@ -10,0 +10,0 @@ <div class="panel panel-primary login-panel"> |
@@ -6,3 +6,3 @@ <!doctype html> | ||
| <meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
| <title>NodeAdmin</title> | ||
| <title>Node MySQL Admin</title> | ||
| <meta name="description" content=""> | ||
@@ -9,0 +9,0 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> |
+1
-1
| { | ||
| "name": "node-mysql-admin", | ||
| "version": "0.1.3", | ||
| "version": "0.1.4", | ||
| "description": "A fantastically elegant interface for MySQL and Node.js/Express/Koa management", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
+39
-4
@@ -1,7 +0,5 @@ | ||
| # NodeMySQLAdmin | ||
| # Node MySQL Admin | ||
| A fantastically elegant interface for MySQL and Node.js/Express management, like phpmyadmin. | ||
| This project is exported from <https://github.com/nodeadmin/nodeadmin>. | ||
| ## Installation | ||
@@ -15,2 +13,6 @@ | ||
| Note: node-mysql-admin currently does not support Windows. | ||
| ### Within Express | ||
| ```javascript | ||
@@ -25,4 +27,32 @@ var express = require('express'); | ||
| Note: node-myadmin currently does not support Windows. | ||
| ### Within Koa | ||
| ```javascript | ||
| var express = require('express') | ||
| , Koa = require('koa') | ||
| , nodeMyAdmin = require('node-mysql-admin'); | ||
| const app = new Koa(); | ||
| const expressApp = express(); | ||
| expressApp.use(nodeMyAdmin(expressApp)); | ||
| app.use(function*(next) { | ||
| // do routing by simple matching, koa-route may also work | ||
| if (this.path.startsWith('/myadmin')) { | ||
| // direct to express | ||
| if (this.status === 404 || this.status === '404') { | ||
| delete this.res.statusCode | ||
| } | ||
| // stop koa future processing (NOTE not sure it is un-doc feature or not?) | ||
| this.respond = false | ||
| // pass req and res to express | ||
| expressApp(this.req, this.res) | ||
| } else { | ||
| // go to next middleware | ||
| yield next | ||
| } | ||
| }); | ||
| app.listen(3333); | ||
| ``` | ||
| ## Usage | ||
@@ -141,1 +171,6 @@ | ||
| See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines. | ||
| ## Acknowledgement | ||
| This project is exported from <https://github.com/nodeadmin/nodeadmin>. Thanks for all the developer and testers. | ||
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
468796
0.17%174
25.18%