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

geomagnetism

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geomagnetism - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

data/wmm-2020.json

1

index.js

@@ -6,2 +6,3 @@ var Model = require('./lib/model.js');

var modelData = [
require('./data/wmm-2020.json'),
require('./data/wmm-2015v2.json'),

@@ -8,0 +9,0 @@ require('./data/wmm-2015.json'),

2

lib/model.js

@@ -1,3 +0,1 @@

var path = require('path');
var GeodeticCoord = require('./coords/geodetic.js');

@@ -4,0 +2,0 @@ var Ellipsoid = require('./ellipsoid.js');

{
"name": "geomagnetism",
"version": "0.1.0",
"version": "0.1.1",
"description": "Computes geomagnetic field information",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -15,11 +15,11 @@ # geomagnetism

```js
var geomagnetism = require('geomagnetism');
const geomagnetism = require('geomagnetism');
// information for "right now"
var info = geomagnetism.model().point([44.53461, -109.05572]);
const info = geomagnetism.model().point([44.53461, -109.05572]);
console.log('declination:', info.decl);
// use a specific date
var model = geomagnetism.model(new Date('12/25/2017'));
var info = model.point([44.53461, -109.05572]);
const model = geomagnetism.model(new Date('12/25/2017'));
const info = model.point([44.53461, -109.05572]);
console.log('declination:', info.decl);

@@ -30,3 +30,3 @@ ```

Copyright © 2015–2018 [Natural Atlas, Inc.](https://naturalatlas.com/) & [Contributors](https://github.com/naturalatlas/geomagnetism/graphs/contributors)
Copyright © 2015–2021 [Natural Atlas, Inc.](https://naturalatlas.com/) & [Contributors](https://github.com/naturalatlas/geomagnetism/graphs/contributors)

@@ -33,0 +33,0 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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