npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nblib2

v1.1.32

Published

Library for NBdomain

Downloads

114

Readme

nblib2

Library for NBdomain

Functions

setOpay(opay)

Set opay object to be used in webpage.

Kind: global function

| Param | Type | Description | | --- | --- | --- | | opay | object | opay or opay2 object |

sha256(string) ⇒ string

Kind: global function
Returns: string - hashed string

| Param | Type | Description | | --- | --- | --- | | string | string | to hash |

getDomain(root) ⇒ object

Kind: global function
Returns: object - domain object

| Param | Type | Description | | --- | --- | --- | | root | string | domain name |

setPrivateKey(privateKey)

Kind: global function

| Param | Type | Description | | --- | --- | --- | | privateKey | string | to be used with nodeJS app |

makePublic(domain) ⇒ json

Make a domain as public, so everyone can write to it. inreversible.

Kind: global function
Returns: json - result

| Param | Type | Description | | --- | --- | --- | | domain | string | to set as public |

writePublicDomain(option) ⇒ json

Write contents to a public domain

Kind: global function
Returns: json - result of the update

| Param | Type | Description | | --- | --- | --- | | option | object | option of the update | | option.kv | object | key/value pairs. eg: for key {abc:{abc:"234"}} or {abc:{def:100}} or for keys ab and cd {ab:100,cd:200} | | option.isUser | Boolean | indicate it's for key.domain.tld or [email protected] | | option.pay | Array.<object> | object array. eg: [{address:"dfdaf"},value:1000}]. some blockchain, like ar, only supports one receiver per tx |

updateKey2(option) ⇒ json

Kind: global function
Returns: json - result of the update

| Param | Type | Description | | --- | --- | --- | | option | object | option of the update | | option.kv | object | key/value pairs. eg: for key {abc:{abc:"234"}} or {abc:{def:100}} or for keys ab and cd {ab:100,cd:200} | | option.tags | string | string. eg: for key {abc:{abc:"234"}} or {abc:{def:100}} or for keys ab and cd {ab:100,cd:200} | | option.isUser | Boolean | indicate it's for key.domain.tld or [email protected] | | option.pay | Array.<object> | object array. eg: [{address:"dfdaf"},value:1000}]. some blockchain, like ar, only supports one receiver per tx |

verifySig(data_hash, strSig) ⇒ bool

Kind: global function
Returns: bool - result of verify

| Param | Type | Description | | --- | --- | --- | | data_hash | string | hasded string of data | | strSig | string | signature |

buy(option) ⇒ json

Kind: global function
Returns: json - result

| Param | Type | Description | | --- | --- | --- | | option | object | - | | option.domain | domain | domain to buy |

getNodeInfo() ⇒ json

Kind: global function
Returns: json - nodeInfo from node

queryDomain(domain, full) ⇒ json

Kind: global function

| Param | Type | Default | Description | | --- | --- | --- | --- | | domain | string | | one or more domains, separated by ',' .eg "test.b" "test.b,www.abc.b" "aaa.test886.test/all,aaa.test886.test/1" | | full | Boolean | false | |

domainFromAddress(address) ⇒ json

Kind: global function
Returns: json - result

| Param | Type | Description | | --- | --- | --- | | address | string | address of the domains |