aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFotoVerite <[email protected]>2014-02-19 12:31:23 -0500
committerFotoVerite <[email protected]>2014-02-19 12:31:23 -0500
commit120ee510f1d64b2e52ac599d4596b32fc1287de4 (patch)
tree8cbb9289374fac6f8a50912f001d20801b771035 /scripts
parent31d526a4897d150ffd90ebddd2ec1291fdaedc72 (diff)
downloadfaker-120ee510f1d64b2e52ac599d4596b32fc1287de4.tar.xz
faker-120ee510f1d64b2e52ac599d4596b32fc1287de4.zip
reverts f2f37f8
Diffstat (limited to 'scripts')
-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 546915c2..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 = [\n '" + names.join( "',\n '" ) + "'\n];\n";
-
- 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