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 🙏

© 2026 – Pkg Stats / Ryan Hefner

nel-neo-thinsdk

v0.0.9

Published

NEL's NEO thinSDK

Downloads

18

Readme

init

npm init

npm install

npm i nel-neo-thinsdk

Test Code(Maybe like app.js)

var thinNeo = require("nel-neo-thinsdk");

test_1();
console.log("");
test_2();
console.log("");
test_3();
console.log("");
test_4();
console.log("");
test_5();
console.log("");
test_6();
console.log("");
test_7();

function test_1() {
    console.log("Cryptography");
    var addr = "ALjSnMZidJqd18iQaoCgFun6iqWRm2cVtj";
    var uint8 = ThinNeo.Helper.GetPublicKeyScriptHash_FromAddress(addr);
    var hexstr = uint8.reverse().toHexString();
    console.log("addr=" + addr);
    console.log("hex=" + hexstr);

}
function test_2() {
    console.log("Hash2Address");
    var hexstr = "0x0b193415c6f098b02e81a3b14d0e3b08e9c3f79a";
    var hashrev = hexstr.hexToBytes();
    var hash = hashrev.reverse();
    var addr = ThinNeo.Helper.GetAddressFromScriptHash(hash);
    console.log("hex=" + hexstr);
    console.log("addr=" + addr);

}
function test_3() {
    console.log("Test_Pubkey2Address");

    var pubkey = "02bf055764de0320c8221920d856d3d9b93dfc1dcbc759a560fd42553aa025ba5c";
    var bytes = pubkey.hexToBytes();
    var addr = ThinNeo.Helper.GetAddressFromPublicKey(bytes);
    console.log("pubkey=" + pubkey);
    console.log("addr=" + addr);
}
function test_4() {
    console.log("WifDecode");
    var wif = "L2CmHCqgeNHL1i9XFhTLzUXsdr5LGjag4d56YY98FqEi4j5d83Mv";
    var prikey = ThinNeo.Helper.GetPrivateKeyFromWIF(wif);
    var pubkey = ThinNeo.Helper.GetPublicKeyFromPrivateKey(prikey);
    var addr = ThinNeo.Helper.GetAddressFromPublicKey(pubkey);
    console.log("wif=" + wif);
    console.log("prikey=" + prikey.toHexString());
    console.log("pubkey=" + pubkey.toHexString());
    console.log("addr=" + addr);

}
function test_5() {
    console.log("Sign&Vertify");
    var wif = "L2CmHCqgeNHL1i9XFhTLzUXsdr5LGjag4d56YY98FqEi4j5d83Mv";
    var prikey = ThinNeo.Helper.GetPrivateKeyFromWIF(wif);
    var pubkey = ThinNeo.Helper.GetPublicKeyFromPrivateKey(prikey);
    var addr = ThinNeo.Helper.GetAddressFromPublicKey(pubkey);

    var signdata = "010203ff1122abcd";
    var message = signdata.hexToBytes();
    var data = ThinNeo.Helper.Sign(message, prikey);
    console.log("wif=" + wif);
    console.log("addr=" + addr);
    console.log("sign=" + data.toHexString());

    var b = ThinNeo.Helper.VerifySignature(message, data, pubkey);
    console.log("verify=" + b);
}
function test_6() {
    console.log("Nep2->Prikey");
    var nep2 = "6PYT8kA51ffcAv3bJzbfcT6Uuc32QS5wHEjneRdkPYFxZSrirVHRPEpVwN";
    var n = 16384;
    var r = 8;
    var p = 8
    ThinNeo.Helper.GetPrivateKeyFromNep2(nep2, "1", n, r, p, (info, result) => {
        console.log("info=" + info);
        var prikey = result;
        console.log("result=" + prikey.toHexString());
        var pubkey = ThinNeo.Helper.GetPublicKeyFromPrivateKey(prikey);
        var address = ThinNeo.Helper.GetAddressFromPublicKey(pubkey);
        console.log("address=" + address);

    });
}
function test_7() {
    console.log("PriKey->Nep2");
    var n = 16384;
    var r = 8;
    var p = 8;

    var prikey = "94b3335830392a3586c2d7072cfe49efc3ef048876f526cbb7061b30a2278012".hexToBytes();
    ThinNeo.Helper.GetNep2FromPrivateKey(prikey, "1", n, r, p, (info, result) => {
        console.log("info=" + info);
        console.log("result=" + result);
    });
}