Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
astronomia
Advanced tools
Readme
An astronomical library
This library is a translation of meeus from Go to Javascript and contains selected algorithms from the book "Astronomical Algorithms" by Jean Meeus, following the second edition, copyright 1998, with corrections as of August 10, 2009.
Additional algorithms not covered in the book have been added.
npm install --save astronomia
Make sure you add <meta charset="UTF-8">
to your HTML or at least include your
bundle with <script src="your-bundle.js" charset="UTF-8"></script>
then
this package runs in modern browsers.
core-js/es6
polyfill)For documentation of the different packages please take a look at the source code as well as at the tests.
If you require a small footprint in your final application, each of the provided packages can be used as a single one:
// instead of
const base = require('astronomia').base
// use
const base = require('astronomia/base')
ES6 Syntax
// instead of
import {base} from 'astronomia'
// use
import base from 'astronomia/base'
To access dedicated VSOP87 data sets use e.g.
const {vsop87Bvenus} = require('astronomia').data
// or
const vsop87Bvenus = require('astronomia/data/vsop87Bvenus')
npm test
to even run very long lasting tests, do
SLOWTESTS=1 npm test
In local browser
npm run zuul -- --local 3000
If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license.
You are also implicitly verifying that all code is your original work or correctly attributed with the source of its origin and licence.
MIT Licensed
See LICENSE for more info.
FAQs
An astronomical library
The npm package astronomia receives a total of 84,064 weekly downloads. As such, astronomia popularity was classified as popular.
We found that astronomia demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.