{"_id":"jsnes","_rev":"20-5f2e94a11200f3197967fba2721e418a","name":"jsnes","dist-tags":{"latest":"2.1.0"},"versions":{"0.0.0":{"name":"jsnes","version":"0.0.0","license":"BSD","_id":"jsnes@0.0.0","maintainers":[{"name":"reggi","email":"thomas@reggi.com"}],"homepage":"https://github.com/bfirsh/jsnes","bugs":{"url":"https://github.com/bfirsh/jsnes/issues"},"dist":{"shasum":"cf000c2cffb0888d23668a2e2ffc49961cd37a18","tarball":"https://registry.npmjs.org/jsnes/-/jsnes-0.0.0.tgz","integrity":"sha512-BEA8fYAfLZSS+CQmZ7kKBrca8edSHLrdNYkNHLfna9E7TylBTyHnc1AdhzUQUkfXqfRrvAO6b2a9u1CB5xEDPw==","signatures":[{"sig":"MEUCIQCUOIK4X1GVMshDmS8Ow44xJUvMZimLJBrcae1CIjLeDAIgAgxq6/4FqupYrnG24uVDThff/z/r1e+hQ9KFkngI1iY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"cf000c2cffb0888d23668a2e2ffc49961cd37a18","gitHead":"62822838d3e15ef541b0074f20183d1311ea578b","scripts":{},"_npmUser":{"name":"reggi","email":"thomas@reggi.com"},"repository":{"url":"git://github.com/bfirsh/jsnes.git","type":"git"},"_npmVersion":"1.4.28","description":"A JavaScript NES emulator","directories":{},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-concat":"~0.3.0","grunt-contrib-jshint":"~0.5.4","grunt-contrib-uglify":"~0.2.1"}},"0.1.0":{"name":"jsnes","version":"0.1.0","author":{"url":"https://fir.sh","name":"Ben Firshman","email":"ben@firshman.co.uk"},"license":"GPL-3.0","_id":"jsnes@0.1.0","maintainers":[{"name":"jsnes-travis","email":"ben+jsnes-travis@firshman.co.uk"},{"name":"bfirsh","email":"ben@firshman.co.uk"}],"homepage":"https://github.com/bfirsh/jsnes","bugs":{"url":"https://github.com/bfirsh/jsnes/issues"},"dist":{"shasum":"2b032512f66f3557abaf82eb96b30655fa556796","tarball":"https://registry.npmjs.org/jsnes/-/jsnes-0.1.0.tgz","integrity":"sha512-zyVGxqPJDwAyeH3vHQ3KvtJ82J5c4mu8s3uxnpTA9Q3bO9WBmBhRntGylbSyeZWbWISiAYnPVgPlZ81AxYMGYA==","signatures":[{"sig":"MEQCIFAO3OivJhWyq+PJMNEgbacnfr8zFvdMxK98B/r8ynGMAiAjEBGe0AjVhwN96x0rh1LYq+KOc9/cwjK9/7hRcwu6yA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/index.js","gitHead":"29bfceaed63b3b91cfca6ca80abca40cdc286620","scripts":{"test":"mocha ./test/*.spec.js","build":"webpack","prepublish":"npm run build","test:watch":"mocha -w ./test/*.spec.js"},"_npmUser":{"name":"jsnes-travis","email":"ben+jsnes-travis@firshman.co.uk"},"repository":{"url":"git://github.com/bfirsh/jsnes.git","type":"git"},"_npmVersion":"5.3.0","description":"A JavaScript NES emulator","directories":{},"_nodeVersion":"8.4.0","devDependencies":{"chai":"^3.5.0","mocha":"^3.3.0","sinon":"^2.1.0","jshint":"^2.9.5","webpack":"^2.4.1","jshint-loader":"^0.8.4"},"_npmOperationalInternal":{"tmp":"tmp/jsnes-0.1.0.tgz_1504804400894_0.14948957273736596","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"jsnes","version":"0.3.0","author":{"url":"https://fir.sh","name":"Ben Firshman","email":"ben@firshman.co.uk"},"license":"GPL-3.0","_id":"jsnes@0.3.0","maintainers":[{"name":"jsnes-travis","email":"ben+jsnes-travis@firshman.co.uk"},{"name":"bfirsh","email":"ben@firshman.co.uk"}],"homepage":"https://github.com/bfirsh/jsnes","bugs":{"url":"https://github.com/bfirsh/jsnes/issues"},"dist":{"shasum":"eece1635a522b273ff54bd461e2d33c372169f08","tarball":"https://registry.npmjs.org/jsnes/-/jsnes-0.3.0.tgz","integrity":"sha512-EFhcVsiReJTQFINwcpoT4T5E3Nc1BVK2w9RUu0RxntLeinphcMg/B9/pqsde4cLl3asa//tz0OEOSi3vkQqiHA==","signatures":[{"sig":"MEYCIQCeuHPxM9VDlW/5ksB+FgHGCI7TAXG3JsYcNBOVVyXGpAIhAMoTgsyI1QkcKJbc7JFwLZ11IxCfWtEqxpsty9BmVrMO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/index.js","gitHead":"ac4de1ee8529de40a4ba75aec35355cdb97b3e18","scripts":{"test":"mocha ./test/*.spec.js","build":"webpack","prepublish":"npm run build","test:watch":"mocha -w ./test/*.spec.js"},"_npmUser":{"name":"jsnes-travis","email":"ben+jsnes-travis@firshman.co.uk"},"repository":{"url":"git://github.com/bfirsh/jsnes.git","type":"git"},"_npmVersion":"5.3.0","description":"A JavaScript NES emulator","directories":{},"_nodeVersion":"8.5.0","devDependencies":{"chai":"^4.1.2","mocha":"^3.5.3","sinon":"^3.3.0","jshint":"^2.9.5","webpack":"^3.5.6","jshint-loader":"^0.8.4"},"_npmOperationalInternal":{"tmp":"tmp/jsnes-0.3.0.tgz_1506436953454_0.7613228072877973","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"jsnes","version":"1.0.0","author":{"url":"https://fir.sh","name":"Ben Firshman","email":"ben@firshman.co.uk"},"license":"GPL-3.0","_id":"jsnes@1.0.0","maintainers":[{"name":"jsnes-travis","email":"ben+jsnes-travis@firshman.co.uk"},{"name":"bfirsh","email":"ben@firshman.co.uk"}],"homepage":"https://github.com/bfirsh/jsnes","bugs":{"url":"https://github.com/bfirsh/jsnes/issues"},"dist":{"shasum":"84095fcc9feb8aa9017b59519a8acbce77bc4dec","tarball":"https://registry.npmjs.org/jsnes/-/jsnes-1.0.0.tgz","integrity":"sha512-I5ixHPTu3XJWRpBebxyHo4YdoPYXj0fLpWM31E78mpKcyr2ARoX/ZVXPl1q7o1pY0fRMgmy+hyyUfh4lkm7JsQ==","signatures":[{"sig":"MEUCIQC/PMTRSN3Hdx6ybfs4EDXcHMmlnVeo9AhRtbtCZAbb8gIgdR5MacJljDOjfsWUuq7WndM5xjMplV/hYYeYHoQ0zng=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/index.js","gitHead":"0f87926b1cd701576c8d22e6d1f054eab04f4acc","scripts":{"test":"mocha ./test/*.spec.js","build":"webpack","prepublish":"npm run build","test:watch":"mocha -w ./test/*.spec.js"},"_npmUser":{"name":"jsnes-travis","email":"ben+jsnes-travis@firshman.co.uk"},"repository":{"url":"git://github.com/bfirsh/jsnes.git","type":"git"},"_npmVersion":"5.6.0","description":"A JavaScript NES emulator","directories":{},"_nodeVersion":"8.9.4","devDependencies":{"chai":"^4.1.2","mocha":"^5.0.0","sinon":"^4.1.6","jshint":"^2.9.5","webpack":"^3.9.1","jshint-loader":"^0.8.4"},"_npmOperationalInternal":{"tmp":"tmp/jsnes-1.0.0.tgz_1516994308964_0.9818760100752115","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"jsnes","version":"1.0.1","author":{"url":"https://fir.sh","name":"Ben Firshman","email":"ben@firshman.co.uk"},"license":"GPL-3.0","_id":"jsnes@1.0.1","maintainers":[{"name":"bfirsh","email":"ben@firshman.co.uk"},{"name":"jsnes-travis","email":"ben+jsnes-travis@firshman.co.uk"}],"homepage":"https://github.com/bfirsh/jsnes","bugs":{"url":"https://github.com/bfirsh/jsnes/issues"},"dist":{"shasum":"d078b060feede9489f19b25713d59592330f34a3","tarball":"https://registry.npmjs.org/jsnes/-/jsnes-1.0.1.tgz","fileCount":27,"integrity":"sha512-ks+rUM+YyZUNKiitZCVQzNIeFpu5XfXPf8h+fvFlsXeb49M78jPPQBSN4i/Alm76kNhc6CHw2tkpdl7Yj4n19Q==","signatures":[{"sig":"MEQCIFeq5EIJXt/rb5cON0iUtqKr7cXV2BFu0V2239heH/G9AiACUBVj4AOyOO/qrol3Q+vxt207xtmujO2V7MgS5JBDHw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1364037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa5xjOCRA9TVsSAnZWagAAsXUQAJl9THFQlbdClfQY7Oyo\n7KIJa0+UUvS2gzvbqHd0rD7w2PbihMWkf7xdqh+APd7bgWPXEWCksQm46pMc\ntYQo+X2uA/orAryZqc5pJzHxbLs/eqyDBhOl9Rc8s2n5+Qx3g3H311g7FhhW\nDJYjJibWAED2D5GHmVGh++vsO8EGK/63R6MhtpkdM82RLkjAOQ1vVfCpg6Ri\nlVI88cVJP3TBSKgTrJzMPu52i79beiOh+kSbOd2dJ0IjerL4f9m6gYy8f6Np\nwYQOlajOX7sYGQrSK4KQEqRHYkLkj7WiWIiJvuFZhfbkXFpgl4jB8GUFquwJ\nDAhotpbGc+ZPgH9v5EAl+dydA/wNkh/u/mHNeRmWGdfquBa88rQqdqXz1gfc\nLsRMPcJIQQKy2WNg6XmFq3hMETrpADW9KovRnYf6qClnJjvcyz2BrBy8z6f7\nb8lEiV9XPcZ1UPpEJjXSnZrQPBNKGeai1djVOCQMC8QqqzaHI5r/rPwzL/yi\niuYDCMM9CpZO8X7ufS8SA+7ZLZ/0R3MWWn3v6o6MKv+EMfNeecziIDvXfvtQ\nauN1YIX/Y9oHI3Ew6K3WlbuWhoEo+q1SHx1+jkwso5i+ELP5ny1coW74REy4\n40yPv24YGXUhMxIYi4o5Ad64UTEAZ8spUJ6fZcCUW0f3l/PNM+CUZ5s+wYGT\nJaLY\r\n=kEV8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"450cea880f911b2dfbc5aaa066ad0db9faa37fa0","scripts":{"test":"mocha ./test/*.spec.js","build":"webpack","prepublish":"npm run build","test:watch":"mocha -w ./test/*.spec.js"},"_npmUser":{"name":"jsnes-travis","email":"ben+jsnes-travis@firshman.co.uk"},"repository":{"url":"git://github.com/bfirsh/jsnes.git","type":"git"},"_npmVersion":"5.6.0","description":"A JavaScript NES emulator","directories":{},"_nodeVersion":"8.11.1","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.0.0","sinon":"^4.3.0","jshint":"^2.9.5","webpack":"^3.9.1","jshint-loader":"^0.8.4"},"_npmOperationalInternal":{"tmp":"tmp/jsnes_1.0.1_1525094605722_0.9008189302079066","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"jsnes","version":"1.1.0","author":{"url":"https://fir.sh","name":"Ben Firshman","email":"ben@firshman.co.uk"},"license":"GPL-3.0","_id":"jsnes@1.1.0","maintainers":[{"name":"bfirsh","email":"ben@firshman.co.uk"},{"name":"jsnes-travis","email":"ben+jsnes-travis@firshman.co.uk"}],"homepage":"https://github.com/bfirsh/jsnes","bugs":{"url":"https://github.com/bfirsh/jsnes/issues"},"dist":{"shasum":"25ff850d473a6cc17176e03daca6cd95c877c56f","tarball":"https://registry.npmjs.org/jsnes/-/jsnes-1.1.0.tgz","fileCount":31,"integrity":"sha512-E0UJ68aiOoC3beU/I3Zq61SRK6wz1re3ddzURnkn5bv489GYUI0vh++YOQ3Mz/7GtyaYFXgm7P+kXpfIqHOheg==","signatures":[{"sig":"MEUCIQCY5P0I3omhcJ4ZcGw5XXyWEPqydY4F0Lrf6ZnSlB4LAAIgOo8GkuWu+8ONghE5IwV7ncdiCaKXnxOCX8fzkrczmsE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1521953,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZ0a7CRA9TVsSAnZWagAAE30P/A62jBcIanDHUUOY2Pev\n9cP03i6TVkOFh1Zry2yTRT2X5JC8RpHOO9b6yiQ0jQNNQWO6tKjPCQWWzSBC\nROP01mxUmCpjm3pj+QzmO9MPsgNkYtdHOHgjjPP3tDAJAfJG9Yir1hNOeLK1\njNALYQe535aY8WByNnTCGKuvDSkfyk3WMFAolx3rZavQAsBGNGAo056VrmjS\nDTU+pEf51FXGM7S/VgVpjFfxPgvC8uaaTwz8lKK87OyyS5vvTK8K+HIv4s/2\nxgp5YflfD61xC8T3Vdh5qIMH7vwMeNEsPV/0H9MSlRPWE6VaIR+WmvZuShYD\nn5zyBi8Ln5Keu+GyfjLuDeRHmejgo+N7bCwXKgAySLEnrAsd+uE8dK/n2cqv\n8WFgQxA7/S3XZ3QIkFIOaUpE62JHJCvG9vjeExTD5PncdhW+Bn7PnYHYdOr6\neYxPx0EUTlWTzzC2O+P5aUZOXvwBKHXSTmqP63M1o3oLH5LZQ5FFQjuxBbag\n8gadyHTgLNWjo9yJVPZuY4YD0qqvyLoo96uDu/ICO1PZ5KQB7KtmA/744vqy\n9sP4lq1r18UR0fz5WNtZ6P6UPLR2GFkX93GYCOMxA1HZ2D8pG4OPY9TK5fkM\nXWdq4pgUMMJOxze80RqINu3zgb/VZ8IGMWA/qA9hVwRKqy47SJoh2r1Vg8iO\nTm+0\r\n=6ZYj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"0ae34ddb6ada25d7c93cb7c0f27f7080310ba6cb","scripts":{"test":"prettier-check src/**/*.js && mocha ./test/*.spec.js","build":"webpack","format":"prettier --write src/**/*.js","prepublish":"npm run build","test:watch":"mocha -w ./test/*.spec.js"},"_npmUser":{"name":"bfirsh","email":"ben@firshman.co.uk"},"repository":{"url":"git://github.com/bfirsh/jsnes.git","type":"git"},"_npmVersion":"6.5.0","description":"A JavaScript NES emulator","directories":{},"_nodeVersion":"11.9.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.0.0","sinon":"^7.1.0","eslint":"^5.0.0","webpack":"^3.9.1","prettier":"^1.14.3","eslint-loader":"^2.0.0","prettier-check":"^2.0.0","eslint-config-prettier":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/jsnes_1.1.0_1550272185208_0.1603374973888516","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"jsnes","version":"1.2.1","author":{"url":"https://fir.sh","name":"Ben Firshman","email":"ben@firshman.co.uk"},"license":"Apache-2.0","_id":"jsnes@1.2.1","maintainers":[{"name":"bfirsh","email":"ben@firshman.co.uk"},{"name":"jsnes-travis","email":"ben+jsnes-travis@firshman.co.uk"}],"homepage":"https://github.com/bfirsh/jsnes","dist":{"shasum":"ca3718b7b28c00741142a73b88e39e177d14b1ce","tarball":"https://registry.npmjs.org/jsnes/-/jsnes-1.2.1.tgz","fileCount":40,"integrity":"sha512-Gn+lnv5B5c/TVwFSc8vzo7amiSogRyfMI9UL7VjYgKDrlTLf7GKuK2WD+t0gEcLbzh/NfMpkIlopzN/3cq760A==","signatures":[{"sig":"MEUCIDfSku1r0tZcGH5egG5ByAX8kpIBtG6cjKlkdJBJ6N9lAiEAouRU7wxBsVvNHwNHxY2NAGLvaZbC9kUOIRI5Ttc7nOA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1410004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJRfMCRA9TVsSAnZWagAAbwUQAI7q9lZ7Ib2EL4TIQZn6\nBLi08nJPGh2IGoXF1oik/MALClqflMRRcyg7tBTCZbkHG9UX3P2rCJF6Dtel\nEyupFxkKEDeVVtqc6y67y0msPdFIgqz0SbgT3AlNbwo1AWuKXmt8SjeqKKi3\npj6FVzXU1cZblCa/0e/j5ifEtHOcWDBejgoTLW9yKQ8KI7FwrdQ9PngdTWFw\nIsvV8xW1ZhwxC6/yeailHIa1jbiUz6RNfEuFcUTlj3A0sP5t0Y71LFKSIrK0\nxPSzHNkAGFPZzzyG7nBKmkK8lUmG6dEgR78Dzn9qZrOao/poyVv+d1WMrm6T\nfww5WyfjDTdaSu96m/I+Y6pvS+2XyscfDokMVREeSeNUcJXE/vwrZbUk2sU1\nYKsQoXSoIUjEKM+j79VDHYbAdkTkP2SKkXfR85/1I4j1IxDLftMnSTsq3fYL\nVi1aEtFNSgG490uJGcvK4JS359sfrTb+Ve6PSyD9OkhuuRpBVkOmPh2y320x\nHQRmuYRvqLfuMcwIjfTFe/GhGTcutliHCYluQBZyqnSA+O9Cx/sFZjjU5pCB\niF/lVa+SmttyzTdrgE9cXwVuXCVrbIu0h5QQ6xSxyOXv6/cZJXX8shSdxU2B\nerfBkD4QBP/vSGj6DzHfDaLSFKRoKtvv93hPAxjTwbqWut8qOJy25eG/QgyN\nU8vj\r\n=3VsZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","scripts":{"test":"prettier-check src/**/*.js && mocha ./test/*.spec.js","build":"webpack","format":"prettier --write src/**/*.js","prepublish":"npm run build","test:watch":"mocha -w ./test/*.spec.js"},"_npmUser":{"name":"bfirsh","email":"ben@firshman.co.uk"},"repository":{"url":"git://github.com/bfirsh/jsnes.git","type":"git"},"description":"A JavaScript NES emulator","directories":{},"licenseText":"\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   Copyright 2020 Ben Firshman\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^8.1.0","sinon":"^9.0.1","eslint":"^6.8.0","webpack":"^3.9.1","prettier":"^2.0.5","eslint-loader":"^2.0.0","prettier-check":"^2.0.0","eslint-config-prettier":"^6.10.1"},"_npmOperationalInternal":{"tmp":"tmp/jsnes_1.2.1_1629820875924_0.2714470312462196","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"jsnes","version":"2.0.0","author":{"name":"Ben Firshman","email":"ben@firshman.com"},"license":"Apache-2.0","_id":"jsnes@2.0.0","maintainers":[{"name":"bfirsh","email":"ben@firshman.com"}],"homepage":"https://github.com/bfirsh/jsnes","bugs":{"url":"https://github.com/bfirsh/jsnes/issues"},"dist":{"shasum":"071bbc4ff0a3912ee12b4e836d426d8f52100f9a","tarball":"https://registry.npmjs.org/jsnes/-/jsnes-2.0.0.tgz","fileCount":55,"integrity":"sha512-U0VrCFWq4INFx/h7WfyDuNnjTpHairA7PyJ4WCmsR35k8FM2280MTJ4EUYH2PL4gPyGwsP5mOBCg4DrBhS+Jfg==","signatures":[{"sig":"MEUCIQDd39IaP41BOObUg2CqD9O0UJQ3AlDolHmaBqbQJ8mchgIgR3MmeyIUxyzi/5iBF5/sCSXi4gt7+SxaaOCbsgaNtlU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/jsnes@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1610656},"main":"src/index.js","type":"module","exports":{".":{"types":"./index.d.ts","default":"./src/index.js"}},"gitHead":"3ad35d78fe5e42137ece2714ea5cd17184730ae2","scripts":{"test":"npm run typecheck && prettier --check '**/*.{js,jsx,css}' && node --test ./test/*.spec.js","build":"webpack","format":"prettier --write '**/*.{js,jsx,css}'","typecheck":"tsc --noEmit","test:watch":"node --test --watch ./test/*.spec.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2bdd02aa-6123-40e5-8334-b48689471b75"}},"overrides":{"eslint-webpack-plugin":{"eslint":"$eslint"}},"repository":{"url":"git://github.com/bfirsh/jsnes.git","type":"git"},"_npmVersion":"11.8.0","description":"A JavaScript NES emulator","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.2","webpack":"^5.100.2","prettier":"^3.6.2","@eslint/js":"^10.0.1","typescript":"^5.8.3","@types/node":"^25.0.2","webpack-cli":"^6.0.1","eslint-webpack-plugin":"^5.0.2","terser-webpack-plugin":"^5.3.10","eslint-config-prettier":"^10.1.8"},"_npmOperationalInternal":{"tmp":"tmp/jsnes_2.0.0_1772386944086_0.27299122865091974","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"jsnes","version":"2.1.0","description":"A JavaScript NES emulator","homepage":"https://github.com/bfirsh/jsnes","author":{"name":"Ben Firshman","email":"ben@firshman.com"},"main":"dist/jsnes.js","exports":{".":{"types":"./index.d.ts","import":"./src/index.js","require":"./dist/jsnes.js","default":"./src/index.js"}},"repository":{"type":"git","url":"git://github.com/bfirsh/jsnes.git"},"license":"Apache-2.0","type":"module","scripts":{"build":"webpack","typecheck":"tsc --noEmit","test":"npm run typecheck && prettier --check '**/*.{js,jsx,css}' && node --test ./test/*.spec.js","test:watch":"node --test --watch ./test/*.spec.js","prepublishOnly":"npm run build","format":"prettier --write '**/*.{js,jsx,css}'"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.0.2","eslint":"^10.0.2","eslint-config-prettier":"^10.1.8","eslint-webpack-plugin":"^6.0.0","prettier":"^3.6.2","terser-webpack-plugin":"^5.3.10","typescript":"^6.0.2","webpack":"^5.100.2","webpack-cli":"^7.0.2"},"overrides":{"eslint-webpack-plugin":{"eslint":"$eslint"}},"gitHead":"cbad9f1db57dfb275b90ffa26f9c479c355d8d5c","_id":"jsnes@2.1.0","bugs":{"url":"https://github.com/bfirsh/jsnes/issues"},"_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-LUa++E5Dfs1A6ZYB5HiSOR4JrUzrZEXGLZ5Imczhu9lkg7f+94SqnLZ/MXwGa7oc02+j/xYyHR0azGQ6LCU68g==","shasum":"3abe3b1261accc7b3d9c4e4763cd58a8e4660e4f","tarball":"https://registry.npmjs.org/jsnes/-/jsnes-2.1.0.tgz","fileCount":56,"unpackedSize":2026719,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/jsnes@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIETOHZMwSvPovFVtiC5iKATqYK9oNkQVieA01CtfRIFzAiALIqD7PUd4JK7ZMDKiY6zBPH+WwSnlrwG3r0lF9ot+GA=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2bdd02aa-6123-40e5-8334-b48689471b75"}},"directories":{},"maintainers":[{"name":"bfirsh","email":"ben@firshman.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jsnes_2.1.0_1775951731470_0.9338587693136804"},"_hasShrinkwrap":false}},"time":{"created":"2014-11-24T14:49:50.399Z","modified":"2026-04-11T23:55:31.953Z","0.0.0":"2014-11-24T14:49:50.399Z","0.1.0":"2017-09-07T17:13:22.187Z","0.3.0":"2017-09-26T14:42:34.759Z","1.0.0":"2018-01-26T19:18:30.284Z","1.0.1":"2018-04-30T13:23:25.875Z","1.1.0":"2019-02-15T23:09:45.464Z","1.2.1":"2021-08-24T16:01:16.141Z","2.0.0":"2026-03-01T17:42:24.289Z","2.1.0":"2026-04-11T23:55:31.688Z"},"bugs":{"url":"https://github.com/bfirsh/jsnes/issues"},"author":{"name":"Ben Firshman","email":"ben@firshman.com"},"license":"Apache-2.0","homepage":"https://github.com/bfirsh/jsnes","repository":{"type":"git","url":"git://github.com/bfirsh/jsnes.git"},"description":"A JavaScript NES emulator","maintainers":[{"name":"bfirsh","email":"ben@firshman.com"}],"readme":"# JSNES\n\nA JavaScript NES emulator.\n\nIt's a library that works in both the browser and Node.js.\n\n## Installation\n\nFor Node.js or Webpack:\n\n    $ npm install jsnes\n\n\nIn the browser, you can use [unpkg](https://unpkg.com):\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/jsnes@2/dist/jsnes.min.js\"></script>\n```\n\n## Usage\n\n### Browser\n\nThe easiest way to use JSNES in a web page is with `jsnes.Browser`. It handles canvas rendering, audio, keyboard input, gamepad input, and frame timing automatically.\n\n```html\n<div id=\"nes\" style=\"width: 512px; height: 480px\"></div>\n<script src=\"https://unpkg.com/jsnes@2/dist/jsnes.min.js\"></script>\n<script>\n  var browser = new jsnes.Browser({\n    container: document.getElementById(\"nes\"),\n    onError: function (e) {\n      console.error(e);\n    },\n  });\n  jsnes.Browser.loadROMFromURL(\"my-rom.nes\", function (err, data) {\n    if (err) {\n      console.error(err);\n      return;\n    }\n    browser.loadROM(data);\n  });\n</script>\n```\n\nIf you already have ROM data as a string or byte array, you can pass it directly:\n\n```javascript\nvar browser = new jsnes.Browser({\n  container: document.getElementById(\"nes\"),\n  romData: romData,\n});\n```\n\nSee [Keyboard Controls](#keyboard-controls) below for default key bindings. Gamepads are also supported automatically.\n\nA complete embedding example is in the `example/` directory. You can try it by running `npx serve .` in the repository root and opening [http://localhost:3000/example/nes-embed](http://localhost:3000/example/nes-embed).\n\n\n### React\n\n```jsx\nimport { Browser } from \"jsnes\";\n\nfunction Emulator({ romData }) {\n  const containerRef = useRef(null);\n  const browserRef = useRef(null);\n\n  useEffect(() => {\n    browserRef.current = new Browser({\n      container: containerRef.current,\n      romData: romData,\n    });\n    return () => browserRef.current.destroy();\n  }, [romData]);\n\n  return <div ref={containerRef} />;\n}\n```\n\nA full-featured React frontend is available in the `web/` directory of this repository.\n\n### Node.js / custom integration\n\nIf you need lower-level control (custom rendering, audio handling, or running in Node.js), use the `NES` class directly:\n\n```javascript\n// Initialize and set up outputs\nvar nes = new jsnes.NES({\n  onFrame: function(frameBuffer) {\n    // ... write frameBuffer to screen\n  },\n  onAudioSample: function(left, right) {\n    // ... play audio sample\n  }\n});\n\n// Read ROM data from disk (using Node.js APIs, for the sake of this example)\nconst fs = require('fs');\nvar romData = fs.readFileSync('path/to/rom.nes', {encoding: 'binary'});\n\n// Load ROM data as a string or byte array\nnes.loadROM(romData);\n\n// Run frames at 60 fps, or as fast as you can.\n// You are responsible for reliable timing as best you can on your platform.\nnes.frame();\nnes.frame();\n// ...\n\n// Hook up whatever input device you have to the controller.\nnes.buttonDown(1, jsnes.Controller.BUTTON_A);\nnes.frame();\nnes.buttonUp(1, jsnes.Controller.BUTTON_A);\nnes.frame();\n// ...\n```\n\n## API Reference\n\n### `NES`\n\n```javascript\nvar nes = new jsnes.NES(options);\n```\n\n**Options:**\n\n| Option | Type | Description |\n|--------|------|-------------|\n| `onFrame` | `function(frameBuffer)` | Called at the end of each frame with a 256×240 pixel buffer (Int32Array of ARGB values). |\n| `onAudioSample` | `function(left, right)` | Called for each audio sample with left/right channel values (-1.0 to 1.0). |\n| `onStatusUpdate` | `function(status)` | Called with status messages (e.g. \"Ready to load a ROM.\"). |\n| `onBatteryRamWrite` | `function(address, value)` | Called when battery-backed SRAM is written. Use this to persist save data. |\n| `emulateSound` | `boolean` | Enable/disable audio emulation. Default: `true`. |\n| `sampleRate` | `number` | Audio sample rate in Hz. Default: `48000`. |\n\n**Methods:**\n\n| Method | Description |\n|--------|-------------|\n| `nes.loadROM(data)` | Load a ROM from a string, Uint8Array, or ArrayBuffer. |\n| `nes.frame()` | Execute one frame of emulation. Call this at 60 fps. |\n| `nes.buttonDown(player, button)` | Press a button. `player` is `1` or `2`. |\n| `nes.buttonUp(player, button)` | Release a button. |\n| `nes.reset()` | Reset the emulator (like pressing the reset button on the NES). |\n| `nes.reloadROM()` | Reload the current ROM from scratch. |\n| `nes.getFPS()` | Get the current frames-per-second count. |\n| `nes.setFramerate(rate)` | Change the target frame rate. |\n| `nes.toJSON()` | Serialize emulator state (for save states). |\n| `nes.fromJSON(data)` | Restore emulator state from a previous `toJSON()` call. |\n| `nes.zapperMove(x, y)` | Move the Zapper light gun to the given pixel coordinates. |\n| `nes.zapperFireDown()` | Pull the Zapper trigger. |\n| `nes.zapperFireUp()` | Release the Zapper trigger. |\n\n**Button constants** (on `jsnes.Controller`):\n\n`BUTTON_A`, `BUTTON_B`, `BUTTON_SELECT`, `BUTTON_START`, `BUTTON_UP`, `BUTTON_DOWN`, `BUTTON_LEFT`, `BUTTON_RIGHT`, `BUTTON_TURBO_A`, `BUTTON_TURBO_B`\n\n### `Browser`\n\n```javascript\nvar browser = new jsnes.Browser(options);\n```\n\n**Options:**\n\n| Option | Type | Description |\n|--------|------|-------------|\n| `container` | `HTMLElement` | **Required.** The DOM element to render into. |\n| `romData` | `string` | ROM data to load immediately. If omitted, call `loadROM()` later. |\n| `onError` | `function(error)` | Called when the emulator encounters an error during frame execution. |\n| `onBatteryRamWrite` | `function(address, value)` | Called when battery-backed SRAM is written. |\n\n**Methods:**\n\n| Method | Description |\n|--------|-------------|\n| `browser.start()` | Start emulation. Called automatically if `romData` was provided. |\n| `browser.stop()` | Pause emulation. |\n| `browser.loadROM(data)` | Load a new ROM and start emulation. |\n| `browser.fitInParent()` | Re-layout the canvas to fill its container. |\n| `browser.screenshot()` | Returns an `HTMLImageElement` of the current frame. |\n| `browser.destroy()` | Full cleanup: stop emulation, remove listeners, remove canvas. |\n| `Browser.loadROMFromURL(url, callback)` | Static method. Fetch ROM data from a URL. Callback is `(error, data)`. |\n\n**Properties:**\n\n| Property | Description |\n|----------|-------------|\n| `browser.nes` | The underlying `NES` instance. |\n| `browser.keyboard` | The `KeyboardController` for remapping keys. |\n| `browser.gamepad` | The `GamepadController` for remapping gamepad buttons. |\n\n## Keyboard Controls\n\nWhen using `jsnes.Browser`, the following keyboard bindings are set up by default:\n\n| Button | Player 1 | Player 2 |\n|--------|----------|----------|\n| Up / Down / Left / Right | Arrow keys | Numpad 8 / 2 / 4 / 6 |\n| A | X | Numpad 7 |\n| B | Z (or Y) | Numpad 9 |\n| Turbo A | S | — |\n| Turbo B | A | — |\n| Start | Enter | Numpad 1 |\n| Select | Right Ctrl | Numpad 3 |\n\nTurbo A and Turbo B behave like A and B but auto-fire repeatedly while the key is held.\n\nKey bindings can be customized at runtime via the `browser.keyboard` property. Use `setKeys()` to provide a custom mapping (persisted to localStorage) and `loadKeys()` to reload it:\n\n```javascript\n// Get the current key map\nvar keys = browser.keyboard.keys;\n\n// Remap Player 1 A button to the J key (keyCode 74)\nkeys[74] = [1, jsnes.Controller.BUTTON_A, \"J\"];\nbrowser.keyboard.setKeys(keys);\n```\n\n## Build\n\nTo build a distribution:\n\n    $ npm run build\n\nThis will create `dist/jsnes.min.js`.\n\n## Running tests\n\n    $ npm test\n\n## Formatting code\n\nAll code must conform to [Prettier](https://prettier.io/) formatting. The test suite won't pass unless it does.\n\nTo automatically format all your code, run:\n\n    $ npm run format\n\n## Related projects\n- [NEStation](https://github.com/afska/nestation) - Multiplayer NES over the internet!\n\n## Thanks\n\nJSNES is based on [James Sanders' vNES](https://github.com/bfirsh/vNES), and owes an awful lot to it. It also wouldn't have happened without [Matt Wescott's JSSpeccy](http://jsspeccy.zxdemo.org/), which sparked the original idea. (Ben, circa 2008: \"Hmm, I wonder what else could run in a browser?!\")\n","readmeFilename":"README.md","users":{"bfirsh":true,"robertanimations":true}}