New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

telehash-token

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telehash-token

Adding hashtoken support to telehash-js

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

hashtoken

Adding hashtoken support to telehash-js

Usage

var self = new require("telehash-js").switch();
require("telehash-token").install(self);

// returns a token string
self.token();

// returns a token string, fires callback(from) when it's called
self.token(callback);

// listens for token, fires callback(from) when it's called
self.token(token, callback);

// called for any un-matched tokens
self.tokens = function(token, from, callback){ callback(true||false); };

// use a token, fires callback(err, to)
self.dispense(token, callback);

Keywords

telehash

FAQs

Package last updated on 18 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