Comparing version 0.0.1 to 2.2.0
{ | ||
"name": "ngx", | ||
"version": "0.0.1", | ||
"description": "A toolkit written via modern javascript for configurating nginx more gracefully.", | ||
"main": "entry.js", | ||
"version": "2.2.0", | ||
"description": "The Data-driven nginx configuration manager", | ||
"bin": { | ||
"ngx": "lib/bin/ngx.js", | ||
"ngx-reload": "lib/bin/reload.js", | ||
"ngx-start": "lib/bin/start.js", | ||
"ngx-restart": "lib/bin/restart.js", | ||
"ngx-stop": "lib/bin/stop.js", | ||
"ngx-test": "lib/bin/test.js", | ||
"ngx-list": "lib/bin/list.js", | ||
"ngx-down": "lib/bin/down.js" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"build": "babel src --out-dir lib", | ||
"test": "npm run build && node --harmony ./node_modules/.bin/ava --verbose --timeout=10s", | ||
"prepublish": "npm run build" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/wspl/ngx.js.git" | ||
"url": "git://github.com/kaelzhang/node-ngx.git" | ||
}, | ||
"keywords": [ | ||
"ngx", | ||
"nginx", | ||
"ngx", | ||
"conf" | ||
"cli", | ||
"configuration", | ||
"template", | ||
"tools" | ||
], | ||
"author": "plutonist", | ||
"license": "Apache-2.0", | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"author": "kaelzhang", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/wspl/ngx.js/issues" | ||
"url": "https://github.com/kaelzhang/node-ngx/issues" | ||
}, | ||
"homepage": "https://github.com/wspl/ngx.js#readme", | ||
"ava": { | ||
"require": "babel-register", | ||
"babel": { | ||
"babelrc": true | ||
}, | ||
"files": [ | ||
"test/*.js" | ||
] | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.16.0", | ||
"babel-cli": "^6.16.0", | ||
"babel-plugin-syntax-trailing-function-commas": "^6.13.0", | ||
"babel-plugin-transform-async-to-generator": "^6.22.0", | ||
"babel-plugin-transform-class-properties": "^6.16.0", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.16.0", | ||
"babel-plugin-transform-exponentiation-operator": "^6.8.0", | ||
"babel-plugin-transform-inline-environment-variables": "^6.8.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.16.0", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-es2015": "^6.16.0" | ||
}, | ||
"dependencies": { | ||
"babel": "^5.8.21" | ||
"code-stringify": "^1.2.3", | ||
"commander": "^2.10.0", | ||
"cross-spawn": "^5.1.0", | ||
"debug": "^2.6.3", | ||
"fs-extra": "^3.0.1", | ||
"globby": "^6.1.0", | ||
"is-glob": "^3.1.0", | ||
"js-yaml": "^3.8.2", | ||
"json5": "^0.5.1", | ||
"make-array": "^1.0.1", | ||
"once": "^1.4.0", | ||
"typo": "^1.0.6", | ||
"typo-chalk": "^1.0.0" | ||
} | ||
} |
@@ -1,2 +0,55 @@ | ||
# ngx.js | ||
A toolkit written via modern javascript for configurating nginx elegantly | ||
[![Build Status](https://travis-ci.org/kaelzhang/node-ngx.svg?branch=master)](https://travis-ci.org/kaelzhang/node-ngx) | ||
<!-- optional appveyor tst | ||
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/kaelzhang/node-ngx?branch=master&svg=true)](https://ci.appveyor.com/project/kaelzhang/node-ngx) | ||
--> | ||
<!-- optional npm version | ||
[![NPM version](https://badge.fury.io/js/ngx.svg)](http://badge.fury.io/js/ngx) | ||
--> | ||
<!-- optional npm downloads | ||
[![npm module downloads per month](http://img.shields.io/npm/dm/ngx.svg)](https://www.npmjs.org/package/ngx) | ||
--> | ||
<!-- optional dependency status | ||
[![Dependency Status](https://david-dm.org/kaelzhang/node-ngx.svg)](https://david-dm.org/kaelzhang/node-ngx) | ||
--> | ||
# ngx | ||
The Data-driven nginx configuration manager, featured: | ||
- Resolved path calculation for `include`, `root`, and other directives. | ||
- Nginx-style template engine and building system to reuse a template with several sets of data. | ||
- Directive `include` with glob patterns, such as `include conf.d/**/*.conf;` | ||
## Install | ||
```sh | ||
$ npm install -g ngx | ||
``` | ||
## Usage | ||
```sh | ||
NGX_ENV=production ngx start | ||
# or | ||
ngx start --env production | ||
``` | ||
For now, you can find the example at the [sample](https://github.com/kaelzhang/node-ngx/tree/master/sample) directory. | ||
```sh | ||
git clone git@github.com:kaelzhang/node-ngx.git | ||
cd node-ngx | ||
npm link | ||
cd sample | ||
ngx start --env production | ||
``` | ||
And the nginx will start and you will find compiled nginx conf files at `sample/nginx` directory. | ||
## Contributing | ||
PRs or wishlists are welcome. Please be free to create an [issue](https://github.com/kaelzhang/node-ngx/issues/new). | ||
## License | ||
MIT |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
59
1693
1
1
56
180191
13
11
7
2
+ Addedcode-stringify@^1.2.3
+ Addedcommander@^2.10.0
+ Addedcross-spawn@^5.1.0
+ Addeddebug@^2.6.3
+ Addedfs-extra@^3.0.1
+ Addedglobby@^6.1.0
+ Addedis-glob@^3.1.0
+ Addedjs-yaml@^3.8.2
+ Addedjson5@^0.5.1
+ Addedmake-array@^1.0.1
+ Addedonce@^1.4.0
+ Addedtypo@^1.0.6
+ Addedtypo-chalk@^1.0.0
+ Addedargparse@1.0.10(transitive)
+ Addedarray-union@1.0.2(transitive)
+ Addedarray-uniq@1.0.3(transitive)
+ Addedbabel-code-frame@6.26.0(transitive)
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedcode-stringify@1.2.4(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedcross-spawn@5.1.0(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedfs-extra@3.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedglobby@6.1.0(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@3.1.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjs-tokens@3.0.2(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedjson5@0.5.1(transitive)
+ Addedjsonfile@3.0.1(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedmake-array@1.0.5(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedobject-access@1.2.5(transitive)
+ Addedp-map@1.2.0(transitive)
+ Addedp-reduce@1.0.0(transitive)
+ Addedpify@2.3.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedsplit-string@1.0.1(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedtypo@1.0.6(transitive)
+ Addedtypo-chalk@1.0.0(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedyallist@2.1.2(transitive)
- Removedbabel@^5.8.21
- Removedacorn@5.7.4(transitive)
- Removedalign-text@0.1.4(transitive)
- Removedalter@0.2.0(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedanymatch@1.3.2(transitive)
- Removedarr-diff@2.0.04.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarr-union@3.1.0(transitive)
- Removedarray-unique@0.2.10.3.2(transitive)
- Removedassign-symbols@1.0.0(transitive)
- Removedast-traverse@0.1.1(transitive)
- Removedast-types@0.8.120.9.6(transitive)
- Removedasync-each@1.0.6(transitive)
- Removedatob@2.1.2(transitive)
- Removedbabel@5.8.38(transitive)
- Removedbabel-core@5.8.38(transitive)
- Removedbabel-plugin-constant-folding@1.0.1(transitive)
- Removedbabel-plugin-dead-code-elimination@1.0.2(transitive)
- Removedbabel-plugin-eval@1.0.1(transitive)
- Removedbabel-plugin-inline-environment-variables@1.0.1(transitive)
- Removedbabel-plugin-jscript@1.0.4(transitive)
- Removedbabel-plugin-member-expression-literals@1.0.1(transitive)
- Removedbabel-plugin-property-literals@1.0.1(transitive)
- Removedbabel-plugin-proto-to-assign@1.0.4(transitive)
- Removedbabel-plugin-react-constant-elements@1.0.3(transitive)
- Removedbabel-plugin-react-display-name@1.0.3(transitive)
- Removedbabel-plugin-remove-console@1.0.1(transitive)
- Removedbabel-plugin-remove-debugger@1.0.1(transitive)
- Removedbabel-plugin-runtime@1.0.7(transitive)
- Removedbabel-plugin-undeclared-variables-check@1.0.2(transitive)
- Removedbabel-plugin-undefined-to-void@1.1.6(transitive)
- Removedbabylon@5.8.38(transitive)
- Removedbase@0.11.2(transitive)
- Removedbinary-extensions@1.13.1(transitive)
- Removedbindings@1.5.0(transitive)
- Removedbluebird@2.11.0(transitive)
- Removedbraces@1.8.52.3.2(transitive)
- Removedbreakable@1.0.0(transitive)
- Removedcache-base@1.0.1(transitive)
- Removedcamelcase@1.2.1(transitive)
- Removedcenter-align@0.1.3(transitive)
- Removedchokidar@1.7.0(transitive)
- Removedclass-utils@0.3.6(transitive)
- Removedcliui@2.1.0(transitive)
- Removedcollection-visit@1.0.0(transitive)
- Removedcommoner@0.10.8(transitive)
- Removedcomponent-emitter@1.3.1(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedcopy-descriptor@0.1.1(transitive)
- Removedcore-js@1.2.7(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddecode-uri-component@0.2.2(transitive)
- Removeddefine-property@0.2.51.0.02.0.2(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddefs@1.1.1(transitive)
- Removeddetect-indent@3.0.1(transitive)
- Removeddetective@4.7.1(transitive)
- Removedesprima@2.7.33.1.3(transitive)
- Removedesprima-fb@15001.1001.0-dev-harmony-fb(transitive)
- Removedexpand-brackets@0.1.52.1.4(transitive)
- Removedexpand-range@1.8.2(transitive)
- Removedextend-shallow@3.0.2(transitive)
- Removedextglob@0.3.22.0.4(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removedfilename-regex@2.0.1(transitive)
- Removedfill-range@2.2.44.0.0(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfor-own@0.1.5(transitive)
- Removedfragment-cache@0.2.1(transitive)
- Removedfs-readdir-recursive@0.1.2(transitive)
- Removedfsevents@1.2.13(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-stdin@4.0.1(transitive)
- Removedget-value@2.0.6(transitive)
- Removedglob@5.0.15(transitive)
- Removedglob-base@0.3.0(transitive)
- Removedglob-parent@2.0.0(transitive)
- Removedglobals@6.4.1(transitive)
- Removedhas-value@0.3.11.0.0(transitive)
- Removedhas-values@0.1.41.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhome-or-tmp@1.0.0(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinvert-kv@1.0.0(transitive)
- Removedis-accessor-descriptor@1.0.1(transitive)
- Removedis-binary-path@1.0.1(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedis-data-descriptor@1.0.1(transitive)
- Removedis-descriptor@0.1.71.0.3(transitive)
- Removedis-dotfile@1.0.3(transitive)
- Removedis-equal-shallow@0.1.3(transitive)
- Removedis-extendable@1.0.1(transitive)
- Removedis-extglob@1.0.0(transitive)
- Removedis-finite@1.1.0(transitive)
- Removedis-glob@2.0.1(transitive)
- Removedis-integer@1.0.7(transitive)
- Removedis-number@2.1.03.0.04.0.0(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedis-posix-bracket@0.1.1(transitive)
- Removedis-primitive@2.0.0(transitive)
- Removedis-windows@1.0.2(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisobject@2.1.03.0.1(transitive)
- Removedjs-tokens@1.0.1(transitive)
- Removedjsesc@0.5.0(transitive)
- Removedjson5@0.4.0(transitive)
- Removedkind-of@3.2.24.0.06.0.3(transitive)
- Removedlazy-cache@1.0.4(transitive)
- Removedlcid@1.0.0(transitive)
- Removedleven@1.0.2(transitive)
- Removedlodash@3.10.1(transitive)
- Removedlongest@1.0.1(transitive)
- Removedmap-cache@0.2.2(transitive)
- Removedmap-visit@1.0.0(transitive)
- Removedmath-random@1.0.4(transitive)
- Removedmicromatch@2.3.113.1.10(transitive)
- Removedminimatch@2.0.10(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmixin-deep@1.3.2(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removednan@2.20.0(transitive)
- Removednanomatch@1.2.13(transitive)
- Removednormalize-path@2.1.1(transitive)
- Removedobject-copy@0.1.0(transitive)
- Removedobject-visit@1.0.1(transitive)
- Removedobject.omit@2.0.1(transitive)
- Removedobject.pick@1.3.0(transitive)
- Removedos-locale@1.4.0(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedoutput-file-sync@1.1.2(transitive)
- Removedparse-glob@3.0.4(transitive)
- Removedpascalcase@0.1.1(transitive)
- Removedpath-exists@1.0.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedposix-character-classes@0.1.1(transitive)
- Removedpreserve@0.2.0(transitive)
- Removedprivate@0.1.8(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedq@1.5.1(transitive)
- Removedrandomatic@3.1.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedreaddirp@2.2.1(transitive)
- Removedrecast@0.10.330.11.23(transitive)
- Removedregenerate@1.4.2(transitive)
- Removedregenerator@0.8.40(transitive)
- Removedregex-cache@0.4.4(transitive)
- Removedregex-not@1.0.2(transitive)
- Removedregexpu@1.3.0(transitive)
- Removedregjsgen@0.2.0(transitive)
- Removedregjsparser@0.1.5(transitive)
- Removedremove-trailing-separator@1.1.0(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedrepeating@1.1.3(transitive)
- Removedresolve@1.22.8(transitive)
- Removedresolve-url@0.2.1(transitive)
- Removedret@0.1.15(transitive)
- Removedright-align@0.1.3(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsafe-regex@1.1.0(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedset-value@2.0.1(transitive)
- Removedsimple-fmt@0.1.0(transitive)
- Removedsimple-is@0.2.0(transitive)
- Removedslash@1.0.0(transitive)
- Removedsnapdragon@0.8.2(transitive)
- Removedsnapdragon-node@2.1.1(transitive)
- Removedsnapdragon-util@3.0.1(transitive)
- Removedsource-map@0.1.320.5.7(transitive)
- Removedsource-map-resolve@0.5.3(transitive)
- Removedsource-map-support@0.2.10(transitive)
- Removedsource-map-url@0.4.1(transitive)
- Removedsplit-string@3.1.0(transitive)
- Removedstable@0.1.8(transitive)
- Removedstatic-extend@0.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedstringmap@0.2.2(transitive)
- Removedstringset@0.2.1(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedthrough@2.3.8(transitive)
- Removedto-fast-properties@1.0.3(transitive)
- Removedto-object-path@0.3.0(transitive)
- Removedto-regex@3.0.2(transitive)
- Removedto-regex-range@2.1.1(transitive)
- Removedtrim-right@1.0.1(transitive)
- Removedtry-resolve@1.0.1(transitive)
- Removedtryor@0.1.2(transitive)
- Removedunion-value@1.0.1(transitive)
- Removedunset-value@1.0.0(transitive)
- Removedurix@0.1.0(transitive)
- Removeduse@3.1.1(transitive)
- Removeduser-home@1.1.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwindow-size@0.1.4(transitive)
- Removedwordwrap@0.0.2(transitive)
- Removedy18n@3.2.2(transitive)
- Removedyargs@3.27.0(transitive)