Socket
Socket
Sign inDemoInstall

ngx

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx - npm Package Compare versions

Comparing version 0.0.1 to 2.2.0

appveyor.yml

74

package.json
{
"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
conf_samples/301.conf

Sorry, the diff of this file is not supported yet

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