{"_id":"argot","_rev":"28-0679aebdbab36bdc94fd264c9ec81356","name":"argot","description":"A language for the Internet of Things.","dist-tags":{"latest":"0.1.10"},"versions":{"0.1.0":{"name":"argot","description":"A language for the Internet of Things.","version":"0.1.0","homepage":"https://github.com/danmidwood/argot.js","author":{"name":"Dan Midwood","email":"dan@danmidwood.com"},"repository":{"type":"git","url":"git://github.com/danmidwood/argot.js.git"},"bugs":{"url":"https://github.com/danmidwood/argot.js/issues"},"main":"lib/argot","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.2","tools.repl":">=0.0.1"},"dependencies":{"q":"0.9.7","streamifier":"0.1.0","winston":"0.7.2"},"keywords":[],"doc":"./doc","_id":"argot@0.1.0","dist":{"shasum":"4e4e9f70ae3d2a979952865e71cb321860cac29e","tarball":"https://registry.npmjs.org/argot/-/argot-0.1.0.tgz","integrity":"sha512-DT04HC9uyZNGm1EYSTH+fmkV+4596Qi/z4aGZ/2KBQ6zcKM8XCTW7SjNvZEvYbFvQF5ogdxjBnQnDBE8jK0/jg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFqiC/n35f5LXm+HXvqvxewATew8aGVDS5PMnTUxNXK6AiEA1avQ6deTdZgtDbMa4ayGAKvYHYFsM6GZtPEKY/R3gks="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"drex","email":"dan@danmidwood.com"},"maintainers":[{"name":"drex","email":"dan@danmidwood.com"}]},"0.1.1":{"name":"argot","description":"A language for the Internet of Things.","version":"0.1.1","homepage":"https://github.com/danmidwood/argot.js","author":{"name":"Dan Midwood","email":"dan@danmidwood.com"},"repository":{"type":"git","url":"git://github.com/danmidwood/argot.js.git"},"bugs":{"url":"https://github.com/danmidwood/argot.js/issues"},"main":"lib/argot","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.2","tools.repl":">=0.0.1","grunt-release-it":"~0.1.1"},"dependencies":{"q":"0.9.7","streamifier":"0.1.0"},"keywords":[],"doc":"./doc","_id":"argot@0.1.1","dist":{"shasum":"1dffde4cadf331eb981e24c4f4d1dc9a22023574","tarball":"https://registry.npmjs.org/argot/-/argot-0.1.1.tgz","integrity":"sha512-df4YT6AIRa+RQ2xZOj3be85byaH9bo60mZ30fNITQ5aKf66B1J9amWajHlgur2ZTpG8SCjQbqkz5oxSVmUNUJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE5LAt+Ghxte1OPW132/gbJLVH1finewwTJUFuRK7qQwAiEAql8M2kigr3lCjYp5ZsIHbYMKh7y8iAHr3rhueVeGK0Q="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"drex","email":"dan@danmidwood.com"},"maintainers":[{"name":"drex","email":"dan@danmidwood.com"}]},"0.1.2":{"name":"argot","description":"A language for the Internet of Things.","version":"0.1.2","homepage":"https://github.com/danmidwood/argot.js","author":{"name":"Dan Midwood","email":"dan@danmidwood.com"},"repository":{"type":"git","url":"git://github.com/danmidwood/argot.js.git"},"bugs":{"url":"https://github.com/danmidwood/argot.js/issues"},"main":"lib/argot","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.2","tools.repl":">=0.0.1","grunt-release-it":"~0.1.1"},"dependencies":{"q":"0.9.7","streamifier":"0.1.0"},"keywords":[],"doc":"./doc","_id":"argot@0.1.2","dist":{"shasum":"31df13d8feaa8dcc0070c39b9ebb1d4456c47a6d","tarball":"https://registry.npmjs.org/argot/-/argot-0.1.2.tgz","integrity":"sha512-2PbwpoHkna8HYxZjlEcwNr5Nqi79U4G620hB8i43hcglq8CjT6J4NwvNNtXOrFPBOkWxWS1+CAtCm4BOWHSY5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrKH3CkSrMR6fxliF/Lx6jJl7yhTuYe2MNEV1IFMdfswIhAMevQInWMcRKOR4fhRFHfeFzakNn4YRuPeuRXF0s4ANi"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"drex","email":"dan@danmidwood.com"},"maintainers":[{"name":"drex","email":"dan@danmidwood.com"}]},"0.1.3":{"name":"argot","description":"A language for the Internet of Things.","version":"0.1.3","homepage":"https://github.com/danmidwood/argot.js","author":{"name":"Dan Midwood","email":"dan@danmidwood.com"},"repository":{"type":"git","url":"git://github.com/danmidwood/argot.js.git"},"bugs":{"url":"https://github.com/danmidwood/argot.js/issues"},"main":"lib/argot","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.2","tools.repl":">=0.0.1","grunt-release-it":"~0.1.1"},"dependencies":{"q":"0.9.7","streamifier":"0.1.0"},"keywords":[],"doc":"./doc","_id":"argot@0.1.3","dist":{"shasum":"dc264df1aa1f610766e445a33cc88af6d21208c8","tarball":"https://registry.npmjs.org/argot/-/argot-0.1.3.tgz","integrity":"sha512-rAcaQBnIB3Hlm8TibC+fdcemWnEwc2xBgq/PEJ95ozQlkh6ggtQesgn8aF6mPguUpxGrhwJOUEHiriQj6pF1ew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdhfhESWqyd8kj1YpZTUoFywlY1eFnKpftCQJF6Z54wAIhAKF4niX7qFBi2suhA65kAPa7JzBZ6TnahE/uf2nLI+WQ"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"drex","email":"dan@danmidwood.com"},"maintainers":[{"name":"drex","email":"dan@danmidwood.com"}]},"0.1.4":{"name":"argot","description":"A language for the Internet of Things.","version":"0.1.4","homepage":"https://github.com/danmidwood/argot.js","author":{"name":"Dan Midwood","email":"dan@danmidwood.com"},"repository":{"type":"git","url":"git://github.com/danmidwood/argot.js.git"},"bugs":{"url":"https://github.com/danmidwood/argot.js/issues"},"main":"lib/argot","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.2","tools.repl":">=0.0.1","grunt-release-it":"~0.1.1"},"dependencies":{"q":"0.9.7","streamifier":"0.1.0"},"keywords":[],"doc":"./doc","_id":"argot@0.1.4","dist":{"shasum":"9afc96e3c39df38e113be7b78d4a83b7b8378883","tarball":"https://registry.npmjs.org/argot/-/argot-0.1.4.tgz","integrity":"sha512-nIwmIGraUufAMUAfdiZH73cHS3ramh7KhIx3uaqLwuOlXMfuKiaPrv+cZ40EIxSma2lrnBOdBLMttllmZpjXkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbqsfCTzKVnnn4TYVGn90mYW/iCCr7Y/ID2PyETmXlGgIgPh/shOxgHIjTrbOLBCuK2gymLTnUu9Pg6Dh6fP4EHmg="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"drex","email":"dan@danmidwood.com"},"maintainers":[{"name":"drex","email":"dan@danmidwood.com"}]},"0.1.5":{"name":"argot","description":"A language for the Internet of Things.","version":"0.1.5","homepage":"https://github.com/danmidwood/argot.js","author":{"name":"Dan Midwood","email":"dan@danmidwood.com"},"repository":{"type":"git","url":"git://github.com/danmidwood/argot.js.git"},"bugs":{"url":"https://github.com/danmidwood/argot.js/issues"},"main":"lib/argot","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.2","tools.repl":">=0.0.1","grunt-release-it":"~0.1.1"},"dependencies":{"q":"0.9.7","streamifier":"0.1.0"},"keywords":[],"doc":"./doc","_id":"argot@0.1.5","dist":{"shasum":"65abadf5c29720e6cfdfc8dadece5aaad3f37eba","tarball":"https://registry.npmjs.org/argot/-/argot-0.1.5.tgz","integrity":"sha512-HHF+RQocUSlFISo35dzdZqYXaGIFZqr5Uj19xh2Xb48Agbsvt6DtKcFnXZPoNIYfMjnOQ6tQWw5Ea6r8mWx0TA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGpwdHbWdLo21SF/7tTzDAi5/hf1fzw8NpDUxjKNSM9PAiB+yvlkVDEb28dNfPwc9ymoqxEydfXwaes3dFCH6FzoMg=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"drex","email":"dan@danmidwood.com"},"maintainers":[{"name":"drex","email":"dan@danmidwood.com"}]},"0.1.6":{"name":"argot","description":"A language for the Internet of Things.","version":"0.1.6","homepage":"https://github.com/danmidwood/argot.js","author":{"name":"Dan Midwood","email":"dan@danmidwood.com"},"repository":{"type":"git","url":"git://github.com/danmidwood/argot.js.git"},"bugs":{"url":"https://github.com/danmidwood/argot.js/issues"},"main":"lib/argot","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.2","tools.repl":">=0.0.1","grunt-release-it":"~0.1.1"},"dependencies":{"q":"0.9.7","streamifier":"0.1.0"},"keywords":[],"doc":"./doc","_id":"argot@0.1.6","dist":{"shasum":"6bd200ea49b11a93495129a9232effbeff1c68f4","tarball":"https://registry.npmjs.org/argot/-/argot-0.1.6.tgz","integrity":"sha512-HS6wo0BQquIcfE+UzcJdvIROgDXfuVqDBrgF6NVpc+j1517FjF9iyNO+GUJnzflnndeqPqVAn42MlyNOO4A66A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQYSdtmQwcUBnFIRxdAlxG4Nqf0RXo1BKV/R/8/vtF2AiB9UU8W9x+W9GH7T9yJdNSamolw41ihxSUYrhwf/5MCaQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"drex","email":"dan@danmidwood.com"},"maintainers":[{"name":"drex","email":"dan@danmidwood.com"}]},"0.1.7":{"name":"argot","description":"A language for the Internet of Things.","version":"0.1.7","homepage":"https://github.com/danmidwood/argot.js","author":{"name":"Dan Midwood","email":"dan@danmidwood.com"},"repository":{"type":"git","url":"git://github.com/danmidwood/argot.js.git"},"bugs":{"url":"https://github.com/danmidwood/argot.js/issues"},"main":"lib/argot","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.2","tools.repl":">=0.0.1","grunt-release-it":"~0.1.1"},"dependencies":{"q":"0.9.7","streamifier":"0.1.0"},"keywords":[],"doc":"./doc","_id":"argot@0.1.7","dist":{"shasum":"4ad194c2303095aad0d703779ebc26f54a79be0f","tarball":"https://registry.npmjs.org/argot/-/argot-0.1.7.tgz","integrity":"sha512-7hTZImjOiZtGEQZ0mxwzGaissqzpjA4yxXus7w5PwSKlUC+mNVlRrMKzdCL6aPfK4qjt99Ucw2daRE4fuTBcEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC7Zx/7T/Vu5AtoaP5lJp2YVvFk345bj33rL+OYPqZBeAiAC+bC2QoD0UvejKja7BwznF3M9FNGefYHwkNAeT8jy/Q=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"drex","email":"dan@danmidwood.com"},"maintainers":[{"name":"drex","email":"dan@danmidwood.com"}]},"0.1.8":{"name":"argot","description":"A language for the Internet of Things.","version":"0.1.8","homepage":"https://github.com/danmidwood/argot.js","author":{"name":"Dan Midwood","email":"dan@danmidwood.com"},"repository":{"type":"git","url":"git://github.com/danmidwood/argot.js.git"},"bugs":{"url":"https://github.com/danmidwood/argot.js/issues"},"main":"lib/argot","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.2","tools.repl":">=0.0.1","grunt-release-it":"~0.1.1"},"dependencies":{"q":"0.9.7","streamifier":"0.1.0"},"keywords":[],"doc":"./doc","_id":"argot@0.1.8","dist":{"shasum":"53d48683a922ea26b2cfcc8769637b10f0f3b146","tarball":"https://registry.npmjs.org/argot/-/argot-0.1.8.tgz","integrity":"sha512-bXmN9OvHCRr903zmH6kizppDD7DniY3/aTHtIkIuj6pi0pbqpdnzlat+ubvUjf1brfq7WE2c095ksld897oXtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAzgP4ksVXe541MfiSNZNLu+5nYXI/tKcyS6AWt8QNVRAiBdxns1+iBm5ePCTOKcFDpJU/jsQeOhTM+NvIP5H+Xe3Q=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"drex","email":"dan@danmidwood.com"},"maintainers":[{"name":"drex","email":"dan@danmidwood.com"}]},"0.1.9":{"name":"argot","description":"A language for the Internet of Things.","version":"0.1.9","homepage":"https://github.com/danmidwood/argot.js","author":{"name":"Dan Midwood","email":"dan@danmidwood.com"},"repository":{"type":"git","url":"git://github.com/danmidwood/argot.js.git"},"bugs":{"url":"https://github.com/danmidwood/argot.js/issues"},"main":"lib/argot","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.2","tools.repl":">=0.0.1","grunt-release-it":"~0.1.1"},"dependencies":{"q":"0.9.7","streamifier":"0.1.0","mutacache":"0.0.2"},"keywords":[],"doc":"./doc","_id":"argot@0.1.9","dist":{"shasum":"15bfe56ec3ace5da1cccf5789bac917fa8e16b4d","tarball":"https://registry.npmjs.org/argot/-/argot-0.1.9.tgz","integrity":"sha512-xH1VYasI5nFE4mWy+c4YBGLRaVT/+GBTx/V4Q1UAMPIdzEyDquIIwKsI1nfL2WYjrYJAE3n7sDoytkB2vvHeEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfNffj0h0UW/TBYyPpjCl7oS7r3o3drcIPyfrHvl3C8AiBokeO2n28g3ktH6gfmX8hX52dLL03dCqbfWpDXRCeUAw=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"drex","email":"dan@danmidwood.com"},"maintainers":[{"name":"drex","email":"dan@danmidwood.com"}]},"0.1.10":{"name":"argot","description":"A language for the Internet of Things.","version":"0.1.10","homepage":"https://github.com/danmidwood/argot.js","author":{"name":"Dan Midwood","email":"dan@danmidwood.com"},"repository":{"type":"git","url":"git://github.com/danmidwood/argot.js.git"},"bugs":{"url":"https://github.com/danmidwood/argot.js/issues"},"main":"lib/argot","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.2","tools.repl":">=0.0.1","grunt-release-it":"~0.1.1"},"dependencies":{"q":"0.9.7","streamifier":"0.1.0","mutacache":"0.0.2"},"keywords":[],"doc":"./doc","_id":"argot@0.1.10","dist":{"shasum":"73df45516a25f48dd0e17a5e8a5a1a20b49df6cb","tarball":"https://registry.npmjs.org/argot/-/argot-0.1.10.tgz","integrity":"sha512-GmkgYxEQ29PUM4yW71/8I/2Sx1Ex3pU6zncPHPiEuYP3T777aq1TUsqAPY3uFDXu23wxfVvSm+b3IkwDt+IG3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEsAz38SHQ0py02gKXgOpvcNNxUdF4Q/XSEc+urNUkH7AiBHTd9X3ErxHTd8m78CktDAzJT2n2KJKuoZtmUceZiyDg=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"drex","email":"dan@danmidwood.com"},"maintainers":[{"name":"drex","email":"dan@danmidwood.com"}]}},"readme":"# argot [![Build Status](https://secure.travis-ci.org/danmidwood/argot.js.png?branch=master)](http://travis-ci.org/danmidwood/argot.js)\n\nA language for the Internet of Things.\n\nA JavaScript port of [Argot SDK](http://www.argot-sdk.org/).\n\n## Documentation\n\n* [Dictionary Format](https://github.com/danmidwood/argot.js/blob/master/doc/dictionary_format.md)\n* [Argot Message Format](https://github.com/danmidwood/argot.js/blob/master/doc/argotmessage_format.md)\n\n## Getting Started\n\nLike all good node packages, you can find [Argot in NPM](https://www.npmjs.org/package/argot).\n\nAdd Argot to your project with\n\n`npm install argot --save`\n\n## Usage\n\nArgot has a single entry point exported as a module, containing three functions that should fulfil all needs.\n\nPull it into your project with `var argot = require('argot');`\n\nOf the available functions, one is to read dictionary files and the other two are for reading messages.\n\n### Argot.loadDictionary\n\nLoad dictionary takes an Argot Dictionary file, reads it and processes the contents into a `Library` containing data definitions.\n\n* Params: `fileName` - A file on disk\n* Returns: A [`Q`](https://github.com/kriskowal/q) promise containing a library\n\nExample:\n\n```javascript\nvar argot = require('argot');\n\nargot.loadDictionary('~/a/file/on/disk.dictionary')\n  .then(function(lib) {\n    // do something with the library here\n  })\n  .fail(function(err) {\n    // uh-oh,\n  });\n```\n\n### Argot.readMessage\n\nRead an [Argot Message](http://blog.argot-sdk.org/2014/02/argot-message-format-self-describing.html), a data type that includes dictionary defintions along with the message content.\n\n* Params: `messageStream` - A Node readable stream containing the data to be read. The data should conform to the Argot Message format.\n* Returns: A [`Q`](https://github.com/kriskowal/q) promise containing the read data and the library that has been built as part of the process\n\nExample:\n\n```javascript\nvar argot = require('argot');\n\nvar stream = aStreamAppears();\n\nargot.readMessage(stream)\n  .then(function(libAndData) {\n    var lib = libAndData[0];\n    var data = libAndData[1];\n    // do something with the data here\n  })\n  .fail(function(err) {\n    // uh-oh,\n  });\n```\n\nRead more about for format at [Argot Message Format](https://github.com/danmidwood/argot.js/blob/master/doc/argotmessage_format.md)\n\n### Argot.read\n\nRead some data from a stream.\n\n* Params:\n  - `library` - A library containing data definitions\n  - `data` - A Node readable stream of data to be read\n  - `type` - Optional. The type of data being read, this should correspond to a type that the library knows about.\n* Returns: The read data. (This function performs no IO so we can run synchronously)\n\n> About Argot Definition identifiers, there are two identifiers, a Stream Id and a human readable name ('light.colour', 'person.name', etc). With Argot.js you only need to know about the name identifier.\n> When you call `read` and supply a type name then Argot knows exactly how to build your data. But without the type, the stream Id needs to be the first thing in the data stream, as a prompt to direct Argot to the type that should be built.\n>\n> For example, if you have a data type that has a Stream Id of 10 and a name of 'person', you can read an instance of that data with:\n> `argot.read(lib,data,'person')`\n>\n> For the same instance data, if you don't know that it's a 'person' type, but you do know that the stream begins with the Stream Id then the type name can be omitted.\n> `argot.read(lib,data)`\n\nExample, with known type:\n\n```javascript\nvar argot = require('argot');\n\nargot.loadDictionary('~/a/file/on/disk.dictionary')\n  .then(function(lib) {\n    var stream = aStreamAppears();\n    var data = argot.read(lib,stream,'yourtype');\n    // do something with data\n  })\n  .fail(function(err) {\n    // uh-oh,\n  });\n```\n\nExample, with unknown type:\n\n```javascript\nvar argot = require('argot');\n\nargot.loadDictionary('~/a/file/on/disk.dictionary')\n  .then(function(lib) {\n    var stream = aStreamAppears();\n    var data = argot.read(lib,stream);\n    // do something with data\n  })\n  .fail(function(err) {\n    // uh-oh,\n  });\n```\n\n## Development\n\nCheck it out the project and run `grunt` to perform a style check (jshint) and run through the tests.\n\nThe main points of interest are:\n\n* `argot.js` is the main file\n* `dictionary.js` deals with loading dictionaries from a file\n* `library.js` is the Argot library data type\n\nThere are a few other files, mostly supplementary.\n\n## License\nCopyright (c) 2014 Dan Midwood\n","maintainers":[{"name":"drex","email":"dan@danmidwood.com"}],"time":{"modified":"2022-06-13T03:26:20.554Z","created":"2014-02-16T22:43:41.595Z","0.1.0":"2014-02-16T22:43:41.595Z","0.1.1":"2014-02-17T17:10:05.330Z","0.1.2":"2014-02-17T22:22:40.053Z","0.1.3":"2014-02-17T22:33:30.174Z","0.1.4":"2014-02-28T21:47:47.411Z","0.1.5":"2014-02-28T22:09:07.646Z","0.1.6":"2014-03-03T17:22:02.949Z","0.1.7":"2014-03-03T17:52:13.913Z","0.1.8":"2014-03-09T21:02:32.157Z","0.1.9":"2014-03-11T21:19:55.519Z","0.1.10":"2014-03-14T19:26:31.991Z"},"readmeFilename":"README.md","homepage":"https://github.com/danmidwood/argot.js","keywords":[],"repository":{"type":"git","url":"git://github.com/danmidwood/argot.js.git"},"author":{"name":"Dan Midwood","email":"dan@danmidwood.com"},"bugs":{"url":"https://github.com/danmidwood/argot.js/issues"},"users":{}}