Skip to content

Commit

Permalink
Some updates to package.json and added some stupid tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidemiceli committed Aug 4, 2016
1 parent 2b91cee commit f188131
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,32 @@
"name": "gender-detection",
"version": "0.0.1",
"description": "Detect the gender of a person using his/her first name.",
"license": "GNU GPL 3",
"license": "GPL-3.0",
"main": "index.js",
"keywords": [
"gender",
"sex"
],
"author": {
"name": "davidemiceli"
},
"author": "davidemiceli",
"repository": {
"type": "git",
"url": "https://github.com/davidemiceli/gender-detection"
"url": "git+https://github.com/davidemiceli/gender-detection.git"
},
"files": [
"index.js",
"genders"
],
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/davidemiceli/gender-detection/issues"
},
"maintainers": [
{
"name": "davidemiceli"
}
]
"davidemiceli"
],
"homepage": "https://github.com/davidemiceli/gender-detection#readme",
"directories": {
"test": "test"
},
"scripts": {
"test": "node test/test.js"
}
}
12 changes: 12 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Require gender detection module
var gender = require('../index.js');

// Use it to detect the gender:
g = gender.detect('Tim Johnson');
console.log(g);

g = gender.detect('Holly');
console.log(g);

g = gender.detect('GhJGhgj');
console.log(g);

0 comments on commit f188131

Please sign in to comment.