{"_id":"nginx-conf","_rev":"46-d9d9f592525f9880ff52c64826bbd443","name":"nginx-conf","description":"Dynamically update nginx configuration files via programmatic API","dist-tags":{"latest":"2.1.0"},"versions":{"0.1.0":{"name":"nginx-conf","version":"0.1.0","description":"Dynamically update nginx configuration files via programmatic API","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"1.8.1","should":"1.2.1"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"_id":"nginx-conf@0.1.0","dist":{"shasum":"abf5116645f7f3fd87ad4c69cd3260389fc7700d","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-0.1.0.tgz","integrity":"sha512-e/ENNUpW53zJEiwzIRDJpany0jFqaKTMx1fvCl7X7bmMJVx4g06QEKvkNXG0ll7SUgmJW19XEnqa63Ei10e7gg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBUK4nJJ9GrJHVfonYiLHsqmyl2ImEJ57syGET2Obl4mAiAzUiaO54I84wyMtr1MJ/nfMfo8srqrcfqwSyyUyVWRBQ=="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"tmont","email":"tmont@tmont.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}]},"0.2.0":{"name":"nginx-conf","version":"0.2.0","description":"Dynamically update nginx configuration files via programmatic API","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"1.17.0","should":"2.1.1","istanbul":"0.2.3"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf","_id":"nginx-conf@0.2.0","dist":{"shasum":"f8ee1be9768ca3d04cc7ffa90ac98286dbe2cffa","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-0.2.0.tgz","integrity":"sha512-I/5fjtfXVFGs7DkyIl2IIwYJfpyTctUTAQcBUTFO0gH0wD6CxLD6TOTMR2n37braFDGL5OipfkiM7apqJsLR0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCd2kGC9PQgRGLebQTfuME9z9DO13RJNzfogVQalE4Z+gIgPTvabcq+I9Zm3UReuNaqKtT5/gMYv+P7oIR2yAxsoLo="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tommy.mont@gmail.com"}]},"0.2.1":{"name":"nginx-conf","version":"0.2.1","description":"Dynamically update nginx configuration files via programmatic API","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"1.17.0","should":"2.1.1","istanbul":"0.2.3"},"scripts":{"test":"mocha -R spec ./tests"},"bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf","_id":"nginx-conf@0.2.1","dist":{"shasum":"0cfc7251603d4f14c4125d1fab04ee6a5c89334c","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-0.2.1.tgz","integrity":"sha512-zfWOrlOq/JFQr4Ob+xQkFblmZcZEkl0fpLt2t3Ddet4A9rATw0nLOpBq3ny1LvwupLWoiGVtv/uSoRYwrZssgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSH4zJbrYJ42IbNObwgx6/KXqfh0yHJBew1r4wh6xNHAIhAIsKQZCUh3P90aNl4+wbmpAGW8P9KP73uBo7aNlpDG/e"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tommy.mont@gmail.com"}]},"0.2.2":{"name":"nginx-conf","version":"0.2.2","description":"Dynamically update nginx configuration files via programmatic API","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"1.21.4","should":"4.0.4"},"scripts":{"test":"mocha -R spec ./tests"},"gitHead":"40eb721688a49049174164c8b50b411bd9db0008","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf","_id":"nginx-conf@0.2.2","_shasum":"3b1b00b0ee4d5f2e8945c3afd0be15cf81437d98","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}],"dist":{"shasum":"3b1b00b0ee4d5f2e8945c3afd0be15cf81437d98","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-0.2.2.tgz","integrity":"sha512-iCO6Y32Fhz5WxqPIoeo1yDi51Vw3kpD6PVkhuAiz1YUfgvBa+q/Ki2M/1wRKJFdc2xhqoZBZOyY7KkPNjLbGag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID9a6Q23nd53Lpj04f66k0eQwJZkHsSklOCibVbOCNmXAiAcVpWmOOhvkdc3/KRvuhuzWrjzpGj/a2B9c7erN/hXIg=="}]}},"0.2.3":{"name":"nginx-conf","version":"0.2.3","description":"Dynamically update nginx configuration files via programmatic API","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"1.21.4","should":"4.0.4"},"scripts":{"test":"mocha -R spec ./tests"},"gitHead":"ab5363c515efb0f06c378ce133a973b0cf09cb24","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf","_id":"nginx-conf@0.2.3","_shasum":"17505e13ea508315b1fe1462ea3a90c3bd54e16c","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}],"dist":{"shasum":"17505e13ea508315b1fe1462ea3a90c3bd54e16c","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-0.2.3.tgz","integrity":"sha512-fuCjw6oKWkm9VXSenN+gIqWYwQjhM8t7glI/Ol/NGFJXbkbhlnVLTtUoFugFnph7VxWC4w+5QYhsl/srvnapuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNPrleAOu6yz0Xdf/ouIGphr6rlRNoOgvRqhLhOfaFnAiEAvy/vPVrcmSvwOS2pjHhH7FaCrGs7uHL++KrumT9pC7M="}]}},"0.2.4":{"name":"nginx-conf","version":"0.2.4","description":"Dynamically update nginx configuration files via programmatic API","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"2.1.0","should":"5.0.1"},"scripts":{"test":"mocha -R spec ./tests"},"gitHead":"2b81d18dd82b8117c86ad748cb5d0ea5fe8e3a90","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf","_id":"nginx-conf@0.2.4","_shasum":"bcf7ed01168b8ff49a35a4bbf6df1494e89d69f8","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}],"dist":{"shasum":"bcf7ed01168b8ff49a35a4bbf6df1494e89d69f8","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-0.2.4.tgz","integrity":"sha512-pyBCjdfjkRMIav4BVqJQtIu3qGXNRlNEvnz+I4N6xnxGNlWc+D6Maw3jFUdqjRTfe+rJw31mi/x079WBjM12yA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGH5zKUTyS0L1FJ7r9YXrjHSAwA/mZRg4AlPGIikT8uqAiEA88wPJ0o8ejBNIbOuNOX0+K6muuID7PmMy0OEAdHM01o="}]}},"1.0.0":{"name":"nginx-conf","version":"1.0.0","description":"Dynamically update nginx configuration files via programmatic API","license":"MIT","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"git+https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"2.3.0","should":"7.0.1"},"scripts":{"test":"mocha -R spec ./tests"},"gitHead":"0e3f2ae030f200768d752c10528d0b873a554ab0","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf#readme","_id":"nginx-conf@1.0.0","_shasum":"194d6537cbfa5ffe00fe5a3bff42d050b7c9c866","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}],"dist":{"shasum":"194d6537cbfa5ffe00fe5a3bff42d050b7c9c866","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-1.0.0.tgz","integrity":"sha512-+xQSbmPwdBcDIEF7wynxpjoyTeW2E/+XRtja/yPGyZ4GZmpQfWhh8BNu3xxLXiQfzx8jKZNH/Y6NARfN+g0xCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqsvFZfeZj7AGOtoFf/XF266ebidWdkmumenr+LluFNAiEAj2tmw9mghUxWSdpsSfg2WUgTMx9TLZHyQslMaAi7bqw="}]}},"1.1.0":{"name":"nginx-conf","version":"1.1.0","description":"Dynamically update nginx configuration files via programmatic API","license":"MIT","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"git+https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"2.3.2","should":"7.1.0"},"scripts":{"test":"mocha -R spec ./tests"},"gitHead":"d78ae286560abffb63f02270011d1c2d1d12e3eb","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf#readme","_id":"nginx-conf@1.1.0","_shasum":"31caa72666cf542b7b6fb838c6ef7400defa74b4","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}],"dist":{"shasum":"31caa72666cf542b7b6fb838c6ef7400defa74b4","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-1.1.0.tgz","integrity":"sha512-1o7TycqhpNBp7nHgMhqTP90aqI+4gL9Ttq1gS+YK2RchXQh8MXas/dr7mwSAr/G8J1CKtCgFRdk/+biCsBdsjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB4MbAkw4/6PwonHJuEgh/gwgGdhRtige3JRhsS0InRoAiEAlMQURG+z83vCHLzfTdDGwQMYbYfX8WQtRwOsWsIxJvI="}]}},"1.1.1":{"name":"nginx-conf","version":"1.1.1","description":"Dynamically update nginx configuration files via programmatic API","license":"MIT","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"files":["src","index.js"],"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"git+https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"2.3.4","should":"8.1.1"},"scripts":{"test":"mocha -R spec ./tests"},"gitHead":"540fbda3471b31993111b33693a36d4e2ea21799","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf#readme","_id":"nginx-conf@1.1.1","_shasum":"599b9fc80eaad73198d905ff7ee9ef28df64acae","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}],"dist":{"shasum":"599b9fc80eaad73198d905ff7ee9ef28df64acae","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-1.1.1.tgz","integrity":"sha512-f2uvZf04bnSoCAMPyTIXcWxhMe8EtjGfUpRNQ2wV7Y19LOOrlqlRzf/xfDJDD6+G/vLfnjwJsyLqkCSGNMHIPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGTGayDOLn9sElYEWF9N0EhujYRUpISWxXCDQa/dUDkPAiEA99jBFHNuM3oXUpne4pRzPoiHuYA3VQW9cs5zJgEWy1I="}]}},"1.2.0":{"name":"nginx-conf","version":"1.2.0","description":"Dynamically update nginx configuration files via programmatic API","license":"MIT","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"files":["src","index.js"],"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"2.4.5","should":"8.2.2"},"scripts":{"test":"mocha -R spec ./tests"},"gitHead":"b9955175a94ec917d7b3f579c21b0b227be23638","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf","_id":"nginx-conf@1.2.0","_shasum":"b18f68cc9d77fd4b9697150c73e9a7aafa856fd9","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}],"dist":{"shasum":"b18f68cc9d77fd4b9697150c73e9a7aafa856fd9","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-1.2.0.tgz","integrity":"sha512-Xorl1qY/ZuKNJ+yTrxNeKEiQzbcA2BGNQIgwGVO9hYttA4t6dxEjF748OGwRbsQGSJanug/dNFMYX6eYjMO/gQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAgYVuj+TMxkG3EUtsl0Kh0FFN3B4IPumguCsAjG51HTAiEAxMLzjQ9lAovroPLsb/S+8XrX/24cRDjdVFXmPO4JBBU="}]},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/nginx-conf-1.2.0.tgz_1456344989398_0.6794977653771639"}},"1.3.0":{"name":"nginx-conf","version":"1.3.0","description":"Dynamically update nginx configuration files via programmatic API","license":"MIT","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"files":["src","index.js"],"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"git+https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"2.4.5","should":"8.2.2"},"scripts":{"test":"mocha -R spec ./tests"},"gitHead":"a0c396a3606881e6380b18785b294ebe17632d6e","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf#readme","_id":"nginx-conf@1.3.0","_shasum":"c41058a87cf7bd7eebcb91b35832a5ad53595904","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.12.0","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"dist":{"shasum":"c41058a87cf7bd7eebcb91b35832a5ad53595904","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-1.3.0.tgz","integrity":"sha512-FIHucNtB7ZMnQwcQPDNGSsK5EdHqwRrTHlWZAO2iKUhv9bWMFZDwVBjPSxZM7GUV/7SezTabGlDV3V0z9dTy9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxSWXAQXs5RfwYOu6BYwBjjYVDtwTRHqpL31uyzeWmBgIhAJPclVbknCX/vfCFNzeySTRnwK+6BzxPLDSvyx00fjmt"}]},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/nginx-conf-1.3.0.tgz_1472537984240_0.9263232094235718"}},"1.3.1":{"name":"nginx-conf","version":"1.3.1","description":"Dynamically update nginx configuration files via programmatic API","license":"MIT","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"files":["src","index.js"],"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"git+https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"2.4.5","should":"8.2.2"},"scripts":{"test":"mocha -R spec ./tests"},"gitHead":"9931b6c2d880e0ff65966a8008a51390d06889a9","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf#readme","_id":"nginx-conf@1.3.1","_shasum":"bb752f4dd9d521e21c9d7fe7bb95306cf9535e75","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"dist":{"shasum":"bb752f4dd9d521e21c9d7fe7bb95306cf9535e75","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-1.3.1.tgz","integrity":"sha512-tareAr9GAnQ1vqwmJwiqwl83uRwwWTbSIo+1VDGvjEKLFLOdyebjqPIBT+WqlENceX0AsoURUyfmWIIxPQkbcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhSlBiygKQ8Z+pS+S/9isiAm9eim/iOBLRdHeNcZB6hQIhANws+EzDflumbM0L3G3gjlOBQ5M6Cm4FUUGFijQ5Aq5H"}]},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nginx-conf-1.3.1.tgz_1502818430321_0.008110279450193048"}},"1.4.0":{"name":"nginx-conf","version":"1.4.0","description":"Dynamically update nginx configuration files via programmatic API","license":"MIT","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"files":["src","index.js"],"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"git+https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"2.4.5","should":"8.2.2"},"scripts":{"test":"mocha -R spec ./tests"},"gitHead":"9ba40fe69a095c89e75b68f3aa3dc0c8a29f9e84","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf#readme","_id":"nginx-conf@1.4.0","_shasum":"b5bd20870455a7988be8044d86d26b8828c6777b","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.12.0","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"dist":{"shasum":"b5bd20870455a7988be8044d86d26b8828c6777b","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-1.4.0.tgz","fileCount":6,"unpackedSize":20227,"integrity":"sha512-6tKSSKYyoU+oLMj4++xpyjUqJswc8I0+4uuhmSr/ueyy0JxWf0NEwGBSsV/rsOhDMuJqWSXnZTrKoO1SuVX3sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiTO8kEpPzqVOIlgLEWYbm9oVIsBP9c0eyXs86oLwziwIgBjbyZRja3RAreB2S1bGar7N3Dd2/r0toXaRgpwAXYwY="}]},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nginx-conf_1.4.0_1519970464946_0.7499122948171417"},"_hasShrinkwrap":false},"1.5.0":{"name":"nginx-conf","version":"1.5.0","description":"Dynamically update nginx configuration files via programmatic API","license":"MIT","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"files":["src","index.js"],"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"git+https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"2.4.5","should":"8.2.2"},"scripts":{"test":"mocha -R spec ./tests"},"gitHead":"5bfe608ddb251de826ae3c9d15afccd4b46263bc","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf#readme","_id":"nginx-conf@1.5.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"dist":{"integrity":"sha512-bzVqdmATU1U9dNn9T9NVoczRJArydh6rGMxg9f8gLhzsPdQkGDqD8H1EcERgeKoLH3UC9mPiDTR6eyi2uDn/kQ==","shasum":"30de1a0a0a195ed906b9cfb130ed7b950cda416d","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-1.5.0.tgz","fileCount":6,"unpackedSize":20773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbaphyCRA9TVsSAnZWagAAhYsQAIEkAjHNdS3t7Bny7Gmk\nDU7ywV3kMwRUQ8MB5RldWtsYVBQV7NDUuKYCYuEDunel7EiEEW+h4NqYJXgh\n9d0Q3uPnRY4uOihvYs5LdhAztnn6Fsu06qUQAaECMpad0lMs0Elu0r+o439h\nw+xvCWgTAJJDqBdqFgCQpKzmWyDQFEWmJONx300krjhbhwe1oeS5L5V3wb4q\nYto4WvpYWIbcTtAq7FbnxTbSkkyOVndu2dhbu/+N5/DEJn1DBp1/fRfiHeXp\nyR9IswdO3tiAaBNyhgGjdvy2Ox/DpMSOPRif3YESWJSfaN9yXZTlTdI2dZz0\niPdvqKMLDJl5pAI9OL518yzy4xVk4juNRwT/GnOTs4G23FlfiGUngSokWN7i\ntAkYiZu0o44J5RQy9EvXCwl+ZN21neh4BSc6/iwNmbp+SSBA+RNqanFTMa0o\nwZY+xR38aTkhQXnRsvTK/v67mnMgoRF2rt/lYvuOac6F9lPzTT5M2OuQzWk5\nThwNHdcLnPHAM+6QN1LEq+JyZXRa9dlsrXb+keSHHZ3IlR6T30v6zgkG7hBL\nmXCRT5WmTyTkNPFW40rOrmFYWqt5KuSnlRjV7/dfnG326tVrFeZ5leJNYaCD\nCHJhbhntLPrL8ue5u06nnDuUmKXLvrTYyadolCLuk8sKAjI1LzG+36VRRTIr\nMB3l\r\n=dT9r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH+WfeGf8LCksZe54ikjwkGKunaDqi6PJuPR86ekH609AiEA+oOQbvk8Ou87zteTitC2RRC6qyx+1ZQtMQU3wiKlThY="}]},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nginx-conf_1.5.0_1533712498569_0.2919313241927217"},"_hasShrinkwrap":false},"1.6.0":{"name":"nginx-conf","version":"1.6.0","description":"Dynamically update nginx configuration files via programmatic API","license":"MIT","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"types":"index.d.ts","author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"git+https://github.com/tmont/nginx-conf.git"},"devDependencies":{"@types/node":"10.17.50","mocha":"8.2.1","should":"13.2.3","tiny-typed-emitter":"2.0.3","typescript":"4.1.3"},"peerDependencies":{"tiny-typed-emitter":"^2.0.3","@types/node":"10.x"},"peerDependenciesMeta":{"tiny-typed-emitter":{"optional":true},"@types/node":{"optional":true}},"scripts":{"test":"mocha -R spec ./tests && node_modules/.bin/tsc"},"gitHead":"fa233bcf1b1184d7c5ad187fe9c1cfabe337e5d0","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf#readme","_id":"nginx-conf@1.6.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Q6/2xnyeo/bIiN+nv57D8Xq/s1c90jUNnNvjHSV4FqqxMpTGY0u+exLkxDHNpXuYfoCxyA02p5hHj5vLIIWUmg==","shasum":"1feb61c2cd22c29d2b56decef6c2e838cd5bb9e3","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-1.6.0.tgz","fileCount":9,"unpackedSize":24590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6Ag1CRA9TVsSAnZWagAA07kQAIeTbquMZ+4cK2EXhtoe\n580IiSS5m629ZMhcmFlYjEOC0ePVBKDauNHHgPABmg6Swp/8HtCcHoR7q/wL\nQydOG4/8jxN5T7SawEJeFpwMgeQvjgNzy3HZtvYT8QZffECxUVW1W79r9ZfG\nfBsINgGuPv/N5bAdKfYsloYejRL9JtUAWTLv5UjcNOvjiup8FUokoCmYnby8\nT0/+SysR2OJOSKFeilxMIf9lYoLF28z+62fYhDhkTzloONbERVw8jsN1+B8m\nSNwiK8tqexaQz6Qgf0PLR/+grNAVrbdOWPJmuybCHBtY7brKRk1tKdJwKDEB\nBRGCVccvT/LDcKO+8gyLvjHC8csyKVeOACGBmvseYbfBy5dQFPXhhhIT1sjB\n97kmtPzHYvcnmWCNP5XEEmhgZLnBkLXTTJWmRnPiGiPlPJwPoHTfACJRqfOg\nGtKFBUOKTJc0S50B8GErp/ZrE/euLS2FliwbNjHBqFsN7NIIsNKP/PJ/cE4g\nLVnLCOpfJrsIPi1GnubNRPvmG0cCh4DhCm7a6jlQG9pjrTEm3N1aD74Njdss\nM0wPlSdreKqzUlqKOBg53kREU5cUPR+cbF+gjgLZVHWyfPAFh8FeSuK7YQqs\n1/pgViwTdkYxQPxlLhRg/VYCpDg1ZGeMHvZ0Qi9g6o2iqDDmwYHKEx9Hkj36\ncYKw\r\n=DGiy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwhueMUpcdPGz31mSNMS+hd94/BU754XAnscPUNxcpoAIhAJW6uzqkyOBoMJi1lGvxKMHRk5z4pm/mj0vrtwIxNe+Q"}]},"_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tommy.mont@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nginx-conf_1.6.0_1609041973389_0.3621584552404251"},"_hasShrinkwrap":false},"1.7.0":{"name":"nginx-conf","version":"1.7.0","description":"Dynamically update nginx configuration files via programmatic API","license":"MIT","keywords":["nginx","configuration","parser"],"directories":{"lib":"src"},"author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"git+https://github.com/tmont/nginx-conf.git"},"devDependencies":{"mocha":"8.2.1","should":"13.2.3","typescript":"4.1.3"},"scripts":{"test":"mocha -R spec ./tests"},"gitHead":"5e55a6d4e7aa180bfeb25479d0570519c709af2e","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf#readme","_id":"nginx-conf@1.7.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-EAFJbh5o2QYhWzoz8nMYSSW10P2K2j4CGVpWwTDanawu8xz8VCTqCQF/2tJ1Vdobgw2igfhZlyLF0BSDtkBhOg==","shasum":"c90eb4b11001c7436ea50760a6453c8468170b12","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-1.7.0.tgz","fileCount":6,"unpackedSize":21271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6PlWCRA9TVsSAnZWagAAe38P/1LwHYjVpGlOxknMmruR\n5GYIdOXTodlck6LrDEwYJpF6kwC9y9u0wb7VmIBeRTBQ1o6HxZolBQ5tIHSY\nlecHBxE53Qe8dAtSkVDqUceo7bSKFv2aOGfq0CcsOL1BgCQMS2xr/L5bPEdL\nCWcVHa6AzvIibCuF7YUxQAELRwsgWwMZoDEDtKqKwoU+UNJbGOGJmU4bXna0\n1m6FWmfw0XWWdFMfBDrZujJdpb0ZNRRV22DTlPf1VmlcbEvPYvGYF6hQhsAV\nroHHdbaZY/BmPS9jHVf1CHbvDmFkySJfB9lPX08QVr12m3Wbtcjut6klCHvx\nY5BXX+vPUtw+cIw++e55l7DVVj8ES2NCeEZriId73/vE/bdfDGvnG0usJb1i\n9mPg6wErpCT0HTnYgoHkKsVA5Qg0mDhv+P5YyQDszY8MujdEWVo1OltwRGoH\nYhdkNBdUR8mFLUO5yQwnWb1VP0jkiITQZTY9JWyfb1FHXwuEan8l6RPrEf9U\nKjGqk1k/aXIkymDVxAQUfl1cankwY/1Lud3IxGc4R7qaoaY+BVL9qvy9rjxX\nvExg7u65uJek2+mfYOUy2xeT6DeIh0RH8a1uEnidQBOym1DkdSC1WjucaRJK\nbK+XdV+y4fk6KvzmfdGVePGz/qj7YX7cFifKk6Fw3TECeuWbajX+W4MNk5V/\nVOP8\r\n=Uwty\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGqThpTuGQjifwuwQ3DLoqfSm6QeGnC4pIsWYQbhwymqAiEAplsXGGrk6kt9/8EiV+tg4Kzsnl2aUkMadK/LdD50nw0="}]},"_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tommy.mont@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nginx-conf_1.7.0_1609103701878_0.5947756249509111"},"_hasShrinkwrap":false},"2.0.0":{"name":"nginx-conf","version":"2.0.0","description":"Dynamically update nginx configuration files via programmatic API","license":"MIT","keywords":["nginx","configuration","parser"],"main":"dist/index.js","types":"dist/index.d.ts","author":{"name":"Tommy Montgomery","email":"tmont@tmont.com","url":"http://tmont.com/"},"repository":{"type":"git","url":"git+https://github.com/tmont/nginx-conf.git"},"devDependencies":{"@types/node":"14.14.19","mocha":"8.2.1","should":"13.2.3","typescript":"4.1.3"},"scripts":{"build":"tsc","watch":"tsc --watch --incremental --preserveWatchOutput","test":"mocha -R spec ./tests"},"gitHead":"a083d16b6316d1fd4f44aff728c2cb0e1064574e","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf#readme","_id":"nginx-conf@2.0.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fHA8qHPW5FclhUJZUt4MO7E8P6Hg6jHb77I9yAjj18gYtOR4ubxonS1XlUoVMhopFggVSMP79BYc6V3i7H+k4Q==","shasum":"a14a150ab1850b10691a50eff613cdef85f564b4","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-2.0.0.tgz","fileCount":12,"unpackedSize":51027,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf8sB2CRA9TVsSAnZWagAAxi8P/0sjMxbiLTBfU6wiEZ/y\nzi+ooBHbtFgTvJNLkgLnKryuGX/u0CgI+w9X1aV8Xc1hqLwACMxeAztmJgu1\n+/ZcBniRPmhZxpgcSGtgwYxXzXiRHMyull8TMn5d0qgTYZ4KMWbPWVz+eEbt\nMkNghodynAO8z7Tc8NCavFCpWUACjuyLP4EEu5sayEWXmTbI3kpLhRyWAE+p\nvFSqb/jcG01E1MMPHa+5RULr8KbrJOMbzdQUIxvTv8K+3L3EhXvwLErB+2gK\nD0PzRcKqJ/w8zIcUHJXMgzuPABOQoExl3bEX4S2epMHj0zNkmTiW4nZEqIE7\nnJsqAq7+7VNBo6xnXw48WddymeXZ/uuPQ6Z31UzSrXURKPs/Zfo2Xh2Ak0mh\nYpLs+SGH6fDfJ6bjU1SQ8FMW7syNLl81Gitm5v4Gri54XO5HHEBj/jMGaABb\nDWqF56HHeeD0wO8a8sSxFuD30cDg6bD0QvDgypulbFQof7RaEsaoBPTGJQJg\nFT6u/w3czKSTwF9WT66bZMQoyRVotSuv0FYl/hL7vYiTWErwEKYWAz5Dyxh2\n/81DL736KQKjTaptKcll2GiM7CH6BKzgxCA1DmNKYR67tKRirIGgIiWGfZzd\nwqp5iBnF2mo8y38Ck7SyFMUP3QB5IUzrcdDLTD1lt9Y8V7YWqcpxzZVqdfsZ\nvXvg\r\n=Nnq0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAhr3I6duM6mhxdBmdFI43ngCrNNiJA009+VJOKwN/l2AiBx/C58fGiyOX8edkN0jMxRcg0ynOMdOl6IvdJRDKs9cg=="}]},"_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"directories":{},"maintainers":[{"name":"tmont","email":"tommy.mont@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nginx-conf_2.0.0_1609744501745_0.8883314933346949"},"_hasShrinkwrap":false},"2.1.0":{"name":"nginx-conf","version":"2.1.0","description":"Dynamically update nginx configuration files via programmatic API","license":"MIT","keywords":["nginx","configuration","parser"],"main":"dist/index.js","types":"dist/index.d.ts","author":{"name":"Tommy Montgomery"},"repository":{"type":"git","url":"git+https://github.com/tmont/nginx-conf.git"},"devDependencies":{"@types/node":"18.0.3","mocha":"10.0.0","should":"13.2.3","typescript":"4.7.4"},"scripts":{"build":"tsc","watch":"tsc --watch --incremental --preserveWatchOutput","test":"mocha -R spec -t 10000 ./tests"},"gitHead":"c9afd87ff0905f297069225f4a3de4acdd414723","bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"homepage":"https://github.com/tmont/nginx-conf#readme","_id":"nginx-conf@2.1.0","_nodeVersion":"18.2.0","_npmVersion":"8.9.0","dist":{"integrity":"sha512-tuf9hn1Zw+KFCjnLLNM9fxBC+OLxVZPSjcYK7PpwP6i0mt5UB7zLFQBjJKHIQDbs7D7uTcOHI4ELdtW/nUKllg==","shasum":"eb5fa9dcae6af9a27c1d11179e21545531cc8026","tarball":"https://registry.npmjs.org/nginx-conf/-/nginx-conf-2.1.0.tgz","fileCount":12,"unpackedSize":53314,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbVHBr/EMA6vxE+fXwqLDyWvpkxeqwK34WaY7X/y7FBAIgHNfj26XKJYKGKinIUdoVtaVY6p3xJQHEv0Q0NiDqHvY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixxjWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqtuw//S20rfaWRzaqTK1Na4qYKNS+cV2syf3ecP5YYQleCz7K0Ip+Q\r\nQfmA7IHuFVA6kZUfi6FC0LqzrYLKT3xBUjGwNplWwbbHBq4b2CM54dZNn+hi\r\nwdneCYbT4EbFtfOcfOad57ug7jqLAYn6niqBs98Ojme2MIXOvE+ClQfhHM4Q\r\nXWW7raO6f9Q0G9Oyu2zeqpSl5qJQmfehevv6LePXqiqesy9DpYwRo/chHOBf\r\nm8OyTjCZpiJRERbhYO8c+HYDyeBzipSC7NyQuCnN+dtLbTl/vCFadPTd33Kc\r\n6EE6TotamAWGdepLAXMM8AV5+QISDHffDsjhFTb3h8khF5uurZr5OfYYaCpF\r\nvlN5eOSbY9h0wtlpVPX6Es0vbMhWdVUUIg43xxiSh9sXUrC6TCXWQO89UoVM\r\nYAdbv8moDI67rcEGcIQILxsDKbahfyT4Be7onLM5m2p8cu4gmhwaRcKvHr9C\r\nfVu/Lpjurz+XV18VB0lg6lc9A/ctddLksaRVmIZrt1gftppxlhFnrIiWynxJ\r\nYW6PKNgWeR3RWsqB/OgrsRYK4lUzUxz+rDepjwvuAgd2I2nDXNt1Xkjvl6au\r\nH/sh5Yk2nrSNmOs+2CT9AWO/ig9/SkkXU63U1p9zLSYSlnUNbVE1e3Fm5clR\r\nmr+5zLjtd0xxsF2IPNc7Aj0b3y7bjChHYFg=\r\n=hOg+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tmont","email":"accountnpm@tmonticle.com"},"directories":{},"maintainers":[{"name":"tmont","email":"accountnpm@tmonticle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nginx-conf_2.1.0_1657215190549_0.23649957675198197"},"_hasShrinkwrap":false}},"readme":"# nginx-conf\n\n`nginx-conf` is a node module for making changes to an [nginx](http://nginx.org) configuration\nfile programmatically.\n\n[![NPM version](https://badge.fury.io/js/nginx-conf.png)](http://badge.fury.io/js/nginx-conf)\n\n## Installation\n`npm install nginx-conf`\n\nThis library has no dependencies.\n\n## Breaking Changes\nVersion `2.0.0` changed the way that single directives are accessed. In short, everything\nis now array-indexed.\n\n\n```javascript\n// Pre 2.0.0:\nconf.nginx.foo.bar._value;\n\n// 2.0.0+\nconf.nginx.foo[0].bar[0]._value;\n```\n\n## Usage\nPretend you have an nginx config file like\n[this one](https://github.com/tmont/nginx-conf/blob/master/tests/files/nginx-home.conf).\n\nNote that all public methods are prefixed with `_` so that they (hopefully) don't clash with\nnginx's directives.\n\nNote: `*_content_by_lua_block` directives are supported in `>=v1.3.0`.\n\n```javascript\n// vanilla JS: const NginxConfFile = require('nginx-conf').NginxConfFile;\nimport {NginxConfFile} from '../../';\n\nconst filename = `${__dirname}/../files/readme.conf`;\n\nNginxConfFile.create(filename, function (err, conf) {\n    if (err || !conf) {\n        console.log(err);\n        return;\n    }\n\n    // reading values\n    console.log('user: ' + conf.nginx.user?.[0]._value);\n    console.log('http.server.listen: ' + conf.nginx.http?.[0].server?.[0].listen?.[0]._value);\n    console.log('http.server.location.root:' + conf.nginx.http?.[0].server?.[0].location?.[3].root?.[0]._value);\n\n    //writing values\n    //NginxConfFile.create() automatically sets up a sync, so that whenever\n    //a value is changed, or a node is removed/added, the file gets updated\n    //immediately\n\n    const onFlushed = () => {\n        console.log('finished writing to disk');\n    };\n\n    conf.on('flushed', onFlushed);\n\n    //listen to the flushed event to determine when the new file has been flushed to disk\n    if (conf.nginx.events?.[0].connections) {\n        conf.nginx.events[0].connections[0]._value = 1000;\n\n        //don't write to disk when something changes\n        conf.die(filename);\n        conf.nginx.events[0].connections[0]._value = 2000; //change remains local, not in /etc/nginx.conf\n    }\n\n    //write to a different file\n    conf.live(`${filename}.bak`);\n\n    //force the synchronization\n    conf.flush();\n\n    //adding and removing directives\n    if (conf.nginx.http) {\n        conf.nginx.http[0]._add('add_header', 'Cache-Control max-age=315360000, public');\n        console.log(conf.nginx.http[0].add_header?.[0]._value); //Cache-Control max-age=315360000, public\n\n        conf.nginx.http[0]._add('add_header', 'X-Load-Balancer lb-01');\n        conf.nginx.http[0]._add('add_header', 'X-Secure true');\n\n        console.log(conf.nginx.http[0].add_header?.[0]._value); //Cache-Control max-age=315360000, public\n        console.log(conf.nginx.http[0].add_header?.[1]._value); //X-Load-Balancer lb-01\n        console.log(conf.nginx.http[0].add_header?.[2]._value); //X-Secure true\n\n        conf.nginx.http[0]._remove('add_header'); //removes add_header[0]\n        conf.nginx.http[0]._remove('add_header', 1); //removes add_header[1]\n    }\n\n    //adding a new block\n    conf.nginx.http?.[0]._add('server');\n    conf.nginx.http?.[0].server?.[0]._add('listen', '80');\n\n    //that'll create something like this:\n    /*\n      server {\n        listen 80;\n      }\n    */\n\n    //multiple blocks\n    conf.nginx.http?.[0]._add('server');\n    conf.nginx.http?.[0].server?.[1]._add('listen', '443');\n\n    /*\n      server {\n        listen 80;\n      }\n      server {\n        listen 443;\n      }\n    */\n\n    // blocks with values:\n    conf.nginx.http?.[0].server?.[1]._add('location', '/');\n    conf.nginx.http?.[0].server?.[1].location?.[0]._add('root', '/var/www/example.com');\n\n    /*\n      server {\n        location / {\n          root /var/www/example.com;\n        }\n      }\n    */\n\n    // you can also create empty blocks\n    conf.nginx.http?.[0]._add('events', '', []); // events { }\n\n    // lua blocks also work, but you can't put a mismatched \"{\" or \"}\" in a comment!\n    conf.nginx.http?.[0].server?.[0].location?.[0]._addVerbatimBlock('rewrite_by_lua_block', '\\n\\\n        ngx.say(\"this is a lua block!\")\\n\\\n        res = ngx.location.capture(\"/memc\",\\n\\\n          { args = { cmd = \"incr\", key = ngx.var.uri } }\\n\\\n        )'\n    );\n\n    // remove old listener\n    conf.off('flushed', onFlushed);\n\n    // kill process when done writing to disk\n    conf.on('flushed', () => {\n        console.log('finished writing to disk, exiting');\n        process.exit();\n    });\n\n    conf.flush();\n});\n```\n\n### Comments\nSupport for comments is supported-ish. Comments are attached to directives, and will always\nbe rendered *above* the directive when using `toString()` (or `_getString()`).\n\nComments can be added, removed and updated via the `_comments` array on a node.\n\n```javascript\nconsole.log(conf.nginx.events[0].use[0]._comments.length); // 1\nconsole.log(conf.nginx.events[0].use[0]._comments[0]); // use [ kqueue | rtsig | epoll | /dev/poll | select | poll ];\n\n//remove the comment\nconf.nginx.events[0].use[0]._comments.splice(0, 1);\n\n//add a new one\nconf.nginx.events[0].use[0]._comments.push('my new comment');\nconsole.log(conf.nginx.events[0].use[0]._comments.length); // 1\nconsole.log(conf.nginx.events[0].use[0]._comments[0]); //my new comment\n\n//update a comment's text\nconf.nginx.events[0].use[0]._comments[0] = 'updated';\nconsole.log(conf.nginx.events[0].use[0]._comments[0]); //updated\n```\n\nIf the comment is in a weird place (like in the middle of a directive), it'll still be\nattached to the node. If it's *after* the directive (after the semicolon or closing brace),\nit will be attached to the *next* node, or ignored if it's at the end of the file.\n\nAssuming this nginx configuration:\n```nginx\nfoo #comment\nbar;\n```\n\nYou will have this object structure:\n```javascript\nconsole.log(conf.nginx.foo[0]._value); //bar\nconsole.log(conf.nginx.foo[0]._comments[0]); //comment\n```\n\nBut if the comment comes *after*:\n```nginx\nfoo bar;\n#comment\n```\n\n```javascript\nconsole.log(conf.nginx.foo[0]._value); //bar\nconsole.log(conf.nginx.foo[0]._comments.length); //0\n```\n\n### Parser options\nSupport for go template syntax is provided via `NginxParserOptions`.  By default, templating syntax is not supported.\n\nTo enable templating syntax, pass the following `NginxParserOptions` to the `parser.parse` or `parser.parseFile` function(s):\n```javascript\n{\n  templateSyntax: true\n}\n```\n\n## Development\n```bash\ngit clone git@github.com:tmont/nginx-conf.git\ncd nginx-conf\nnpm install\nnpm test\n```\n\nIf you're making changes, you should run `npm run watch` in a separate\nterminal. `tsc` will output the JavaScript in the `dist/` directory.\nThe tests reference the JavaScript files in `dist/`, not the TypeScript\nfiles elsewhere.\n\nOnly the stuff in `dist/` is included in the NPM package.\n","maintainers":[{"name":"tmont","email":"accountnpm@tmonticle.com"}],"time":{"modified":"2022-07-07T17:33:10.866Z","created":"2013-01-19T22:37:25.309Z","0.1.0":"2013-01-19T22:37:26.163Z","0.2.0":"2014-01-14T06:34:33.119Z","0.2.1":"2014-02-01T23:46:49.836Z","0.2.2":"2014-08-31T03:28:28.930Z","0.2.3":"2014-09-14T20:07:24.448Z","0.2.4":"2015-02-22T23:52:47.219Z","1.0.0":"2015-09-03T06:00:19.655Z","1.1.0":"2015-09-14T05:52:02.401Z","1.1.1":"2016-01-22T09:43:05.477Z","1.2.0":"2016-02-24T20:16:30.087Z","1.3.0":"2016-08-30T06:19:46.702Z","1.3.1":"2017-08-15T17:33:50.463Z","1.4.0":"2018-03-02T06:01:06.535Z","1.5.0":"2018-08-08T07:14:58.703Z","1.6.0":"2020-12-27T04:06:13.513Z","1.7.0":"2020-12-27T21:15:01.996Z","2.0.0":"2021-01-04T07:15:02.136Z","2.1.0":"2022-07-07T17:33:10.763Z"},"author":{"name":"Tommy Montgomery"},"repository":{"type":"git","url":"git+https://github.com/tmont/nginx-conf.git"},"readmeFilename":"README.md","homepage":"https://github.com/tmont/nginx-conf#readme","keywords":["nginx","configuration","parser"],"bugs":{"url":"https://github.com/tmont/nginx-conf/issues"},"users":{"brandonpapworth":true,"queljin":true,"bitsonic":true,"byk":true,"panhao000":true,"jonstuebe":true,"hengkiardo":true,"goatandsheep":true,"bluelovers":true,"pc028771":true,"asaupup":true,"ajsb85":true,"daniellink":true,"nuwaio":true,"meeh":true,"geniusm4ster":true,"blackhuman":true},"license":"MIT"}