{"name":"ripple-lib","version":"0.7.38-beta","_id":"ripple-lib@0.7.38-beta","maintainers":[{"name":"ahbritto","email":"ahbritto@gmail.com"},{"name":"justmoon","email":"justmoon@members.fsf.org"},{"name":"wltsmrz","email":"wltsmrz@gmail.com"},{"name":"geertweening","email":"geertweening@gmail.com"}],"homepage":"https://github.com/ripple/ripple-lib","bugs":{"url":"https://github.com/ripple/ripple-lib/issues"},"dist":{"shasum":"b2d72f46418ba92e3f5aadea657264e91ab944ae","tarball":"http://registry-npm.ywwl.com/ripple-lib/download/ripple-lib-0.7.38-beta.tgz","integrity":"sha512-WraE1T1ewN41x+37Ra7cYXd7gyeRMhDzLoaIbh3srOLZU970B+zjTRDSBlfQFfKb9yfd3i+0u/gDkFOsOEgLnw==","signatures":[{"sig":"MEUCIGTKeeyWH169XQ/Qh+zYL0Heugg+MZf7b9fqK4xYh2w/AiEAoDg4FkcpVoGKA2B/naXVzz9giSzAhIGEVDxVy2Tst/g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":10424432,"noattachment":false,"key":"/ripple-lib/-/ripple-lib-0.7.38-beta.tgz"},"main":"src/js/ripple","_from":".","files":["src/js/*","bin/*","build/*","test/*","Makefile","Gulpfile.js"],"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":"geertweening","email":"geertweening@gmail.com"},"deprecated":"ripple-lib is deprecated. Please migrate to xrpl.js using this migration guide: https://xrpl.org/xrpljs2-migration-guide.html","repository":{"url":"git://github.com/ripple/ripple-lib.git","type":"git"},"_npmVersion":"1.3.24","description":"Ripple JavaScript client library","directories":{"test":"test"},"dependencies":{"ws":"~0.4.31","async":"~0.8.0","extend":"~1.2.1","lru-cache":"~2.5.0","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"},"readme":"## Deprecated\n\nThis library (ripple-lib 1.x) has been deprecated in favor of [xrpl.js version 2+](https://github.com/XRPLF/xrpl.js).\n\n# ripple-lib (RippleAPI)\n\nA JavaScript/TypeScript API for interacting with the XRP Ledger\n\n[![NPM](https://nodei.co/npm/ripple-lib.png)](https://www.npmjs.org/package/ripple-lib)\n\nThis library is for integrating a JavaScript/TypeScript app with the XRP Ledger and supports functionality such as IOUs, payment paths, the decentralized exchange, account settings, payment channels, escrows, multi-signing, and more.\n\n## [➡️ Reference Documentation](https://github.com/XRPLF/xrpl.js/blob/1.x/docs/index.md)\n\nUse the above link to view the full reference documentation.\n\n### Features\n\n+ Connect to a `rippled` server from Node.js or a web browser\n+ Helpers for creating requests and parsing responses for the [rippled API](https://developers.ripple.com/rippled-api.html)\n+ Listen to events on the XRP Ledger (transactions, ledger, validations, etc.)\n+ Sign and submit transactions to the XRP Ledger\n+ Type definitions for TypeScript\n\n### Requirements\n\n+ **[Node.js v14](https://nodejs.org/)** is recommended. Other versions may work but are not frequently tested.\n+ **[Yarn](https://yarnpkg.com/)** is recommended. `npm` may work but we use `yarn.lock`.\n\n## Getting Started\n\nSee also: [RippleAPI Beginners Guide](https://xrpl.org/get-started-with-rippleapi-for-javascript.html)\n\nIn an existing project (with `package.json`), install `ripple-lib`:\n```\n$ yarn add ripple-lib\n```\n\nThen see the [documentation](#documentation).\n\n### Using ripple-lib with React Native\n\nIf you want to use `ripple-lib` with React Native you will need to have some of the NodeJS modules available. To help with this you can use a module like [rn-nodeify](https://github.com/tradle/rn-nodeify).\n\n1. Install dependencies (you can use `npm` as well):\n\n    ```shell\n    yarn add react-native-crypto\n    yarn add ripple-lib \n    # install peer deps\n    yarn add react-native-randombytes\n    # install latest rn-nodeify\n    yarn add rn-nodeify@latest --dev\n    ```\n\n2. After that, run the following command:\n\n    ```shell\n    # install node core shims and recursively hack package.json files\n    # in ./node_modules to add/update the \"browser\"/\"react-native\" field with relevant mappings\n    ./node_modules/.bin/rn-nodeify --hack --install\n    ```\n\n3. Enable `crypto`:\n\n    `rn-nodeify` will create a `shim.js` file in the project root directory.\n    Open it and uncomment the line that requires the crypto module:\n\n    ```javascript\n    // If using the crypto shim, uncomment the following line to ensure\n    // crypto is loaded first, so it can populate global.crypto\n    require('crypto')\n    ```\n\n4. Import `shim` in your project (it must be the first line):\n\n  ```javascript\n  import './shim'\n  ...\n  ```\n\n### Using ripple-lib with Deno\n\nUntil official support for [Deno](https://deno.land) is added, you can use the following work-around to use `ripple-lib` with Deno:\n\n```javascript\nimport ripple from 'https://dev.jspm.io/npm:ripple-lib';\n\n(async () => {\n  const api = new (ripple as any).RippleAPI({ server: 'wss://s.altnet.rippletest.net:51233' });\n  const address = 'rH8NxV12EuV...khfJ5uw9kT';\n\n  api.connect().then(() => {\n    api.getBalances(address).then((balances: any) => {\n      console.log(JSON.stringify(balances, null, 2));\n    });\n  });\n})();\n```\n\n## Documentation\n\n+ [RippleAPI Beginners Guide](https://xrpl.org/get-started-with-rippleapi-for-javascript.html)\n+ [RippleAPI Full Reference Documentation](https://xrpl.org/rippleapi-reference.html) ([in this repo](https://github.com/ripple/ripple-lib/blob/develop/docs/index.md))\n+ [Code Samples](https://github.com/ripple/ripple-lib/tree/develop/docs/samples)\n+ [XRP Ledger Dev Portal](https://xrpl.org/)\n\n### Mailing Lists\n\nWe have a low-traffic mailing list for announcements of new ripple-lib releases. (About 1 email per week)\n\n+ [Subscribe to xrpl-announce](https://groups.google.com/g/xrpl-announce)\n\nIf you're using the XRP Ledger in production, you should run a [rippled server](https://github.com/ripple/rippled) and subscribe to the ripple-server mailing list as well.\n\n+ [Subscribe to ripple-server](https://groups.google.com/forum/#!forum/ripple-server)\n\n## Development\n\nTo build the library for Node.js and the browser:\n```\n$ yarn build\n```\n\nThe TypeScript compiler will [output](./tsconfig.json#L7) the resulting JS files in `./dist/npm/`.\n\nwebpack will output the resulting JS files in `./build/`.\n\nFor details, see the `scripts` in `package.json`.\n\n## Running Tests\n\n### Unit Tests\n\n1. Clone the repository\n2. `cd` into the repository and install dependencies with `yarn install`\n3. `yarn test`\n\n### Linting\n\nRun `yarn lint` to lint the code with `eslint`.\n\n## Generating Documentation\n\nDo not edit `./docs/index.md` directly because it is a generated file.\n\nInstead, edit the appropriate `.md.ejs` files in `./docs/src/`.\n\nIf you make changes to the JSON schemas, fixtures, or documentation sources, update the documentation by running `yarn run docgen`.\n","publish_time":1406152527234,"_cnpm_publish_time":1406152527234,"dist-tags":{"beta":"1.9.3-beta.0","latest":"1.10.1","storm":"1.9.8-storm.4"}}