{"_id":"@bonton/exit-on-change","_rev":"5-4739956e7a1c1e5b1eb424cb2e2e5d09","name":"@bonton/exit-on-change","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@bonton/exit-on-change","publishConfig":{"access":"public"},"version":"1.0.0","main":"dist/index.js","scripts":{"build":"tsc","build:watch":"tsc --watch --preserveWatchOutput"},"devDependencies":{"typescript":"^4.8.2"},"dependencies":{"chokidar":"^3.5.3","pirates":"^4.0.5"},"license":"MIT","author":{"name":"Omran Jamal","email":"omran@bonton.app","url":"omranjamal.me"},"description":"Kill your node process if any of the files that you `require` changes.","licenseText":"Copyright 2022 Bonton Connect\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@bonton/exit-on-change@1.0.0","dist":{"shasum":"0118a8417e9fa8d2ce1c228baf1eb935cafd5ad6","integrity":"sha512-jAjZMB4NgCFbgJs5vJNHB5pG7Dbad4TIPD869QFPlsrNrM/TsdoA5qU18yW3qYhewsnzhYAkugF8vZ0PyXXs6Q==","tarball":"https://registry.npmjs.org/@bonton/exit-on-change/-/exit-on-change-1.0.0.tgz","fileCount":14,"unpackedSize":46116,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID6A7LW6ZM8xA8CvrRAw/TlRKhLe9nICzQkHGQwQ2q8JAiB9fyfayuTIWpO8hQz6VtymLR5qru8ufN78zt5C2myikw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjM04MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoa4A//SZZUTffzEqF9MzW+ta0WF771k+3HhmvJ2GvmhaxbSI7gSceP\r\n3gBgzXHyA3tlBGRN85WtKq+4TggzyHXvlFUs1Bn85RmanDSHLjYIM4j126VU\r\n0DeS9CtiqqJV2AfwypGjPkHusfOUmeiy4huA8MWevDhfPpt/jnPfWKynXDaQ\r\nzUGK7X0ch99TkxOzzYkRFmzDx9Cd7o1HA/QQphenaL5XszcdvegOd4X4inOl\r\n6D+Lvv+S55dsFI2ijrgQbwWTHUWivOwLQTQcv0z7UptTA66IpG9VJgwXRiQm\r\nmaCLldYdFa74D43/RlAzXrFYTbwZ0nm/BYYBGUOQ/iP9YefJknoWkIAWyp3u\r\nv2SFrBBzNCDHFaztNjoCTmMQ6yOCBLb8kn6e8YyeF6rd+HPIiXQ4gyty+zJ7\r\n4xSoOh/zhAFVLTJtf4yy8dnKv5WAG8aI6lgVphopvdW2U00R9OUuJoI8vLmE\r\nrKUOZkZAFo+xyOGgpHHOrBcNzxZMK/+qV24nkQfAbAsetE2Y4w2yseSBpAzX\r\n5Tr5iaPGllf7wxJEf3hDZjnpCcAmJBEUtC1jeVjJl5GafjhJlYKeXWniJmP7\r\nOcJrml26RGfmP9BbISfXe+eQvgUjV9P8fzUWhCmoXB0Jqn2Kkq7UoklXlgSA\r\nGdLXXXGiaGOG1vu2VsTbdlyPz3J+P9f4SFw=\r\n=GnuA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"omranjamal","email":"o.jamal97@gmail.com"},"directories":{},"maintainers":[{"name":"omranjamal","email":"o.jamal97@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exit-on-change_1.0.0_1664306700078_0.8125756646398103"},"_hasShrinkwrap":false},"1.0.1":{"name":"@bonton/exit-on-change","publishConfig":{"access":"public"},"version":"1.0.1","main":"dist/index.js","scripts":{"build":"tsc","build:watch":"tsc --watch --preserveWatchOutput"},"devDependencies":{"typescript":"^4.8.2"},"dependencies":{"chokidar":"^3.5.3","pirates":"^4.0.5"},"license":"MIT","author":{"name":"Omran Jamal","email":"omran@bonton.app","url":"omranjamal.me"},"keywords":["nodemon","kill","exit","change","require","development"],"description":"Kill your node process if any of the imported or required files change.","licenseText":"Copyright 2022 Bonton Connect\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@bonton/exit-on-change@1.0.1","dist":{"shasum":"34fb1a14d28902b6dc75e2e3e7d9497898235476","integrity":"sha512-m3vmFNwgvIk4HuBi6yIlFBmHNk6MvZWVTa8TCU4FLLeV/tcSyLBWnouy6WkuJpftoPVoPwzAU2MElNBhhR/tow==","tarball":"https://registry.npmjs.org/@bonton/exit-on-change/-/exit-on-change-1.0.1.tgz","fileCount":14,"unpackedSize":46315,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF5JdS6uddAWLWgGYVcgx/7pIAG3QeStYnI8f/gVNN8qAiEA99FoP+kpF4sHbvMcMrXA75toKLQ0Zs3KnVfJU1ukz3A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjM06BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqr5A/+MfaGk3X6SYJ2z9hn2Cik/FLFdO70wyqhEzcnfhc3vt8DB4At\r\nXRfSPFxpawxWOpAbopvJhO2Jvbn06EOHxj12iVHUboIyCnPoZxWcyYij8LoW\r\n68yaVrZj88AsNSBcuPM2VI0PyWBmI1jhsBFeZ9OqIRjGHLT73wX1c31wd8mD\r\ns90nGBLkVPCggqaqMRW1TbVEBUp78pOclMgtbruqLhncTIOeG1C7VbBuh8bv\r\noKm2zJJIt5Ja0gml7Q2ajPM60YRtzhZGeak890/qqr2v63xkt6XFK9P04OYT\r\n/tab/pK4XneLlc/DLQ/mwAlCQsFPRREkJZBhGNarmlAqbLews53zuVp/TIzY\r\ntMJTHFC4xqsXI4n7ux544NSfhS7Uri/kLjcekrV6S3ZgAwpvem/1nNTudXKg\r\niYrLtCsNWEFxUKeF5KYtUQqakm4aFbO5odaw+QXbGTD5qOQnyo3hlzTdd+JE\r\nTk7gwHYDuGJEzgYOe69rFd5zqMy09LEuqXAhXPe248NG26pVqYir+6iN9IDP\r\nm0HhEHcIpLqxFDJtU6WDPgpWXMtfkgRmNy0qb+rLmD3mM4aXEJrAzedJ9/Wg\r\nc2wD6DuVL87kHhC+Sie9pGtfo2/zAHE5azYvZ0O5876mKeiJ+ZxUqeWshmP5\r\nRdW+wpXHEIKvNzaLklZ+GFMEZS1GfiWIgnM=\r\n=E5cF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"omranjamal","email":"o.jamal97@gmail.com"},"directories":{},"maintainers":[{"name":"omranjamal","email":"o.jamal97@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exit-on-change_1.0.1_1664306817118_0.734419667208277"},"_hasShrinkwrap":false},"1.0.2":{"name":"@bonton/exit-on-change","publishConfig":{"access":"public"},"version":"1.0.2","main":"dist/index.js","scripts":{"build":"tsc","build:watch":"tsc --watch --preserveWatchOutput"},"devDependencies":{"typescript":"^4.8.2"},"dependencies":{"chokidar":"^3.5.3","pirates":"^4.0.5"},"license":"MIT","author":{"name":"Omran Jamal","email":"omran@bonton.app","url":"omranjamal.me"},"keywords":["nodemon","kill","exit","change","require","development"],"description":"Kill your node process if any of the imported or required files change.","licenseText":"Copyright 2022 Bonton Connect\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@bonton/exit-on-change@1.0.2","dist":{"shasum":"2819e18ce56755105f0c46e35848201440f155ed","integrity":"sha512-6IKv6G/337PRNN923+spHjDFri68DrYXRrQe/apaYpbua7XKphgLbT1jnsYxCgszXNP6dkqm5ie8hdkoBabeKw==","tarball":"https://registry.npmjs.org/@bonton/exit-on-change/-/exit-on-change-1.0.2.tgz","fileCount":14,"unpackedSize":46743,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHPebwzKx1SHORI2OjjiCgRyutivWDIlXK/e73rzO6KxAiEA4wXk6e1nXc/FkiNr3yNdexBWO8OUxi/mvfRWK1Gu5iw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjM1JYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqFlw/8C0Izg80mzMjynVLqagsyKbH6AhCHZib5MYofYefBKwGrNJGX\r\n4FWOUdo/Pfmu5mMD4x1BUk2ufv0yAgRc4qrCsmkyp2zKUeWW0XuCH8rOQ0TO\r\n/Pf8JJ/NP39NxgCpGfiosZX1OU/+UF3dLWKL7dcfXzqBoIkb1Bc36yVU5aBN\r\nz+NHfN74/x0aCjP/tlAq9K3b2SYa8agZ6R2VlDWgQuaPcKd9WXE8WCP3ZPmJ\r\nW3lKVV0R3w/tE31oTcbQsOU13j4I6KHaUC1Tv0mToT0lefVwA8bD2TgpBbRJ\r\nqCbMYp2YUOrZlKqOlGYciS8TT5ew8FKKooxl88yZOzKoNe2L+Vk4+fI4LUQp\r\nb+uJqcv53Gh6sk0U1zUXzDzOBpDU++phgdTf9fJ3ix3yxulVkFADW1rBxss+\r\nMbuDFzglcD3mrcetVNuktKC1sF25Le93srmGGJ5r2pmoJsd3zDSZ2fFxHK6K\r\nX7bCQ4hi+ir6GbpWRyHFXOohCiiZaUVJiE+HtJlzR7PGL+5frlBUneUvq3jC\r\nYbYsVPi9mYN9Y8+QSa8U6q4Eb9o4vfiN+GmJUZp90gdRxKZxgj3wXqYHr0RL\r\np0908KGPbIGe+UfYCnvGE+b6FOOtQyJo2+cssEcNEhRiB6wu5W3WMa1VriG1\r\nAnaiQFzYfRZ0OnaGChxBU8xdr1AUhCtGBvc=\r\n=lbtH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"omranjamal","email":"o.jamal97@gmail.com"},"directories":{},"maintainers":[{"name":"omranjamal","email":"o.jamal97@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exit-on-change_1.0.2_1664307800309_0.5186521377364015"},"_hasShrinkwrap":false},"1.0.3":{"name":"@bonton/exit-on-change","publishConfig":{"access":"public"},"version":"1.0.3","main":"dist/index.js","scripts":{"build":"tsc","build:watch":"tsc --watch --preserveWatchOutput"},"devDependencies":{"typescript":"^4.8.2"},"dependencies":{"chokidar":"^3.5.3","pirates":"^4.0.5"},"license":"MIT","author":{"name":"Omran Jamal","email":"omran@bonton.app","url":"omranjamal.me"},"repository":{"type":"git","url":"https://github.com/bonton-connect/exit-on-change.git"},"keywords":["nodemon","kill","exit","change","require","development"],"description":"Kill your node process if any of the imported or required files change.","licenseText":"Copyright 2022 Bonton Connect\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@bonton/exit-on-change@1.0.3","dist":{"shasum":"fb83790f690b6e2e6d4fb0b4ab1282882015d106","integrity":"sha512-JLrxOtae/tW8ECQ3WTiJNo8pQgPL8mqOhTnXE1ypYlZY4VI7hZ9gX94QwlAU4Kyjv1odKYyKNUuBpG0tYLVD/w==","tarball":"https://registry.npmjs.org/@bonton/exit-on-change/-/exit-on-change-1.0.3.tgz","fileCount":14,"unpackedSize":46851,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICsCRJJtcapjo9krWzxR+qD79ZsEUTFOM74vMVKVIAcaAiBUid1AJ+CYnv9k5ScnOxJLS73vKtI6+Ptc8KiPBAsdQg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNBBOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrhcw/9G2mUpgRovxpBunnzCyHKoCLlrfg8zv93RHVmkrjKqSfC0oJ1\r\n1znhVurVue4L3OMEq7hx4KrSafjL/RK18xZvt0Ry2bJzKeVHicBErxliHnuN\r\nNAdFEU7i+PqMcqeAZUGkYqxc17Dr8QQWS5OLUHwJN3APzNmkxi/cH9Bar+q3\r\n1K9iFkei7oN4cJz64Fyl28wVXa9ST+Xg26FIauka24bWnWObyZia8Y5ldP3+\r\nLLzUgxahP7+Pkl8PEeSJe/XzpeuYhEymluLqFy9vGj3gPRjYFXFlZ5t6cw+1\r\nygVIbuJkIq/Xabyq4Pa/AG7BqPQHDjDh3bHvIHuiDEqCjTZshT63n4KE26C6\r\n2gWVntryl+AQvp4y2wlYflz9YU6myNS5lWb5x7LdOVIwdwC6iq1/+Ps0lr1A\r\nsoGWEmL+GZ6rVXyxLHQGgRtFu2fJnZRsy4GrB5UryAnPmUHym7wCYkhOY1jA\r\n3CN2mkaYsqAvdTcy6D8FjEEqQfqFDjNSzxHRh5SgrPEUS1Pmso5t+TeCbN+A\r\na/Ldj/TqFRpp4daqawKXJftQD1Z1NhdQVr+SH1HY25ZG/06KGXaSEPw0UEbw\r\ndqcUBcqrbIXB3DB31kEIvnT+waH7L93Bo1b5mWDcDnmWdhN8xMbXbJPlBq6m\r\n7gxFRPAYpPGyFvzp12/tG10uPpBPM7NwFKE=\r\n=+Dz6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"omranjamal","email":"o.jamal97@gmail.com"},"directories":{},"maintainers":[{"name":"omranjamal","email":"o.jamal97@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exit-on-change_1.0.3_1664356430456_0.3788094769720607"},"_hasShrinkwrap":false},"1.0.4":{"name":"@bonton/exit-on-change","publishConfig":{"access":"public"},"version":"1.0.4","main":"dist/index.js","scripts":{"prepublishOnly":"yarn build","build":"tsc","build:watch":"tsc --watch --preserveWatchOutput"},"devDependencies":{"typescript":"^4.8.2"},"dependencies":{"chokidar":"^3.5.3","pirates":"^4.0.5"},"license":"MIT","author":{"name":"Omran Jamal","email":"omran@bonton.app","url":"omranjamal.me"},"repository":{"type":"git","url":"https://github.com/bonton-connect/exit-on-change.git"},"keywords":["nodemon","kill","exit","change","require","development"],"description":"Kill your node process if any of the imported or required files change.","licenseText":"Copyright 2022 Bonton Connect\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@bonton/exit-on-change@1.0.4","dist":{"shasum":"b3d57c8e3f0de48b81620e3888cbf943f3a87ac7","integrity":"sha512-JcmdYIfqSk5qLcHjuUWCcDf38ZfbuKiNHcUpJQNQJE25YbRxOzQiBwVhlpBQGhFifrVWJqJUDNDzVAfkTjHkVQ==","tarball":"https://registry.npmjs.org/@bonton/exit-on-change/-/exit-on-change-1.0.4.tgz","fileCount":4,"unpackedSize":4664,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9K7AdPtVNofZdZ1nAOWKkj0vXHUb4cVakX3hGrHzNZAIgUwnbVg+2Y9N3Er3gXVqkDdp+mVoL/oB42oix617JA/w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNBQ/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHDQ//QhkQqiEJi1Gyza1aqAili62uIDtRWkjNqmC8TMxc7Yyi19SE\r\n/8UT3k2aNQzSEhGvMKFYyUvlVj1+CibM7NDSWAyZQA4uw9cy2OAsbQZvAXNE\r\nijFJkt1vhs2SOQGMl3IOGlwaIobCis6YnKbSHC87y/9Q7ddXV+z5pfyyyf3A\r\nr+0r1APJDIX1rIIV5gffBzvkqs40BwhFHntGbOxfrZi/Z/qWvTtDqSxV6/D8\r\nKGjQHok8PAEtQHdpALh1wMB9POaBcu7aVLy9r/Pr7tXMQwl0r7jast3i3vIk\r\nHAMSeLIK5RguFMJ5cymRWBCxJGiXdQNINPyd3jGiB3oYMb8tkEfXDNE/kxSy\r\nmICmd28Gq3Ys705SyFLLrkzz+iwamfEqgkNljZtljdtCwDVQ16M4kfn3PR5t\r\nsnqY0UC+fyQhT3Rl8Cm2VImNkXQrleBp1Yt0Yg5JdvPhXGQhcxCqVkb+bCZe\r\nglK2ks58nZrOSkIke9Tzq9v0Go4+N/BA+8kj8J0+7oWCpYTAkpNs9CuDH1h7\r\n1PjpSeDZrYmlac+U6M5oF3S3qwi0iIH0X0QNoi1lSin3SN20Wb0pm2Oinm2b\r\ncJt8yuMI2kupHGk+GIh2exXhYaMuLKqBfl7GbEtVqCWxYItsZEOaVan/2Ptt\r\nH6n2L0jpdiESkgt2fjkqY6623AWWMWgv/6Y=\r\n=C+ZX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"omranjamal","email":"o.jamal97@gmail.com"},"directories":{},"maintainers":[{"name":"omranjamal","email":"o.jamal97@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exit-on-change_1.0.4_1664357439094_0.12073253388643757"},"_hasShrinkwrap":false},"1.1.0":{"name":"@bonton/exit-on-change","publishConfig":{"access":"public"},"version":"1.1.0","main":"dist/index.js","scripts":{"prepack":"rm tsconfig.tsbuildinfo && mkdir -p dist && yarn build","build":"tsc","build:watch":"tsc --watch --preserveWatchOutput"},"devDependencies":{"typescript":"^4.8.2"},"dependencies":{"chokidar":"^3.5.3","pirates":"^4.0.5"},"license":"MIT","author":{"name":"Omran Jamal","email":"omran@bonton.app","url":"omranjamal.me"},"repository":{"type":"git","url":"https://github.com/bonton-connect/exit-on-change.git"},"keywords":["nodemon","kill","exit","change","require","development"],"description":"Kill your node process if any of the imported or required files change.","licenseText":"Copyright 2022 Bonton Connect\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@bonton/exit-on-change@1.1.0","dist":{"shasum":"b0dd885cd42b84b9fee0f0573fcd7f1c269e1a55","integrity":"sha512-9Bajs5ZQHjXb8QtnMVm5oDKb3OmpG2kqc1wclWP9QPKr97AsOUxruKnCfhWoJUSHVQWc5+30PhjklnPtmeGtUg==","tarball":"https://registry.npmjs.org/@bonton/exit-on-change/-/exit-on-change-1.1.0.tgz","fileCount":11,"unpackedSize":11289,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQbvFlDmIzPkDs7AvzlxZUqPB0S4suYAzIyCftt69JEQIhALWNJqztnGPn9OLxl9hJANTQ7fKlyZgrsqkRbRfOVC3q"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNBY1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr56Q/9Hjiu/oHtMoPBfrpuMAdOKsT7wmnOgeKQavHyUlskx6nwO0hr\r\n8mrKiFSVJ9bUDNOc1i3Gpan5Bdl4sk5TOIA7q1winoZdb7knu5NeFharvZKx\r\nHYuyrE/xL1zWXxrEAgkmg5gWl9PfJgfKqG/Lq85ekEziarjtiNfWYKB35FJ7\r\nJcsWXdd2gTaM/fWQGtKdJPCuaxn2pVFtzFoMHkN1UiaTZm6t0FdQ3h6stkO3\r\no96ol/mmzLubfzucdqwxqlWPUDPGPfos4IzoJRS9bB1eaS7NXA+zYjz0KvFu\r\njUFx147wLazwtqMnxTlchO4h1hXbFTFzhCvgMYg6ab4lJHj4Rv/GQSE+QWhh\r\n8UOOUqy70LX9jw6Gdsi2vB+XnPxAciGxIf8j3h5opbUazKej3Lt0s6fpgpW4\r\nx7izu58d+TtAWPc2Mu5zOdjW9i6BORTmTN5E0eO0RMXVgLQNeK19nG/lla7d\r\nSfceN/scBHE5rysb3JcCH6x1UT8Xkhln0L2VwuM/sMQx81LZ3nZUMMH3dCIJ\r\nwg1nhbAYrU5+ZKIG5xAkGUkZ5nJmyV9179T90Hc2fT5l3cbwjm1Vnf94i9H+\r\nrsgnwaa8lIngYPnC++bktzJucVvFjM/vLexlJ5EpXLJCDIvHdFhiIZfJ6BEG\r\nHMZuGBbFvQWwcuJSXmJnzsUogiNynXmsx54=\r\n=WZuC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"omranjamal","email":"o.jamal97@gmail.com"},"directories":{},"maintainers":[{"name":"omranjamal","email":"o.jamal97@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exit-on-change_1.1.0_1664357941278_0.6760493667833929"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-27T19:25:00.028Z","1.0.0":"2022-09-27T19:25:00.205Z","modified":"2022-09-28T09:39:01.548Z","1.0.1":"2022-09-27T19:26:57.293Z","1.0.2":"2022-09-27T19:43:20.534Z","1.0.3":"2022-09-28T09:13:50.710Z","1.0.4":"2022-09-28T09:30:39.241Z","1.1.0":"2022-09-28T09:39:01.406Z"},"maintainers":[{"name":"omranjamal","email":"o.jamal97@gmail.com"}],"description":"Kill your node process if any of the imported or required files change.","author":{"name":"Omran Jamal","email":"omran@bonton.app","url":"omranjamal.me"},"license":"MIT","readme":"# exit-on-change\n\nKill your node process if any of the files that\nyou `require` changes.\n\n## Installation\n\n```bash\nyarn add --dev @bonton/exit-on-change\n\n# or\n \nnpm install --save-dev @bonton/exit-on-change\n```\n\n## Basic Usage\n\n### Recommended: On The CLI\n\n```bash\nnode -r @bonton/exit-on-change/dist/exit-on-change .\n```\n\nThis imports `dist/exit-on-change.js` before importing\nyour own code and executing.\n\n### Import in `index.js` & Pass Environment Variables\n\n```javascript\nimport '@bonton/exit-on-change';\n\n// OR\n\nrequire('@bonton/exit-on-change');\n```\n\nOnce this is added, pass an environment variable like\n\n```bash\nEXIT_ON_CHANGE=1 node .\n```\n\n### Imperative\n\n```javascript\nimport {exitOnChange} from '@bonton/exit-on-change';\nexitOnChange(true);\n\n// OR\n\nrequire('@bonton/exit-on-change').exitOnChange(true);\n```\n\n## How It Works\nThis package uses [`pirates`]() to hook into\nnode's module import system and then users [`chokidar`]()\nto watch for changes in required files.\n\nThe process is not killed immediately but rather after\na `100ms` delay by default. See below on hwo to change\nthe delay.\n\nThis is done so that changes can accumulate so as not to\ntrigger too many restarts.\n\n## Tracked Extensions\n\n`.js`, `.jsx`, `.ts`, `.tsx`, `.json`, `.mjs`, `.cjs`\n\n## Controlling Exit Timeout\n\nDefault Timeout: `100ms`\n\n### CLI / Main File Import\nJust set the `EXIT_ON_CHANGE_TIMEOUT` environment\nvariable to the amount of time in milliseconds.\n\n```bash\n# if CLI only\nEXIT_ON_CHANGE_TIMEOUT=500 node -r @bonton/exit-on-change/dist/exit-on-change .\n\n# if imported in main file\nEXIT_ON_CHANGE_TIMEOUT=500 node .\n```\n\n### Imperative\nThe second argument takes the time\nin milliseconds.\n\n```javascript\nimport {exitOnChange} from '@bonton/exit-on-change';\nexitOnChange(true, 500);\n\n// OR\n\nrequire('@bonton/exit-on-change').exitOnChange(true, 500);\n```\n\n## Restart The Process (like `nodemon`)\n\nPlease use your container orchestration tool's\nnative restart functionality.\n\n### Example: Docker Compose\nAdd the following property to your service definition\n\n```yaml\nversion: '3'\n\nservices:\n    your-service:\n        ...\n\n        restart: unless-stopped # <-- this one\n        \n        ...\n\n```\n\nSetting `restart: always` is also valid, if your\nuse-case demands it.\n\n\n## Why `exit-on-change`?\n\n`nodemon` is great, but what if you are tired\nof listing dependencies in `nodemon.json` because\nyour dependencies are in the parent folder and that\n`node_modules` directory is shared among all the other\nprojects in your yarn workspace? That's why.\n\n### Why Kill The Process? Why Not Just Restart?\n\nYour container orchestration tool like `docker compose`\nis more than capable of restarting services, and it\nprobably does it better and cleaner too.\n\n## License\n\nMIT\n","readmeFilename":"README.md","keywords":["nodemon","kill","exit","change","require","development"],"repository":{"type":"git","url":"https://github.com/bonton-connect/exit-on-change.git"}}