Skip to content

Commit

Permalink
Merge pull request #8 from voronianski/master
Browse files Browse the repository at this point in the history
Introduce build step, make coffee a dev dep
  • Loading branch information
mkoryak committed Sep 2, 2015
2 parents ae50682 + 9bd1672 commit 82ee514
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 535 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
.DS_Store
.idea
node_modules
node_modules
*.log

lib
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test
src
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
address-validator
======================


Validate street addresses in nodejs using google geocoding api.
> Validate street addresses in nodejs using google geocoding api.
From an input address the lib will return to you a valid address with correct spelling and lat/lon coords, and/or a set of inexact matches that can be used to drive a 'did you mean?' widget.

Currently geared towards North American Addresses but works with all languages.




Install
-------

``` bash
npm install address-validator
```
Expand All @@ -22,7 +19,6 @@ npm install address-validator
Usage
-----


``` js
var addressValidator = require('address-validator');
var Address = addressValidator.Address;
Expand Down Expand Up @@ -80,7 +76,6 @@ did you mean: [ '1 Main Street, San Diego, CA, US' ]

```


API
=======

Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
require('coffee-script/register');
module.exports = require('./src/validator.coffee');
module.exports = require('./lib/validator');
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "address-validator",
"version": "0.2.1",
"version": "0.2.2",
"description": "Validate street addresses via google's geocoding API. Get back valid addresses with lat/lon coords and a set of inexact matches",
"keywords": [
"address",
Expand All @@ -10,7 +10,13 @@
"geocoding",
"google maps"
],
"main": "index.js",
"homepage": "https://github.com/mkoryak/address-validator",
"scripts": {
"build": "rm -rf ./lib && coffee --compile --output lib/ src/",
"prepublish": "npm run build",
"test": "coffee test/test.coffee"
},
"author": {
"name": "Misha Koryak",
"url": "http://www.programmingdrunk.com"
Expand All @@ -19,8 +25,10 @@
"type": "git",
"url": "git://github.com/mkoryak/address-validator.git"
},
"devDependencies": {
"coffee-script": "~1.9.3"
},
"dependencies": {
"coffee-script": "~1.9.3",
"underscore": "~1.4.4",
"request": "~2.21.0"
}
Expand Down
Loading

0 comments on commit 82ee514

Please sign in to comment.