Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including deweb with all npm packages installed. Try it out:

const { stringToHash } = require("deweb"); const hash = stringToHash(""); console.log(hash); //=> 8945370747656800747

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

deweb v0.0.3

deWeb Library


Build Status npm version Try on RunKit MIT licensed

deWeb common library used for Typescript


Using Yarn:

yarn add deweb

or using NPM:

npm install --save deweb

Quick Start

import { stringToHash } from "deweb"

const id = stringToHash("");
//=> 8945370747656800747


Table of Contents


String to Id


  • str string string account name


import { string_to_id } from "deweb"

const id = stringToHash("");
//=> "8945370747656800747"

Returns number uint64 account id


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free