Re: Where can I find nginScript shell

2018-01-09 Thread Dmitry Volyntsev
On 07.01.2018 17:06, kimown wrote: I find the associated code, thanks for your help, but I'm not familiar with how to building the nginScript shell, I think it's better add instruction in README.Also, nginScript is really really awesome. It is available as a part of nginx official packages.

Re: Where can I find nginScript shell

2018-01-07 Thread kimown
I find the associated code, thanks for your help, but I'm not familiar with how to building the nginScript shell, I think it's better add instruction in README.Also, nginScript is really really awesome. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278033,278035#msg-278035

Re: Where can I find nginScript shell

2018-01-06 Thread Maxim Konovalov
Hello, On 06/01/2018 11:52, kimown wrote: > $ njs > interactive njscript > > v. -> 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

Where can I find nginScript shell

2018-01-06 Thread kimown
$ njs interactive njscript v. -> 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;