Where can I find nginScript shell

Maxim Konovalov maxim at nginx.com
Sat Jan 6 16:58:16 UTC 2018


Hello,

On 06/01/2018 11:52, kimown wrote:
> $ njs
> interactive njscript
> 
> v.<Tab> -> the properties and prototype methods of v.
> type console.help() for more information
> 
> 
>>> var my_data = '{"colors":[{"name":"red","fancy":"brick dust"},
> {"name":"blue","fancy":"sea spray"}]}';
>>> var my_object = JSON.parse(my_data);
>>> my_object.colors[1].fancy;
> sea spray
>>>
> 
> 
> I found this in https://www.nginx.com/blog/nginx-plus-r14-released/ ,but
> where can I download?
> 
It is a part of njs distribution, see http://hg.nginx.org/njs/file/tip

-- 
Maxim Konovalov


More information about the nginx mailing list