New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

node-mysql-admin

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mysql-admin - npm Package Compare versions

Comparing version
0.1.3
to
0.1.4
+0
-2
middleware/index.js

@@ -61,4 +61,2 @@ var express = require('express');

};
};
+1
-1

@@ -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">

{
"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": [

@@ -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.