Skip to content

Commit 019fcf2

Browse files
committed
cleanup
1 parent 3169e58 commit 019fcf2

File tree

3 files changed

+23
-42
lines changed

3 files changed

+23
-42
lines changed

COPYING renamed to LICENSE

File renamed without changes.

README.md

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,28 @@ With Node PHP you can leverage the speed of node js and run all of the widely av
66
Installation
77
------------
88

9-
npm install node-php
9+
```
10+
npm install node-php
11+
```
1012

1113
Usage
1214
-----
1315

1416
To run wordpress with node js and express do this:
1517

16-
var express = require('express');
17-
var php = require("node-php");
18-
var path = require("path");
19-
20-
var app = express();
21-
22-
app.use("/", php.cgi("/path/to/wordpress"));
18+
```javascript
19+
var express = require('express');
20+
var php = require("node-php");
21+
var path = require("path");
2322

24-
app.listen(9090);
23+
var app = express();
2524

26-
console.log("Server listening!");
25+
app.use("/", php.cgi("/path/to/wordpress"));
26+
27+
app.listen(9090);
28+
29+
console.log("Server listening!");
30+
```
2731

2832
Explanation
2933
-----------
@@ -40,24 +44,6 @@ Dependencies
4044
License
4145
-------
4246

43-
This software is distributed under MIT license.
44-
45-
Copyright (c) 2014-2016 Martin K. Schröder <[email protected]>
46-
47-
Permission is hereby granted, free of charge, to any person obtaining a copy
48-
of this software and associated documentation files (the "Software"), to deal
49-
in the Software without restriction, including without limitation the rights
50-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
51-
copies of the Software, and to permit persons to whom the Software is
52-
furnished to do so, subject to the following conditions:
53-
54-
The above copyright notice and this permission notice shall be included in all
55-
copies or substantial portions of the Software.
47+
Copyright © 2014-2016 Martin K. Schröder <[email protected]>
5648

57-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
58-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
59-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
60-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
61-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
63-
SOFTWARE.
49+
The MIT License (MIT) - See [LICENSE](./LICENSE) for further details.

package.json

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
2-
"author": {
3-
"name": "Martin K. Schröder"
4-
},
52
"name": "node-php",
63
"description": "Node JS modules for running wordpress in node js",
74
"version": "0.0.1",
5+
"author": {
6+
"name": "Martin K. Schröder",
7+
"email": "[email protected]"
8+
},
89
"repository": {
9-
"url": "https://github.com/mkschreder/siteboot_php.git"
10+
"type" : "git",
11+
"url": "https://github.com/mkschreder/node-php.git"
1012
},
1113
"main": "./main.js",
12-
"bin": {},
1314
"dependencies": {
1415
"shelljs": "^0.6.0"
1516
},
@@ -18,11 +19,5 @@
1819
"express": "*",
1920
"mocha": "*",
2021
"supertest": "*"
21-
},
22-
"engines": {
23-
"node": "*"
24-
},
25-
"scripts": {
26-
"test": "eslint '*.js' test && mocha"
2722
}
28-
}
23+
}

0 commit comments

Comments
 (0)