Install

Node.js

npm install @steemit/steem-js --save
const steem = require('@steemit/steem-js');

Browser

A pre-built bundle is published in dist/steem.min.js.

<script src="./steem.min.js"></script>
<script>
  steem.api.getAccounts(['ned', 'dan'], function (err, response) {
    console.log(err, response);
  });
</script>

CDN

<script src="https://cdn.jsdelivr.net/npm/steem/dist/steem.min.js"></script>

Webpack

See the webpack usage example in the repository.

Building from source

The published package is compiled by Babel/webpack from src/:

npm run build          # both targets
npm run build-node     # CommonJS -> lib/
npm run build-browser  # bundle  -> dist/steem.min.js

This site uses Just the Docs, a documentation theme for Jekyll.