Skip to content

Commit 6ab9546

Browse files
authored
Merge pull request #13 from retorquere/master
node requirable
2 parents b76eee1 + 3b6746d commit 6ab9546

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

Diff for: package.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "name-parser",
3+
"version": "1.0.0",
4+
"description": "JavaScript code to split names into their respective components (first, last, etc)",
5+
"main": "parse-names.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/joshfraser/JavaScript-Name-Parser.git"
12+
},
13+
"author": "joshfraser",
14+
"license": "Apache-2.0",
15+
"bugs": {
16+
"url": "https://github.com/joshfraser/JavaScript-Name-Parser/issues"
17+
},
18+
"homepage": "https://github.com/joshfraser/JavaScript-Name-Parser#readme"
19+
}

Diff for: parse-names.js

+4
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,7 @@ var NameParse = (function(){
184184

185185
return NameParse;
186186
})();
187+
188+
if (module) {
189+
module.exports = NameParse;
190+
}

0 commit comments

Comments
 (0)