🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

cosmic-expansion

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosmic-expansion

A cosmic expansion calculator for the browser (and TypeScript)

latest
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

CosmicExpansion

A Javascript cosmological calculator for the expansion of the universe.

This code is parked for the move to cosmic-expansion.

Quick start

For use in a browser include minimized code from the CDN:

<script src="https://cdn.jsdelivr.net/npm/cosmic-expansion"></script>

API:

const options = {};
const model = CosmicExpansion.create(options);
const nearResults = model.calculateExpansion({
  stretch: [1.01, 0.99],
  steps: 10,
});
const farResults = model.calculateExpansion({
  stretch: [5001, 0.0001],
  steps: 10,
  exponentialSteps: true,
});

Development

Pull requests against the develop branch welcome.

Keywords

calculator

FAQs

Package last updated on 16 Aug 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