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

geo-coordinates-parser

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geo-coordinates-parser - npm Package Compare versions

Comparing version 1.5.8 to 1.6.0

dist/cjs/converter.d.ts

10

package.json
{
"name": "geo-coordinates-parser",
"version": "1.5.8",
"version": "1.6.0",
"description": "A Javascript function for reading a variety of coordinate formats and converting to decimal numbers. Builds on other efforts by returning the verbatim coordinates and the decimal coordinates all in one object.",
"type": "module",
"main": "merge.js",
"exports": {
".": {
"import": "./dist/mjs/merge.js",
"require": "./dist/cjs/merge.js"
}
},
"scripts": {
"build": "rd /s /q dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && fixup.bat",
"test": "node test.js"

@@ -8,0 +16,0 @@ },

9

README.md

@@ -12,9 +12,10 @@ # Geo Coordinates Parser

# NOTE THAT USAGE CHANGED IN THE LAST VERSION TO BETTER SUPPOER ES6 AND COMMONJS
### Usage
```js
const convert = require('geo-coordinates-parser');
const { convert } = require('geo-coordinates-parser'); //CommonJS
```
OR
```js
import convert from 'geo-coordinates-parser' //ES6, if you're using a bundler
import { convert } from 'geo-coordinates-parser' //ES6
```

@@ -82,3 +83,3 @@ THEN

Add ```<script src="https://cdn.jsdelivr.net/npm/geo-coordinates-parser/bundle/geocoordsparser.js"></script>```
to your html head and you'll have the ```convert``` function available globally. You won't have .formats, .closeEnough or .toCoordinateFormat though, only the coordinates conversion function.
to your html head and you'll have the ```convert``` function available globally.

@@ -96,2 +97,2 @@ ### Convert back to standard formats

### Acknowledgements
Support for development was provided by the [Animal Demography Unit](http://adu.uct.ac.za) of the University of Cape Town, and the [Natural Science Collections Facility](http://nscf.co.za).
Support for development was provided by the [Animal Demography Unit](http://adu.uct.ac.za) of the University of Cape Town, and the [Natural Science Collections Facility](http://nscf.co.za). CommonJS and ESM support was added following [https://www.sensedeep.com/blog/posts/2021/how-to-create-single-source-npm-module.html](https://www.sensedeep.com/blog/posts/2021/how-to-create-single-source-npm-module.html).
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