aboutsummaryrefslogtreecommitdiff
path: root/scripts/import.js
diff options
context:
space:
mode:
authorhkal <[email protected]>2014-05-04 00:48:23 -0400
committerhkal <[email protected]>2014-05-04 00:48:23 -0400
commit3f172f5f039e12ab2736e7e3e1155428bcaa638e (patch)
tree2f5c597184d077aa85cd5ad0b22a7737db766ec9 /scripts/import.js
parent0c49ffcfd98ef2dc7ef56e63b90cdcfc7a624081 (diff)
downloadfaker-3f172f5f039e12ab2736e7e3e1155428bcaa638e.tar.xz
faker-3f172f5f039e12ab2736e7e3e1155428bcaa638e.zip
remove gender related files:
* removed files relating to gender * removed an esoteric `import.js` file which did not seem to be used
Diffstat (limited to 'scripts/import.js')
-rw-r--r--scripts/import.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/scripts/import.js b/scripts/import.js
deleted file mode 100644
index e2a3ba11..00000000
--- a/scripts/import.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var fs = require( "fs" );
-
-function importNames( inputFile, outputFile ) {
- var input = fs.readFileSync( __dirname + "/" + inputFile ),
- names = String( input ).split( "\n" ),
- output;
-
- names = names
- .map( function( name ) {
- name = name.trim();
- name = name.charAt( 0 ).toUpperCase() + name.substr( 1 ).toLowerCase();
- return name;
- }).filter( function( name ) {
- return name !== "";
- });
-
- output = "module.exports = [ '" + names.join( "', '" ) + "' ];";
-
- fs.writeFileSync( __dirname + "/" + outputFile, output );
-}
-
-importNames( "../data/male-names.txt", "../lib/male_names.js" );
-importNames( "../data/female-names.txt", "../lib/female_names.js" ); \ No newline at end of file