Gathering detailed insights and metrics for nginx-config-ast
Gathering detailed insights and metrics for nginx-config-ast
Gathering detailed insights and metrics for nginx-config-ast
Gathering detailed insights and metrics for nginx-config-ast
npm install nginx-config-ast
Typescript
Module System
Node Version
NPM Version
73.1
Supply Chain
82.3
Quality
75.3
Maintenance
100
Vulnerability
100
License
TypeScript (60.11%)
JavaScript (39.89%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
1,826
Last Day
1
Last Week
12
Last Month
35
Last Year
182
9 Stars
14 Commits
1 Forks
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.7
Package Id
nginx-config-ast@0.0.7
Unpacked Size
90.81 kB
Size
24.02 kB
File Count
9
NPM Version
5.4.1
Node Version
8.12.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
300%
12
Compared to previous week
Last month
105.9%
35
Compared to previous month
Last year
11.7%
182
Compared to previous year
7
A parser and code generator for NGINX configuration files
1var parser = require('nginx-config-ast'); 2 3var config = ` 4 server { 5 listen 80; 6 7 server_name example.com; 8 location / { 9 root /etc/nginx/html; 10 try_files $uri $uri/ $uri.html =404; 11 } 12 } 13`; 14 15// You can convert the configuration into an abstract tree (AST) 16var ast = parser.generateAST(config); 17 18// You can also convert the AST back to a configuration 19var code = parser.generateConfig(ast); 20
isConfigValid (config)
Checks if the configuration is valid and returns a boolean.
config
: string - Code of a NGINX configuration filegenerateAST (config, options)
Generates and returns an abstract tree for specified configuration code.
config
: string - Code of a NGINX configuration fileoptions
: object
noComments
: boolean - Strips all comments from the ASTgenerateConfig (ast)
Generates and returns configuration code from an abstract tree.
ast
: object - Abstract tree for an NGINX configuration
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no SAST tool detected
Details
Reason
Found 0/14 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
22 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More