geo-coordinates-parser
Advanced tools
Comparing version 1.5.8 to 1.6.0
{ | ||
"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 @@ }, |
@@ -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). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75528
45
1885
96
Yes
2
1