Skip to content

Commit

Permalink
chore(package): update dependencies
Browse files Browse the repository at this point in the history
Migrate to standard
  • Loading branch information
lgaticaq committed Jun 18, 2017
1 parent 5f504cc commit ef83596
Show file tree
Hide file tree
Showing 9 changed files with 2,584 additions and 1,651 deletions.
10 changes: 8 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
.git
node_modules
test
coverage
.*
test
.editorconfig
.eslintignore
.gitignore
.nvmrc
.travis.yml
CHANGELOG.md
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v7
v8
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
language: node_js
node_js:
- "6"
- "7"
- "8"
notifications:
email: false
after_success:
- npm run coveralls
- npm run codeclimate
cache: yarn
- npm i -g coveralls codeclimate-test-reporter
- coveralls < coverage/lcov.info
- codeclimate-test-reporter < coverage/lcov.info
12 changes: 6 additions & 6 deletions example.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const dmm = require('dmm-parser');
const dmm = require('dmm-parser')

const raw = [
{type: 'dmm', raw: '3321.6735,S'},
Expand All @@ -9,14 +9,14 @@ const raw = [
{type: 'latitude', raw: 42.2093015, fixed: 4},
{type: 'longitude', raw: -70.51273333333333, fixed: 5},
{type: 'longitude', raw: -8.741101, fixed: 5}
];
]

const data = raw.map(data => {
if (data.type === 'dmm') {
return dmm.degToDec(data.raw);
return dmm.degToDec(data.raw)
} else if (data.type === 'latitude') {
return dmm.latToDmm(data.raw, data.fixed);
return dmm.latToDmm(data.raw, data.fixed)
} else if (data.type === 'longitude') {
return dmm.lngToDmm(data.raw, data.fixed);
return dmm.lngToDmm(data.raw, data.fixed)
}
});
})
Loading

0 comments on commit ef83596

Please sign in to comment.