{"_id":"stellar-lib","_rev":"50-7d181ae52007fd92898dae129602818a","name":"stellar-lib","dist-tags":{"0.10.1":"0.10.1","latest":"0.10.3"},"versions":{"0.9.1":{"name":"stellar-lib","version":"0.9.1","_id":"stellar-lib@0.9.1","maintainers":[{"name":"mkrecny","email":"mkrecny@gmail.com"}],"homepage":"https://github.com/stellar/stellar-lib","bugs":{"url":"https://github.com/stellar/stellar-lib/issues"},"dist":{"shasum":"4f8b159dc4828717a95949294b72c85190fb37dc","tarball":"https://registry.npmjs.org/stellar-lib/-/stellar-lib-0.9.1.tgz","integrity":"sha512-8v7XRH53bVWQgAFfPQ9Q9VVkdJTzJFVbG8ajY791mQ59uCzrG8EL4DaDR9Fga2LyIg7NitZvNuCHk2avrZQwaA==","signatures":[{"sig":"MEUCIQDdpwJtte9C/CSeT+lUtL9I+o0dHaf2Wd9SuKmeteLSjQIgKVk2T6pY0TDiKwGpBcZI+70r49HLXTMFABadpXFNZmM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/js/ripple","_from":"./","files":["src/js/*","bin/*","build/*","test/*","Makefile","Gruntfile.js"],"_shasum":"4f8b159dc4828717a95949294b72c85190fb37dc","engines":{"node":">=0.10.0"},"scripts":{"test":"istanbul test -x build/sjcl.js -x src/js/jsbn/* ./node_modules/.bin/_mocha -- --reporter spec test/*-test.js","build":"gulp","pretest":"gulp concat-sjcl","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"},"_npmUser":{"name":"mkrecny","email":"mkrecny@gmail.com"},"repository":{"url":"git://github.com/stellar/stellar-lib.git","type":"git"},"_npmVersion":"1.4.9","description":"Stellar JavaScript client library","directories":{"test":"test"},"dependencies":{"ws":"~0.4.31","async":"~0.9.0","extend":"~1.2.1","lru-cache":"~2.5.0","superagent":"^0.18.0","gulp-rename":"~1.2.0","gulp-uglify":"~0.3.0","tweetnacljs":"^0.9.1"},"devDependencies":{"gulp":"~3.6.2","nock":"^0.34.1","mocha":"~1.14.0","webpack":"~1.1.11","istanbul":"~0.2.10","coveralls":"~2.10.0","map-stream":"~0.1.0","gulp-concat":"~2.2.0","gulp-jshint":"~1.5.5"}},"0.9.2":{"name":"stellar-lib","version":"0.9.2","_id":"stellar-lib@0.9.2","maintainers":[{"name":"mkrecny","email":"mkrecny@gmail.com"}],"homepage":"https://github.com/mkrecny/stellar-lib","bugs":{"url":"https://github.com/mkrecny/stellar-lib/issues"},"dist":{"shasum":"2cc796080758d0594ec2a0478318827f52766b98","tarball":"https://registry.npmjs.org/stellar-lib/-/stellar-lib-0.9.2.tgz","integrity":"sha512-n6tX9drOJLOCC4e5ZW7v/dAi2MpagYS7yEQqhWYmTwA06sQLLVlLdqvWpakFfCQLLrdHUDGQrOvZnLM09CZK3w==","signatures":[{"sig":"MEQCICeqjSVE0yPCl4Vw6o1OlmFl7w3SM+zdYuiszNUHFJyNAiA5nmEQloMv3sS+8wv7mML49qHhaBVorRQY616StE7ffg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/js/ripple","_from":"./","files":["src/js/*","bin/*","build/*","test/*","Makefile","Gruntfile.js"],"_shasum":"2cc796080758d0594ec2a0478318827f52766b98","engines":{"node":">=0.10.0"},"scripts":{"test":"istanbul test -x build/sjcl.js -x src/js/jsbn/* ./node_modules/.bin/_mocha -- --reporter spec test/*-test.js","build":"gulp","pretest":"gulp concat-sjcl","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"},"_npmUser":{"name":"mkrecny","email":"mkrecny@gmail.com"},"repository":{"url":"git://github.com/mkrecny/stellar-lib.git","type":"git"},"_npmVersion":"1.4.9","description":"Stellar JavaScript client library","directories":{"test":"test"},"dependencies":{"ws":"~0.4.31","async":"~0.9.0","extend":"~1.2.1","lru-cache":"~2.5.0","superagent":"^0.18.0","gulp-rename":"~1.2.0","gulp-uglify":"~0.3.0","tweetnacljs":"^0.9.1"},"devDependencies":{"gulp":"~3.6.2","nock":"^0.34.1","mocha":"~1.14.0","webpack":"~1.1.11","istanbul":"~0.2.10","coveralls":"~2.10.0","map-stream":"~0.1.0","gulp-concat":"~2.2.0","gulp-jshint":"~1.5.5"}},"0.9.3":{"name":"stellar-lib","version":"0.9.3","_id":"stellar-lib@0.9.3","maintainers":[{"name":"stellar","email":"npm@stellar.org"}],"homepage":"https://github.com/stellar/stellar-lib","bugs":{"url":"https://github.com/stellar/stellar-lib/issues"},"dist":{"shasum":"27ad707edb3fd0af4b1c022da2b69ec8480d5671","tarball":"https://registry.npmjs.org/stellar-lib/-/stellar-lib-0.9.3.tgz","integrity":"sha512-MXNsbGavqJkXbkWQG6Q16yMsl081Hdty8AjpJ/nTp2U5QepRqxXp5lEqEsiTzYH8/tKOCZQ5jx87DCOSMOiSxw==","signatures":[{"sig":"MEUCIHUPILra6kKIoL6Zm2Ywx9brUZpbic8Bry/n9QK/TnSPAiEAr5+brzk1JEf0VcoBxWgrKUxxgr94kad5dB6SFIZPdMo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/js/ripple","_from":".","files":["src/js/*","bin/*","build/*","test/*","Makefile","Gruntfile.js"],"_shasum":"27ad707edb3fd0af4b1c022da2b69ec8480d5671","engines":{"node":">=0.10.0"},"gitHead":"05161c1c8a9f905c51c6c7981cd4add2e909dbf9","scripts":{"test":"istanbul test -x build/sjcl.js -x src/js/jsbn/* ./node_modules/.bin/_mocha -- --reporter spec test/*-test.js","build":"gulp","pretest":"gulp build","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"},"_npmUser":{"name":"stellar","email":"npm@stellar.org"},"repository":{"url":"git://github.com/stellar/stellar-lib.git","type":"git"},"_npmVersion":"1.4.23","description":"Stellar JavaScript client library","directories":{"test":"test"},"dependencies":{"ws":"~0.4.31","sjcl":"git+https://github.com/stellar/sjcl.git","async":"~0.9.0","extend":"~1.2.1","lru-cache":"~2.5.0","tweetnacl":"git+https://github.com/stellar/tweetnacl-js.git","superagent":"^0.18.0","gulp-rename":"~1.2.0","gulp-uglify":"~0.3.0"},"devDependencies":{"gulp":"~3.6.2","nock":"^0.34.1","mocha":"~1.14.0","webpack":"~1.1.11","istanbul":"~0.2.10","coveralls":"~2.10.0","map-stream":"~0.1.0","gulp-concat":"~2.2.0","gulp-jshint":"~1.5.5"}},"0.9.6":{"name":"stellar-lib","version":"0.9.6","_id":"stellar-lib@0.9.6","maintainers":[{"name":"stellar","email":"npm@stellar.org"}],"homepage":"https://github.com/stellar/stellar-lib","bugs":{"url":"https://github.com/stellar/stellar-lib/issues"},"dist":{"shasum":"7a9e5fd9b2e10e15623ba3e336cc5b05f9294185","tarball":"https://registry.npmjs.org/stellar-lib/-/stellar-lib-0.9.6.tgz","integrity":"sha512-H15MyH+4ITP7pcjoZC6anWNSx7A0nqQGkdTcmrUjHz/YXTOdz0KrbkSWuvJwYC/2CE5jdl2siMEsSE+2Y7eckg==","signatures":[{"sig":"MEUCIQC+Qh3ohVHdWT/w8k3IH9GaCa3pn0mvfN1OxbP1FJ8zfwIgOcgMNU6LuazUKVUyWHeTbyFhbAzkX5eGqjNR0NiOVOI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/js/ripple","_from":".","files":["src/js/*","bin/*","build/*","test/*","Makefile","Gruntfile.js"],"_shasum":"7a9e5fd9b2e10e15623ba3e336cc5b05f9294185","engines":{"node":">=0.10.0"},"gitHead":"a415f0e79f1b17009821afc5ec335bc342caf5a3","scripts":{"test":"istanbul test -x src/js/jsbn/* ./node_modules/.bin/_mocha -- --reporter spec test/*-test.js","build":"gulp","pretest":"gulp build","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"},"_npmUser":{"name":"stellar","email":"npm@stellar.org"},"repository":{"url":"git://github.com/stellar/stellar-lib.git","type":"git"},"_npmVersion":"2.0.2","description":"Stellar JavaScript client library","directories":{"test":"test"},"_nodeVersion":"0.10.31","dependencies":{"ws":"~0.4.31","sjcl":"git+https://github.com/stellar/sjcl.git","async":"~0.9.0","extend":"~1.2.1","lru-cache":"~2.5.0","ripemd160":"0.2.0","tweetnacl":"git+https://github.com/stellar/tweetnacl-js.git","superagent":"^0.18.0","gulp-rename":"~1.2.0","gulp-uglify":"~0.3.0"},"devDependencies":{"gulp":"~3.6.2","nock":"^0.34.1","mocha":"~1.14.0","webpack":"~1.1.11","istanbul":"~0.2.10","coveralls":"~2.10.0","map-stream":"~0.1.0","gulp-concat":"~2.2.0","gulp-jshint":"~1.5.5"}},"0.10.1":{"name":"stellar-lib","version":"0.10.1","_id":"stellar-lib@0.10.1","maintainers":[{"name":"stellar","email":"npm@stellar.org"}],"homepage":"https://github.com/stellar/stellar-lib","bugs":{"url":"https://github.com/stellar/stellar-lib/issues"},"dist":{"shasum":"cc135df1b1e5fa71c33ffc8ddb8d98393aff9016","tarball":"https://registry.npmjs.org/stellar-lib/-/stellar-lib-0.10.1.tgz","integrity":"sha512-Fd9Lo9/a9P1TUEqL2U0KzZCneh2gNza/zybRH1r7aOlUHr9IlrIZMu+S0GV84InEfkQ0WORnlGppamvavQgZbg==","signatures":[{"sig":"MEUCIB4rEV0tJFQafOjyLbnGjj2anug9woUR48vJhNHlpR9TAiEAv4TU4SNqQnJHLez3HCQKL6uy5kzSoctlNgHCHjmdfis=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/js/ripple","_from":".","files":["src/js/*","bin/*","build/*","test/*","Makefile","Gruntfile.js"],"_shasum":"cc135df1b1e5fa71c33ffc8ddb8d98393aff9016","engines":{"node":">=0.10.0"},"gitHead":"f8454394ba2bdcd43c75d1043126a15eaa061680","scripts":{"test":"istanbul test -x src/js/jsbn/* ./node_modules/.bin/_mocha -- --reporter spec test/*-test.js","build":"gulp","pretest":"gulp build","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"},"_npmUser":{"name":"stellar","email":"npm@stellar.org"},"repository":{"url":"git://github.com/stellar/stellar-lib.git","type":"git"},"_npmVersion":"1.4.13","description":"Stellar JavaScript client library","directories":{"test":"test"},"dependencies":{"ws":"~0.4.31","sjcl":"git+https://github.com/stellar/sjcl.git","async":"~0.9.0","extend":"~1.2.1","lru-cache":"~2.5.0","ripemd160":"0.2.0","tweetnacl":"git+https://github.com/stellar/tweetnacl-js.git","superagent":"^0.18.0","gulp-rename":"~1.2.0","gulp-uglify":"~0.3.0"},"devDependencies":{"gulp":"~3.6.2","nock":"^0.34.1","mocha":"~1.14.0","webpack":"~1.1.11","istanbul":"~0.2.10","coveralls":"~2.10.0","map-stream":"~0.1.0","gulp-concat":"~2.2.0","gulp-jshint":"~1.5.5"}},"0.10.2":{"name":"stellar-lib","version":"0.10.2","_id":"stellar-lib@0.10.2","maintainers":[{"name":"stellar","email":"npm@stellar.org"}],"homepage":"https://github.com/stellar/stellar-lib","bugs":{"url":"https://github.com/stellar/stellar-lib/issues"},"dist":{"shasum":"c036c57420bc931fd5b31bf89da0deeb10fcdefa","tarball":"https://registry.npmjs.org/stellar-lib/-/stellar-lib-0.10.2.tgz","integrity":"sha512-uAeuoSdj0NVuYauxpLhAYRIT1ZUaOg4beMlJGpX7CEgDQpU+1n8IQbJiYPZowz5wqJjoVSzuOKAER7fTa1jUJw==","signatures":[{"sig":"MEUCIA1f+4sxM49NFUM83ULj9QM36qQ0PEbKMF9yA043rUGbAiEAqnwlLsF0fV3zuVCE9Ff16SacQgvXRpPjJUKMJwHlUAA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/js/ripple","_from":".","files":["src/js/*","bin/*","build/*","test/*","Makefile","Gruntfile.js"],"_shasum":"c036c57420bc931fd5b31bf89da0deeb10fcdefa","engines":{"node":">=0.10.0"},"gitHead":"94acfa578955033a28d902d1833d9b093aa37c43","scripts":{"test":"istanbul test -x src/js/jsbn/* ./node_modules/.bin/_mocha -- --reporter spec test/*-test.js","build":"gulp","pretest":"gulp build","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"},"_npmUser":{"name":"stellar","email":"npm@stellar.org"},"repository":{"url":"git://github.com/stellar/stellar-lib.git","type":"git"},"_npmVersion":"1.4.13","description":"Stellar JavaScript client library","directories":{"test":"test"},"dependencies":{"ws":"~0.4.31","sjcl":"git+https://github.com/stellar/sjcl.git","async":"~0.9.0","extend":"~1.2.1","lru-cache":"~2.5.0","ripemd160":"0.2.0","tweetnacl":"git+https://github.com/stellar/tweetnacl-js.git","superagent":"^0.18.0","gulp-rename":"~1.2.0","gulp-uglify":"~0.3.0"},"devDependencies":{"gulp":"~3.6.2","nock":"^0.34.1","mocha":"~1.14.0","webpack":"~1.1.11","istanbul":"~0.2.10","coveralls":"~2.10.0","map-stream":"~0.1.0","gulp-concat":"~2.2.0","gulp-jshint":"~1.5.5"}},"0.10.3":{"name":"stellar-lib","version":"0.10.3","_id":"stellar-lib@0.10.3","maintainers":[{"name":"stellar","email":"npm@stellar.org"}],"homepage":"https://github.com/stellar/stellar-lib","bugs":{"url":"https://github.com/stellar/stellar-lib/issues"},"dist":{"shasum":"fc713deb61b3721e6c414b81f9eea05daf7369bf","tarball":"https://registry.npmjs.org/stellar-lib/-/stellar-lib-0.10.3.tgz","integrity":"sha512-Rc1JxlNnV4Bk/4/hO/yS11YgNupJTCR3UTHOrCydJSuy2qFnbxUvVb+Rdt5MG7XwHjXBUywVADgF8a6zdn6pKA==","signatures":[{"sig":"MEUCIQDFAarF3qveWLKwpAFEP9sNfURefbgJfwKjzubxl0l8WwIgbFz1VsYf6I/lyfrTGjUp59du1gEqT2qypDE7C48hm0A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/js/ripple","_from":".","files":["src/js/*","bin/*","build/*","test/*","Makefile","Gruntfile.js"],"_shasum":"fc713deb61b3721e6c414b81f9eea05daf7369bf","engines":{"node":">=0.10.0"},"gitHead":"6cc16512d173221fb7e77eb7fc6791b8198d3512","scripts":{"test":"istanbul test -x src/js/jsbn/* ./node_modules/.bin/_mocha -- --reporter spec test/*-test.js","build":"gulp","pretest":"gulp build","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"},"_npmUser":{"name":"stellar","email":"npm@stellar.org"},"repository":{"url":"git://github.com/stellar/stellar-lib.git","type":"git"},"_npmVersion":"2.1.11","description":"Stellar JavaScript client library","directories":{"test":"test"},"_nodeVersion":"0.10.32","dependencies":{"ws":"~0.4.31","sjcl":"git+https://github.com/stellar/sjcl.git","async":"~0.9.0","extend":"~1.2.1","lru-cache":"~2.5.0","ripemd160":"0.2.0","tweetnacl":"git+https://github.com/stellar/tweetnacl-js.git","superagent":"^0.18.0","gulp-rename":"~1.2.0","gulp-uglify":"~0.3.0"},"devDependencies":{"gulp":"~3.6.2","nock":"^0.34.1","mocha":"~1.14.0","webpack":"~1.1.11","istanbul":"~0.2.10","coveralls":"~2.10.0","map-stream":"~0.1.0","gulp-concat":"~2.2.0","gulp-jshint":"~1.5.5"}}},"time":{"created":"2014-07-31T20:09:15.161Z","modified":"2025-10-16T12:50:47.295Z","0.9.0":"2014-07-31T20:09:15.161Z","0.9.1":"2014-08-04T15:08:07.758Z","0.9.2":"2014-08-04T19:21:21.464Z","0.9.3":"2014-09-24T15:51:16.577Z","0.9.6":"2014-10-08T22:10:34.883Z","0.10.1":"2014-11-04T21:15:31.691Z","0.10.2":"2014-12-11T21:52:42.950Z","0.10.3":"2014-12-16T21:42:32.406Z"},"bugs":{"url":"https://github.com/stellar/stellar-lib/issues"},"homepage":"https://github.com/stellar/stellar-lib","repository":{"url":"git://github.com/stellar/stellar-lib.git","type":"git"},"description":"Stellar JavaScript client library","maintainers":[{"email":"ops+stellar-npm-ci@stellar.org","name":"stellar-npm-ci"},{"email":"npm@stellar.org","name":"stellar-npm"},{"email":"iveta@stellar.org","name":"quietbits"},{"email":"account@nykis.net","name":"jacekn"},{"email":"nando@stellar.org","name":"fnando_sdf"},{"email":"cassio@stellar.org","name":"cassiomg"},{"email":"pbasu235@gmail.com","name":"piyalbasu"}],"readme":"#The Stellar JavaScript Library\n\n`stellar-lib` connects to the Stellar network via the WebSocket protocol.  It runs in Node.js or in the browser.\n\n\n\n###Use stellar-lib for:\n\n+ Connecting to a local or remote stellard in JavaScript (Node.js or browser)\n+ Issuing [stellard API](https://www.stellar.org/api/) requests\n+ Listening to events on the stellar network (transaction, ledger, etc.)\n+ Signing and submitting transactions to the stellar network\n\n###In this file:\n\n1. Overview\n2. [Getting `stellar-lib`](README.md#getting-stellar-lib)\n3. [Quickstart](README.md#quickstart)\n4. [Running tests](https://github.com/stellar/stellar-lib#running-tests)\n\n###For additional documentation see:\n\n1. [The `stellar-lib` Guides (docs/GUIDES.md)](docs/GUIDES.md)\n2. [The `stellar-lib` API Reference (docs/REFERENCE.md)](docs/REFERENCE.md)\n\n\n###Also see:\n\n+ https://wiki.stellar.org/\n+ https://www.stellar.org/\n\n##Getting `stellar-lib`\n\n**Via npm for Node.js**\n\n```\n  $ npm install stellar-lib\n```\n\n**Build from the source using `gulp`**\n\n```\n  $ git clone https://github.com/stellar/stellar-lib\n  $ cd stellar-lib\n  $ npm install\n  $ gulp\n```\n\nThen use the minified `build/stellar-*-min.js` in your webpage\n\n##Quickstart\n\n`Remote` ([remote.js](https://github.com/stellar/stellar-lib/blob/develop/src/js/stellar/remote.js)) is the module responsible for managing connections to `stellard` servers:\n\n```js\n/* Loading stellar-lib with Node.js */\nvar Remote = require('stellar-lib').Remote;\n\n/* Loading stellar-lib in a webpage */\n// var Remote = stellar.Remote;\n\nvar remote = new Remote({\n  // see the API Reference for available options\n  trusted:        true,\n  local_signing:  true,\n  local_fee:      true,\n  fee_cushion:     1.5,\n  servers: [\n    {\n        host:    'live.stellar.org'\n      , port:    9001\n      , secure:  true\n    }\n  ]\n});\n\nremote.connect(function() {\n  /* remote connected */\n\n  // see the API Reference for available functions\n});\n```\n\nSee [The `stellar-lib` Guides](docs/GUIDES.md) and [The `stellar-lib` API Reference](docs/REFERENCE.md) for walkthroughs and details about all of the available functions and options.\n\n##Running tests\n\n1. Clone the repository\n\n2. `cd` into the repository and install dependencies with `npm install`\n\n3. `npm test` or `make test` or `node_modules\\.bin\\mocha test\\*-test.js` \n\n**Generating code coverage**\n\nstellar-lib uses `istanbul` to generate code coverage. To create a code coverage report, run `npm test --coverage`. The report will be created in `coverage/lcov-report/`.\n","readmeFilename":"README.md"}