{"_id":"sparky","_rev":"32-e077668e38b1580e9d55f0bfdb208340","name":"sparky","description":"Sparky is a simple node.js library for communicating with a Spark core. Sparky wraps the four default methods (analogRead, analogWrite, digitalRead, digitalWrite), and has a run method for any custom firmware methods on your SparkCore.","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"sparky","description":"Simple sparkcore interface.","version":"0.0.1","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Something awesome is coming.","_id":"sparky@0.0.1","dist":{"shasum":"18de1c2b1dc9c9dfa0f9590a70272c595f810050","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.0.1.tgz","integrity":"sha512-25uiT6w+mGOf/N25TRPfzCHv+vRWGZ33k156eo3s3LXYykAKLQzDWEkcvH7fSfvadlszy6FugzBvliaYYMI1Mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHI3da056OXew/e3ujrfBEMCWd/vwtJ+8O1T7txGU2qhAiAYd0ZmI+K4MfclmThu2Gz54nO6xQUj7SS24ncNP6lPaQ=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]},"0.0.2":{"name":"sparky","description":"Simple sparkcore interface.","version":"0.0.2","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Usage\n--------------------\n\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.digitalWrite('D7', 'HIGH');\n```","_id":"sparky@0.0.2","dist":{"shasum":"ed32a87422941d855327cd9d3357d383d6e4d7ad","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.0.2.tgz","integrity":"sha512-livnLVQSsi85tTT6lBNIk/5zku7daetpX26H0xJa7MDVk1RsOZBCLipC91oWjhm4paZBgVanRWsu8yX8Apk5wA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE0ACeuIaA5TdTJu83n2TXDEyTSNJOLYwYGpYpjHfBmhAiAqS3hPU5++SgdgkXn7jd5Kwbw8NH94cwe3BWsZ02x4JA=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]},"0.0.4":{"name":"sparky","description":"Simple sparkcore interface.","version":"0.0.4","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Usage\n--------------------\n\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.digitalWrite('D7', 'HIGH');\n```","_id":"sparky@0.0.4","dist":{"shasum":"44deba366020b3f3010376b5e1850ed8b0584b5f","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.0.4.tgz","integrity":"sha512-R3VKfQbjYiEphGR4DFwGhMEdLlvC+8ZUDH7YW1sa94ZsUuzfaTC9Ui1lVANrw4mALDsSEYHR4io9DMz/yaROdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFUf1NmQ312hs64Dyc5DK9SZOyIMW91KOIS4pY7JlcGxAiAW6wRMZFgBcQojOyPEeVCamwH1IoQHgfCpOqoYgPWQZg=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]},"0.0.5":{"name":"sparky","description":"Simple sparkcore interface.","version":"0.0.5","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Usage\n--------------------\n\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.digitalWrite('D7', 'HIGH');\n```\n\nBlinking the built-in LED\n\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky(config);\nvar val = 0;\n(function toggle() {\n\tval = 1 - val;\n\tsparky.digitalWrite('D7', val);\n\tsetTimeout(toggle, 1000);\n})();\n```","_id":"sparky@0.0.5","dist":{"shasum":"dd1fa945e14a3b47454d55154bd278458527ef6d","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.0.5.tgz","integrity":"sha512-Zx1fFWWtKwv3iEcjiQcIZ+i/6z3TfY56nBqIJz5OMmv1UYp1L+ITSBnDg50n/uaHrlwGxtefwBZw1jFABZFX6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDewRupuOuAdP0ckE/ImlXs8+3nshw0kQfprxVBEQhfXQIgLzVz2mUx4zIKyGCwFhvmz5UIqNL6iypcb8yW115E2y0="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]},"0.0.7":{"name":"sparky","description":"Simple sparkcore interface.","version":"0.0.7","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Sparky\n=============================\nSparky is a simple node.js library for communicating with a Spark core.\n\nInstallation\n-----------------------------\n```\nnpm install sparky\n```\n\nUsage\n-----------------------------\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.digitalWrite('D7', 'HIGH');\n```\n\nBlinking the built-in LED\n\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky(config);\nvar val = 0;\n(function toggle() {\n\tval = 1 - val;\n\tsparky.digitalWrite('D7', val);\n\tsetTimeout(toggle, 1000);\n})();\n```","_id":"sparky@0.0.7","dist":{"shasum":"9186974fa29883c2bd090582450c3bd0080232d9","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.0.7.tgz","integrity":"sha512-ITo1o5GBaFZiXe28BWLzvFLQV9c1HlC175Ygk7LZP8/gxpHpXrP3rh1S7ugBmYNbPl+5zGFJRnGo5lY5Ixu3Qg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD35WEm9J8dxNkOllRG+2IXRglxdbkHx9tGwIX1qblyfwIhAKJy3MXH0qMZtNsKgP2zZB6cvjnBynoA8eDFX+S8d8WL"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]},"0.0.8":{"name":"sparky","description":"Simple sparkcore interface.","version":"0.0.8","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Sparky\n=============================\nSparky is a simple node.js library for communicating with a Spark core.\n\nInstallation\n-----------------------------\n```\nnpm install sparky\n```\n\nUsage\n-----------------------------\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.digitalWrite('D7', 'HIGH');\n```\n\nBlinking the built-in LED\n\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky(config);\nvar val = 0;\n(function toggle() {\n\tval = 1 - val;\n\tsparky.digitalWrite('D7', val);\n\tsetTimeout(toggle, 1000);\n})();\n```","_id":"sparky@0.0.8","dist":{"shasum":"8966ee06804c528f0376d5fcccf01a8d9c6f8ebf","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.0.8.tgz","integrity":"sha512-yp8Tu4AODS3qGXeWAxCduD6mtqx3PRD1wz9F3dlzwE97f6K+MuZ4GQpXw3iVGNwggES94K7u3yO7wDF4yNaRpA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkyEev3nOjasMco7fKCq33vrbDmVFjyXVGZJF3o4b0YwIhAOKou8Ocq3gK7l9VQCZtvrKZY6JlTcWMrga7DKLcKW4A"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]},"0.0.9":{"name":"sparky","description":"Simple sparkcore interface.","version":"0.0.9","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Sparky\n=============================\nSparky is a simple node.js library for communicating with a Spark core.\n\nInstallation\n-----------------------------\n```\nnpm install sparky\n```\n\nUsage\n-----------------------------\nTurn the built-in LED on.\n\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.digitalWrite('D7', 'HIGH');\n```\n\nBlinking the built-in LED.\n\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky(config);\nvar val = 0;\n(function toggle() {\n\tval = 1 - val;\n\tsparky.digitalWrite('D7', val);\n\tsetTimeout(toggle, 1000);\n})();\n```\n\nRun a custom command from your SparkCore firmware.\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.run('MyCustomFunction', 'what,ever,you,want', callback);\n```\n\n","_id":"sparky@0.0.9","dist":{"shasum":"e0c541687647d98458cf900a03de0a651f388bf5","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.0.9.tgz","integrity":"sha512-7UNcqySL5ysRkyjRckGLB+Wxqwcj7tj8WAjsQwHgcF+vUDKh2zPcM0FpugIgbS3dmD4ybMkZ0npRfBnUq7l5tg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMR4NKBX8o6I4DuCejSOPeeR9KrBfF1dd5l1wBtXV26gIhALeo9g4BHmcs7LpKpCmB9qxB9xcUcr2GEjuu2yKDWr+M"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]},"0.0.10":{"name":"sparky","description":"Simple sparkcore interface.","version":"0.0.10","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Sparky\n=============================\nSparky is a simple node.js library for communicating with a Spark core.\n\nInstallation\n-----------------------------\n```\nnpm install sparky\n```\n\nUsage\n-----------------------------\nTurn the built-in LED on.\n\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.digitalWrite('D7', 'HIGH');\n```\n\nBlinking the built-in LED.\n\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky(config);\nvar val = 0;\n(function toggle() {\n\tval = 1 - val;\n\tsparky.digitalWrite('D7', val);\n\tsetTimeout(toggle, 1000);\n})();\n```\n\nRun a custom command from your SparkCore firmware.\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.run('MyCustomFunction', 'what,ever,you,want', callback);\n```\n\n","_id":"sparky@0.0.10","dist":{"shasum":"dc5579120471af46e0a1dcc1b1142a49fce6e794","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.0.10.tgz","integrity":"sha512-9iQXJvrqg62aWD0m0M236yH3a+7r34o7tXhm3I9hTdyZel1HN0yb5aVGbfdzAKReMcXnEVuSMw2A9UreH1j+mQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGg0Gy+l9/q63owpHHfomyW17haKRuTG+d7yiyhyF6nVAiEAqQe2bD+fCJh6bvhNH7X0b+xDEo39ZzbM+87G30xRMzQ="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]},"0.0.11":{"name":"sparky","description":"Simple sparkcore interface.","version":"0.0.11","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Sparky\n=============================\nSparky is a simple node.js library for communicating with a Spark core.\n\nInstallation\n-----------------------------\n```\nnpm install sparky\n```\n\nUsage\n-----------------------------\nTurn the built-in LED on.\n\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.digitalWrite('D7', 'HIGH');\n```\n\nBlinking the built-in LED.\n\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky(config);\nvar val = 0;\n(function toggle() {\n\tval = 1 - val;\n\tsparky.digitalWrite('D7', val);\n\tsetTimeout(toggle, 1000);\n})();\n```\n\nRun a custom command from your SparkCore firmware.\n```\nvar Sparky = require('sparky').Sparky\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.run('MyCustomFunction', 'what,ever,you,want', callback);\n```\n\n","_id":"sparky@0.0.11","dist":{"shasum":"f2ea03e1fb7513270375520a6e64fe633f1cc9b8","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.0.11.tgz","integrity":"sha512-CWpsz4oiJEi5Zxymz9JF8k/4ngRHLs4B2Ko1MuD9Ll+IPvqhwnRZCap0WKJiEsqVurUP9FxZEIoIqdaRzPzSKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8tmonqyLhMHpViWkNAJK0LDtE/hmHaHgR4tHee2LiXAIhAJUHa7ZM4tmT/4XAGFgr+GgxLja3F4i94z0MvEA5xTrt"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]},"0.0.12":{"name":"sparky","description":"Simple sparkcore interface.","version":"0.0.12","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Sparky\n=============================\nSparky is a simple node.js library for communicating with a Spark core.\n\nInstallation\n-----------------------------\n```\nnpm install sparky\n```\n\nUsage\n-----------------------------\nTurn the built-in LED on.\n\n```\nvar Sparky = require('sparky')\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.digitalWrite('D7', 'HIGH');\n```\n\nBlinking the built-in LED.\n\n```\nvar Sparky = require('sparky')\n\nvar sparky = new Sparky(config);\nvar val = 0;\n(function toggle() {\n\tval = 1 - val;\n\tsparky.digitalWrite('D7', val);\n\tsetTimeout(toggle, 1000);\n})();\n```\n\nRun a custom command from your SparkCore firmware.\n```\nvar Sparky = require('sparky')\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.run('MyCustomFunction', 'what,ever,you,want', callback);\n```\n\n","_id":"sparky@0.0.12","dist":{"shasum":"51b5c29051824a9f85e47f6fd7031eb348469d34","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.0.12.tgz","integrity":"sha512-YBXkHArB1qFKJg2D5U72/NnHTWEntWV2avH7X8tAe4lDvj76/epmtMSv1AtyYHuLq67G9BY2wAhYI6zAF1ttaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCICCbzxZf9HUMmQbbC6NZfvio3uKsxdIk5YTg6WMa5PckAh9bIAGmK0Y8NI6x3e2ktsQgZ4yT/ah2hZ4HBXzHjWOQ"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]},"0.0.13":{"name":"sparky","description":"Simple sparkcore interface.","version":"0.0.13","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Sparky\n=============================\nSparky is a simple node.js library for communicating with a Spark core.\n\nInstallation\n-----------------------------\n```\nnpm install sparky\n```\n\nUsage\n-----------------------------\nTurn the built-in LED on.\n\n```\nvar Sparky = require('sparky')\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.digitalWrite('D7', 'HIGH');\n```\n\nBlinking the built-in LED.\n\n```\nvar Sparky = require('sparky')\n\nvar sparky = new Sparky(config);\nvar val = 0;\n(function toggle() {\n\tval = 1 - val;\n\tsparky.digitalWrite('D7', val);\n\tsetTimeout(toggle, 1000);\n})();\n```\n\nRun a custom command from your SparkCore firmware.\n```\nvar Sparky = require('sparky')\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.run('MyCustomFunction', 'what,ever,you,want', callback);\n```\n\n","_id":"sparky@0.0.13","dist":{"shasum":"78e338ad3d12decd05231b3e6633dd2f873ba688","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.0.13.tgz","integrity":"sha512-DFMwIrhlqnhUf52MZsJzh45nvleH0ELs4zFfC0/xHGbUyaStwZPlXGZYZKs9tIaO+a+/6mag5d1RacArLnInUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEiFTFFTbW+MDpm5+iQDMs7RphNOtXELJzXpDyrJuG9vAiEA8RtUQX+0s9+X193M1X3qz8sYTl5FDBQXNXDJ6H5nw+Y="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]},"0.0.14":{"name":"sparky","description":"Sparky is a simple node.js library for communicating with a Spark core. Sparky wraps the four default methods (analogRead, analogWrite, digitalRead, digitalWrite), and has a run method for any custom firmware methods on your SparkCore.","version":"0.0.14","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Sparky\n=============================\nSparky is a simple node.js library for communicating with a Spark core. Sparky wraps the four default methods (analogRead, analogWrite, digitalRead, digitalWrite), and has a run method for any custom firmware methods on your SparkCore.\n\nInstallation\n-----------------------------\n```\nnpm install sparky\n```\n\nUsage\n-----------------------------\nTurn the built-in LED on.\n\n```\nvar Sparky = require('sparky')\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.digitalWrite('D7', 'HIGH');\n```\n\nBlinking the built-in LED.\n\n```\nvar Sparky = require('sparky')\n\nvar sparky = new Sparky(config);\nvar val = 0;\n(function toggle() {\n\tval = 1 - val;\n\tsparky.digitalWrite('D7', val);\n\tsetTimeout(toggle, 1000);\n})();\n```\n\nRun a custom command from your SparkCore firmware.\n```\nvar Sparky = require('sparky')\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.run('MyCustomFunction', 'what,ever,you,want', callback);\n```\n\n","_id":"sparky@0.0.14","dist":{"shasum":"4b3cbf9a9f96766c4e4435a13f326e177190b620","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.0.14.tgz","integrity":"sha512-OFPSI0ypWmLxGX7C1UXwZ0DB777L0V08wRODu5O1KJ0QYVr7Xg+pV751BmtmqaMAeJQ+6qpq7UQVZsEIwpBoZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFXswKCcjwMUxRheUl86yK+eq9Q8pQyj8r+5Bsh2Uk7BAiAHccDRif+/Buu87RaGeL2C2jWvoPRgHX5ZDeSlsFKLiA=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]},"0.1.0":{"name":"sparky","description":"Sparky is a simple node.js library for communicating with a Spark core. Sparky wraps the four default methods (analogRead, analogWrite, digitalRead, digitalWrite), and has a run method for any custom firmware methods on your SparkCore.","version":"0.1.0","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Sparky\n=============================\nSparky is a simple node.js library for communicating with a Spark core. Sparky wraps the four default methods (analogRead, analogWrite, digitalRead, digitalWrite), and has a run method for any custom firmware methods on your SparkCore.\n\nInstallation\n-----------------------------\n```\nnpm install sparky\n```\n\nUsage\n-----------------------------\nTurn the built-in LED on.\n\n```\nvar Sparky = require('sparky')\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.digitalWrite('D7', 'HIGH');\n```\n\nBlinking the built-in LED.\n\n```\nvar Sparky = require('sparky')\n\nvar sparky = new Sparky(config);\nvar val = 0;\n(function toggle() {\n\tval = 1 - val;\n\tsparky.digitalWrite('D7', val);\n\tsetTimeout(toggle, 1000);\n})();\n```\n\nRun a custom command from your SparkCore firmware.\n```\nvar Sparky = require('sparky')\n\nvar sparky = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\nsparky.run('MyCustomFunction', 'what,ever,you,want', callback);\n```\n\n","_id":"sparky@0.1.0","dist":{"shasum":"265ce637a6bf2b93eccc7070d6cdf4011b9c43b3","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.1.0.tgz","integrity":"sha512-s0lY1mwLpp134VK+Q33zWowAKDdZiR9wA03ycItJY3gHZIflT69SHrgVi1Lt0tPD010afrU49zkhzeY0Br6C0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVOw725DvReC8GKfN/Yd3CWRjGGyNGmJiIdy1wr8vTjgIhAK8pPKZ0Tvafe16asrjffzNKWjDkxU5ErIQfDvAiQE2N"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]},"0.1.1":{"name":"sparky","description":"Sparky is a simple node.js library for communicating with a Spark core. Sparky wraps the four default methods (analogRead, analogWrite, digitalRead, digitalWrite), and has a run method for any custom firmware methods on your SparkCore.","version":"0.1.1","homepage":"https://github.com/kevingrandon/sparky","author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"},"bugs":{"url":"https://github.com/kevingrandon/sparky/issues"},"licenses":[{"type":"MPL"}],"main":"index.js","engines":{"node":">=0.10.0"},"keywords":[],"readmeFilename":"README.md","readme":"Sparky\n=============================\nSparky is a simple node.js library for communicating with a Spark core. Sparky wraps the four default methods (analogRead, analogWrite, digitalRead, digitalWrite), and has a run method for any custom firmware methods on your SparkCore.\n\nInstallation\n-----------------------------\n```\nnpm install sparky\n```\n\nUsage\n-----------------------------\nTurn the built-in LED on.\n\n```\nvar Sparky = require('sparky')\n\nvar core1 = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\ncore1.digitalWrite('D7', 'HIGH');\n```\n\nBlinking the built-in LED.\n\n```\nvar Sparky = require('sparky')\n\nvar core1 = new Sparky(config);\nvar val = 0;\n(function toggle() {\n\tval = 1 - val;\n\tcore1.digitalWrite('D7', val);\n\tsetTimeout(toggle, 1000);\n})();\n```\n\nRun a custom command from your SparkCore firmware.\n```\nvar Sparky = require('sparky')\n\nvar core1 = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\ncore1.run('MyCustomFunction', 'what,ever,you,want', callback);\n```\n\nRead a variable from your SparkCore. See the examples/read_var code for an example sketch.\n```\nvar Sparky = require('sparky')\n\nvar core1 = new Sparky({\n\tdeviceId: 'your device id',\n\ttoken: 'your access token',\n})\n\ncore1.get('MyCustomVariable', function(response) {\n\t// Full response of the SparkCore API resides in the first argument\n});\n```\n\n","_id":"sparky@0.1.1","dist":{"shasum":"232d119484f4ef30ea64e53e17b78f774a975166","tarball":"https://registry.npmjs.org/sparky/-/sparky-0.1.1.tgz","integrity":"sha512-oOvlZDTOhB1FqRwLpvdaI0ZtaL6stMbe5s7lBNXC/401J8M7rrJv6pDdm4bbUcPWFejwKKYJlwqXPClbtnxWxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFL85YKLR9a9gUnEjfCaktDHUC6D4rFmfL7+BaAxVUWUAiBgKxZl6X8PgTeYjC0xNDWKz7iwHXmC1EirzbKpRCnBRQ=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}]}},"readme":"Something awesome is coming.","maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}],"time":{"modified":"2022-06-26T22:35:59.780Z","created":"2013-12-06T15:53:19.372Z","0.0.1":"2013-12-06T15:53:20.332Z","0.0.2":"2013-12-06T16:03:05.751Z","0.0.4":"2013-12-06T16:40:46.842Z","0.0.5":"2013-12-06T16:48:35.406Z","0.0.7":"2013-12-06T17:01:27.990Z","0.0.8":"2013-12-06T20:34:48.111Z","0.0.9":"2013-12-07T02:24:33.699Z","0.0.10":"2013-12-07T03:47:51.847Z","0.0.11":"2013-12-07T03:50:16.312Z","0.0.12":"2013-12-07T03:53:58.661Z","0.0.13":"2013-12-07T21:59:56.538Z","0.0.14":"2013-12-08T14:49:39.508Z","0.1.0":"2013-12-12T06:56:47.689Z","0.1.1":"2013-12-25T07:42:38.705Z"},"author":{"name":"Kevin Grandon","email":"kevingrandon@yahoo.com"},"repository":{"type":"git","url":"git://github.com/kevingrandon/sparky.git"}}