Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
viz-js-lib
Advanced tools
viz.js the JavaScript Library with API Support for VIZ blockchain
Here is full documentation: https://github.com/VIZ-Blockchain/viz-js-lib/tree/master/doc
$ npm install viz-js-lib --save
Online library minify js available in jsDelivr CND and Unpkg CDN.
<script src="./viz.min.js"></script>
<script>
viz.api.getAccounts(['ned', 'dan'], function(err, response){
console.log(err, response);
});
</script>
Library support 2 transport types: ws, wss for websocket and http, https for pure HTTP JSONRPC. Examples:
viz.config.set('websocket','wss://viz.lexai.host/');
viz.config.set('websocket','https://rpc.viz.ropox.app/');
var viz = require('viz-js-lib');//nodejs lib
var wif = viz.auth.toWif(username, password, 'posting');
viz.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
console.log(err, result);
});
viz.api.getAccounts(['ned', 'dan'], function(err, result) {
console.log(err, result);
});
Patches are welcome! Contributors are listed in the package.json file. Please run the tests before opening a pull request and make sure that you are passing all of them. If you would like to contribute, but don't know what to work on, check the issues list.
When you find issues, please report them!
MIT
FAQs
viz.js the JavaScript Library with API support for VIZ blockchain
The npm package viz-js-lib receives a total of 21 weekly downloads. As such, viz-js-lib popularity was classified as not popular.
We found that viz-js-lib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.