Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

edge-server-tools

Package Overview
Dependencies
Maintainers
5
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge-server-tools

Common CouchDb & Express utility functions

latest
Source
npmnpm
Version
0.2.24
Version published
Maintainers
5
Created
Source

edge-server-utils

The Edge Wallet uses a variety of back-end micro-services, including encrypted key backup, exchange rates, mining fees, and so forth. Most of these services use an Express frontend talking touch a CouchDB database, so this library contains common utility functions for working with these technologies.

Cleaners:

CouchDB utilities:

  • bulkGet - Nano forgot to implement this method for some reason.
  • makeRollingDatabase - Treats a collection of databases as a single large database, organized by date range.
  • viewToStream - Iterates over the documents in a database, partition, or view.

CouchDB setup tools:

  • setupDatabase - Automatically creates a database, sets up replication and design documents, and subscribes to the changes feed.
  • makeJsDesign - Creates a JavaScript design document.
  • makeMangoIndex - Creates a Mango index design document.
  • syncedDocument - Watches a settings document for changes.

AggregateError tools:

  • [AggregateError] - A ponyfill for the new ES2021 AggregateError type.
  • [promiseAny] - A ponyfill for the new ES2021 Promise.any method.
  • [stringifyError] - Turns an error into a string, with special handling for AggregateError.

Other stuff:

  • forkChildren - Used for Node.js clustering.
  • errorCause - Adds an error.cause property.
  • matchJson - Returns true if two JSON-style objects match.
  • makePeriodicTask - Starts a periodic async task, with error handling and other features.

Deprecated stuff:

  • autoReplication - Deprecated. Use the new setupDatabase stuff.
  • createAdminUser
  • createRegularUser
  • forEachDocument - Iterates over the documents in a Couch database. Use viewToStream instead.

FAQs

Package last updated on 18 Mar 2026

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