Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

thrustcurve-db

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thrustcurve-db

ThrustCurve.org model rocket motor and thrust curve data as a single JSON file

  • 2.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
decreased by-59.37%
Maintainers
1
Weekly downloads
 
Created
Source

thrustcurve-db

This module is a rebundling of the model rocket motor data available on John Coker's excellent thrustcurve.org website ("TC") as a stand-alone JSON file. The data is an array of motor items consistent with TC's SearchResponse#results schema.

See also, the included TypeScript definitions.

Alterations

In addition to the SearchResponse data, the following alterations have been made:

  • All numbers are rounded to a precision of 4 digits.
  • Most (but not all) motors include a samples array containing the thrust data found in the TC /api/vi/download endpoint.
  • samples data is normalized to insure the first data point is always [0, 0]

For full details of how this data set is compiled, please refer to the build/build.js script in this repository.

Installation

npm i thrustcurve-db
yarn add thrustcurve-db

Usage

ESM

import MOTORS from 'thrustcurve-db';

CommonJS

const MOTORS = require('thrustcurve-db');

Note: Users running node may need to supply the --experimental-json-modules flag

Fetch from JSDelivr CDN:

const MOTORS = await fetch(
  'https://cdn.jsdelivr.net/npm/thrustcurve-db@latest/thrustcurve-db.json'
).then(res => res.json());

Example

// Find all J motors currently in production
MOTORS.filter(m => m.availability === 'regular' && m.impulseClass === 'J');

Issues & Contributions

The data provided here is sourced from thrustcurve.org. Omissions and errors in rocket data should be directed there. Any systematic problems or suggestions for how the data here is presented may be reported here.

Keywords

FAQs

Package last updated on 18 Jun 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc