diff --git a/package.json b/package.json index 2be1331..0812aae 100644 --- a/package.json +++ b/package.json @@ -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" + } } diff --git a/test/test.js b/test/test.js new file mode 100644 index 0000000..9bbc792 --- /dev/null +++ b/test/test.js @@ -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); \ No newline at end of file