New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

hyperdb-helper

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperdb-helper

A wee little helper cli for working with hyperdb schemas

latest
Source
npmnpm
Version
2.0.4
Version published
Maintainers
0
Created
Source

hyperdb-helper

Generate & build hyperdb schema definitions

Try it out real good

Inside your current working directory this create a schemas directory with all the necessary files and an example index.js file showing Hyperdb usage with the provided schemas.

// Create the files!
npx hyperdb-helper init

// Install the dependencies!
npm install hyperdb hyperschema corestore

// Build the schema definitions!
npx hyperdb-helper build

// Run the example code!
node index.js

Make it official

Install as a dev dependency:

npm i -D hyperdb-helper

Remember to install these dependencies if you haven't already:

npm i hyperdb hyperschema corestore

Add a build script to your package.json:

"scripts": {
  "schema": "hyperdb-helper build"
}

To init your future

After running the hyperdb-helper init command you'll get some examples to learn from in the generated files:

  • index.js - shows usage of the schemas with hyperdb
  • schemas/schemas.js - shows how to create schemas, collections, and indexes

If you don't already have hyperdb and hyperschema installed you'll be asked to do so.

JavaScript API

There's also a very simple JavaScript API:

import { HyperdbHelper } from 'hyperdb-helper'

const helper = new HyperdbHelper()
await helper.init()
await helper.build()
await helper.cleanup()

License

Apache-2.0

Keywords

hyperdb

FAQs

Package last updated on 02 Jan 2025

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