New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

z85

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

z85

ZeroMQ Base-85 Encoding

0.0.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

Build Status Coverage Status

#z85

ZeroMQ Base-85 Encoding for node.js

Intallation

$ npm install z85

Example

The test case in the rfc:

var z85 = require('z85');

var bytes = new Buffer([0x86, 0x4F, 0xD2, 0x6F, 0xB5, 0x59, 0xF7, 0x5B]);
	result = z85.encode(bytes);
	
console.log('Encoded:', result); // HelloWorld

var string = 'HelloWorld',
	result = z85.decode(string);
	
console.log('Decoded:', result.toString('hex')); // 864fd26fb559f75b

Running tests

Install dev dependencies:

$ npm install

Test:

$ npm test

With code coverage info (using istanbul):

$ npm install -g istanbul
$ make test-cov

A full code coverage report can be found in coverage/lcov-report/index.html after the tests complete

Keywords

z85

FAQs

Package last updated on 19 Mar 2014

Did you know?

Socket

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.

Install

Related posts