🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

earthbucks-lib

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

earthbucks-lib

EarthBucks library for data structures and algorithms.

latest
Source
npmnpm
Version
0.4.9
Version published
Maintainers
1
Created
Source

earthbucks-lib

Website: earthbucks.com

Overview

This library contains data structures and algorithms for EarthBucks. This library is co-implemented in both Rust and TypeScript.

This TypeScript packages includes both the built JavaScript code and the original TypeScript source code as well.

If you are using JavaScript, you will have to use the JavaScript version.

If you are using TypeScript, you should use the TypeScript source code rather than the JavaScript version, because that way errors will go directly to the TypeScript source code rather than the .d.ts files.

Usage

The library is built from TyepScript to JavaScript and JavaScript is the default because that is standard on NPM. However, it is recommended that you use the TypeScript version if possible.

In TypeScript

import { PrivKey } from "earthbucks-lib/src/lib.js";

Even though this is TypeScript, you must use the .js extension in order to make sure that the imports continue to work when built to JavaScript.

In JavasScript

import { PrivKey } from "earthbucks-lib";

Notice that the JavaScript version is the default.

Full Documentation

Please find all modules in the lib.ts (or lib.js) file.

Full documentation forth-coming.

FAQs

Package last updated on 13 Jun 2024

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