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("deniscarrier@deweb.eosnation.io"); 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

deweb

Build Status npm version Try on RunKit MIT licensed

deWeb common library used for Typescript

Installation

Using Yarn:

yarn add deweb

or using NPM:

npm install --save deweb

Quick Start

import { stringToHash } from "deweb"

const id = stringToHash("deniscarrier@deweb.eosnation.io");
//=> 8945370747656800747

API

Table of Contents

stringToHash

String to Id

Parameters

  • str string string account name

Examples

import { string_to_id } from "deweb"

const id = stringToHash("deniscarrier@deweb.eosnation.io");
//=> "8945370747656800747"

Returns number uint64 account id

Metadata

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