XRPLF / xrpl.js

A JavaScript/TypeScript API for interacting with the XRP Ledger in Node.js and the browser
https://xrpl.org/
1.2k stars 511 forks source link

Boilerplate error #710

Closed tuloski closed 8 years ago

tuloski commented 8 years ago

There is a small error in the boilerplate code here: https://ripple.com/build/rippleapi/

const {RippleAPI} = require('ripple-lib');

should be

const RippleAPI = require('ripple-lib').RippleAPI;
clark800 commented 8 years ago

This isn't technically an error because the docs state that you should use Babel for ES6 support. But it would be good to make the docs work with Node v4+ to get rid of the Babel dependency for running.