{"_id":"@boylikegirl/dsteem","name":"@boylikegirl/dsteem","dist-tags":{"latest":"0.12.1"},"versions":{"0.12.1":{"name":"@boylikegirl/dsteem","version":"0.12.1","description":"Steem blockchain RPC client library","author":{"name":"source:Johan Nordberg modify:Boylikegirl"},"license":"BSD-3-Clause","main":"./lib/index-node","typings":"./lib/index","browser":{"./lib/index-node":"./dist/dsteem.js","./src/index-node":"./dist/dsteem.js","./src/version":"./lib/version.js"},"repository":{"type":"git","url":"git+https://github.com/boylikegirl/dsteem.git"},"scripts":{"test":"make ci-test","prepublishOnly":"make all"},"keywords":["blockchain","client","rpc","steem","steemit"],"dependencies":{"bs58":"^4.0.1","bytebuffer":"^5.0.1","core-js":"^2.5.0","node-fetch":"^2.3.0","secp256k1":"^3.5.2","verror":"^1.10.0","whatwg-fetch":"^3.0.0"},"devDependencies":{"@types/bytebuffer":"^5.0.33","@types/mocha":"^5.2.5","@types/node":"^10.12.9","@types/verror":"^1.10.3","@babel/core":"^7.1.6","@babel/preset-env":"^7.1.6","babelify":"^10.0.0","browserify":"^16.2.3","coveralls":"^3.0.2","derequire":"^2.0.6","dts-generator":"^2.1.0","encoding":"^0.1.12","karma":"^3.1.1","karma-browserify":"^5.1.1","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.5","karma-sauce-launcher":"^1.2.0","lorem-ipsum":"^1.0.6","mocha":"^5.0.0","nyc":"^13.1.0","regenerator-runtime":"^0.13.1","ts-node":"^7.0.1","tsify":"^4.0.0","tslint":"^5.11.0","typedoc":"^0.13.0","typescript":"^3.1.6","uglify-js":"^3.4.9","watchify":"^3.11.0"},"gitHead":"c4c763ab15e9858131d1dceb1536cbb42efdb714","bugs":{"url":"https://github.com/boylikegirl/dsteem/issues"},"homepage":"https://github.com/boylikegirl/dsteem#readme","_id":"@boylikegirl/dsteem@0.12.1","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-DbH9h0Vt9OcX7aV7hJeAUwJlIEcA2TSCP7PSRHjkVqow1zBz4jo+aOG4QrmIgIGZSl/jXgSWh35xqMCdFwJHDw==","shasum":"c89356b5a2aa969aea7d38c26f21789e5ddd9a76","tarball":"https://registry.npmjs.org/@boylikegirl/dsteem/-/dsteem-0.12.1.tgz","fileCount":47,"unpackedSize":2133999,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICP73OsKc44pT4kzEjDOxYsZbJwNJvc6dgpOU0VJ5EW5AiAfyhtupfSbVl5pvwovzthV3+Wq3AOok4m/eMk8DlOtGQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9RefACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoHJA/+NEr1AxtY4lLQnbmVYWfJw+y2KoQhEV9X/O6tL4x8aan3jGjQ\r\nxXBb/J3a0E68DXIirSoBhR3N3COvzlV7Bgn42EWIEjqvcKcbwU2GC7p9mzGe\r\nRE+T4OtRp0fKmYq9kIli8MMaLc1Kvyljzlto76GWjL3msYQtKk+d0PDhjAOp\r\nPxf3j5zS3D0nw7CxEc6qQMMQROcA+J2xorj0p7JKZH/KEjtL2uOkLGkRTaba\r\nRVBHE0ZlfjReSUlV6qT/Hq66cAsDnAd3cKmh6SEHCZ8lsrw24rcDpTWpw1jV\r\n4HdloL1HObsxmqWXRaxbljWhcTIIQz/wyR9JunVkk8D+jSX/bcwyoe34u2s0\r\nGbRbyllktGv+WPUyYOMXCB8LuPBWu7BoIZM7VPlC047Z6Hfg7G93koQ0EJm1\r\nUIR3K5Jfoe/WC1brNKFew0zu4dLVBROluiVP2+VfEFqrsR7I5Zfb0kacnK3n\r\n563gchQfpMjsbAbDRYVKDogYMiLC4XKSMhok48//mFMK699AAkIzbb5lOqyu\r\nLfBI/Qx+EDqS5tEG7K3mKGA3bfHsfoGoCVuEBFkgsGdFQHjTYfpCHUjsh03k\r\ncCMBb+5Mt3hd0kfJtSKbzRnisz2ktXGqXSWTEZYMdbVdK4h/LsLIu3PG5KJC\r\nfBw+ucm1tjX93EE9XPh0GILyx+/l2SvGm+s=\r\n=S1Z2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"boylikegirl","email":"boy_like_girl@outlook.com"},"directories":{},"maintainers":[{"name":"boylikegirl","email":"boy_like_girl@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dsteem_0.12.1_1660229534764_0.12560631907628794"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-11T14:52:14.694Z","0.12.1":"2022-08-11T14:52:14.971Z","modified":"2022-08-11T14:52:15.107Z"},"maintainers":[{"name":"boylikegirl","email":"boy_like_girl@outlook.com"}],"description":"Steem blockchain RPC client library","homepage":"https://github.com/boylikegirl/dsteem#readme","keywords":["blockchain","client","rpc","steem","steemit"],"repository":{"type":"git","url":"git+https://github.com/boylikegirl/dsteem.git"},"author":{"name":"source:Johan Nordberg modify:Boylikegirl"},"bugs":{"url":"https://github.com/boylikegirl/dsteem/issues"},"license":"BSD-3-Clause","readme":"\n# [dsteem](https://github.com/jnordberg/dsteem) [![Build Status](https://img.shields.io/circleci/project/github/jnordberg/dsteem.svg?style=flat-square)](https://circleci.com/gh/jnordberg/workflows/dsteem) [![Coverage Status](https://img.shields.io/coveralls/jnordberg/dsteem.svg?style=flat-square)](https://coveralls.io/github/jnordberg/dsteem?branch=master) [![Package Version](https://img.shields.io/npm/v/dsteem.svg?style=flat-square)](https://www.npmjs.com/package/dsteem)\n\nRobust [steem blockchain](https://steem.io) client library that runs in both node.js and the browser.\n\n* [Demo](https://comments.steem.vc) ([source](https://github.com/jnordberg/dsteem/tree/master/examples/comment-feed))\n* [Code playground](https://playground.steem.vc)\n* [Documentation](https://jnordberg.github.io/dsteem/)\n* [Bug tracker](https://github.com/jnordberg/dsteem/issues)\n\n---\n\n**note** As of version 0.7.0 WebSocket support has been removed. The only transport provided now is HTTP(2). For most users the only change required is to swap `wss://` to `https://` in the address. If you run your own full node make sure to set the proper [CORS headers](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) if you plan to access it from a browser.\n\n---\n\n\nBrowser compatibility\n---------------------\n\n[![Build Status](https://saucelabs.com/browser-matrix/jnordberg-dsteem.svg)](https://saucelabs.com/open_sauce/user/jnordberg-dsteem)\n\n\nInstallation\n------------\n\n### Via npm\n\nFor node.js or the browser with [browserify](https://github.com/substack/node-browserify) or [webpack](https://github.com/webpack/webpack).\n\n```\nnpm install dsteem\n```\n\n### From cdn or self-hosted script\n\nGrab `dist/dsteem.js` from a [release](https://github.com/jnordberg/dsteem/releases) and include in your html:\n\n```html\n<script src=\"dsteem.js\"></script>\n```\n\nOr from the [unpkg](https://unpkg.com) cdn:\n\n```html\n<script src=\"https://unpkg.com/dsteem@^0.8.0/dist/dsteem.js\"></script>\n```\n\nMake sure to set the version you want when including from the cdn, you can also use `dsteem@latest` but that is not always desirable. See [unpkg.com](https://unpkg.com) for more information.\n\n\nUsage\n-----\n\n### In the browser\n\n```html\n<script src=\"https://unpkg.com/dsteem@latest/dist/dsteem.js\"></script>\n<script>\n    var client = new dsteem.Client('https://api.steemit.com')\n    client.database.getDiscussions('trending', {tag: 'writing', limit: 1}).then(function(discussions){\n        document.body.innerHTML += '<h1>' + discussions[0].title + '</h1>'\n        document.body.innerHTML += '<h2>by ' + discussions[0].author + '</h2>'\n        document.body.innerHTML += '<pre style=\"white-space: pre-wrap\">' + discussions[0].body + '</pre>'\n    })\n</script>\n```\n\nSee the [demo source](https://github.com/jnordberg/dsteem/tree/master/examples/comment-feed) for an example on how to setup a livereloading TypeScript pipeline with [wintersmith](https://github.com/jnordberg/wintersmith) and [browserify](https://github.com/substack/node-browserify).\n\n### In node.js\n\nWith TypeScript:\n\n```typescript\nimport {Client} from 'dsteem'\n\nconst client = new Client('https://api.steemit.com')\n\nfor await (const block of client.blockchain.getBlocks()) {\n    console.log(`New block, id: ${ block.block_id }`)\n}\n```\n\nWith JavaScript:\n\n```javascript\nvar dsteem = require('dsteem')\n\nvar client = new dsteem.Client('https://api.steemit.com')\nvar key = dsteem.PrivateKey.fromLogin('username', 'password', 'posting')\n\nclient.broadcast.vote({\n    voter: 'username',\n    author: 'almost-digital',\n    permlink: 'dsteem-is-the-best',\n    weight: 10000\n}, key).then(function(result){\n   console.log('Included in block: ' + result.block_num)\n}, function(error) {\n   console.error(error)\n})\n```\n\nWith ES2016 (node.js 7+):\n\n```javascript\nconst {Client} = require('dsteem')\n\nconst client = new Client('https://api.steemit.com')\n\nasync function main() {\n    const props = await client.database.getChainProperties()\n    console.log(`Maximum blocksize consensus: ${ props.maximum_block_size } bytes`)\n    client.disconnect()\n}\n\nmain().catch(console.error)\n```\n\nWith node.js streams:\n\n```javascript\nvar dsteem = require('dsteem')\nvar es = require('event-stream') // npm install event-stream\nvar util = require('util')\n\nvar client = new dsteem.Client('https://api.steemit.com')\n\nvar stream = client.blockchain.getBlockStream()\n\nstream.pipe(es.map(function(block, callback) {\n    callback(null, util.inspect(block, {colors: true, depth: null}) + '\\n')\n})).pipe(process.stdout)\n```\n\n\nBundling\n--------\n\nThe easiest way to bundle dsteem (with browserify, webpack etc.) is to just `npm install dsteem` and `require('dsteem')` which will give you well-tested (see browser compatibility matrix above) pre-bundled code guaranteed to JustWork™. However, that is not always desirable since it will not allow your bundler to de-duplicate any shared dependencies dsteem and your app might have.\n\nTo allow for deduplication you can `require('dsteem/lib/index-browser')`, or if you plan to provide your own polyfills: `require('dsteem/lib/index')`. See `src/index-browser.ts` for a list of polyfills expected.\n\n---\n\n*Share and Enjoy!*\n","readmeFilename":"README.md"}