{"repo":"nginx/njs","free":true,"listed":false,"github":"https://github.com/nginx/njs","clone":"git clone https://github.com/nginx/njs.git","description":"A subset of JavaScript language to use in nginx","language":"C","stars":1590,"topics":["nginx","nginx-javascript","nginx-module","njs","quickjs","nginx-complex-access-control","nginx-custom-scripting","nginx-flexible-asynchronous-content-handlers","nginx-flexible-filters","nginx-javascript-module"],"license":"BSD-2-Clause","category":"deployment-docker-iac","readme_excerpt":"NGINX JavaScript NGINX JavaScript, also known as NJS, is a dynamic module for NGINX that enables the extension of built-in functionality using familiar JavaScript syntax. NJS supports modern JavaScript through its recommended QuickJS engine (ES2023). See JavaScript engines and compatibility for more details. Table of Contents - How it works - JavaScript engines - Downloading and installing - Provisioning the NGINX package repository - Installing the NGINX JavaScript modules - Installed files and locations - Getting started with NGINX JavaScript - Verify NGINX is running - Enabling the NGINX JavaScript modules - Basics of writing .js script files - Reference of custom objects, methods, and properties - Example: Hello World - The NJS command line interface (CLI) - Building from source - Installing dependencies - Cloning the NGINX JavaScript GitHub repository - Building standalone command line interface utility (optional) - Cloning the NGINX GitHub repository - Building NGINX JavaScript as a module of NGINX - NGINX JavaScript technical specifications - Supported distributions - Supported deployment environments - Supported NGINX versions - Sizing recommendations - Asking questions, reporting issues, and contributing - Change log - License How it works NGINX JavaScript is provided as two dynamic modules for NGINX (ngx http js module and ngx stream js module) and can be added to any supported NGINX Open Source or NGINX Plus installation without recompilation. The NJS module allows","default_branch":null,"files":null,"tree":[],"storefront":"/r/nginx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nginx/njs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}