diff options
| author | Matthew Bergman <[email protected]> | 2014-05-17 15:02:37 -0400 |
|---|---|---|
| committer | Matthew Bergman <[email protected]> | 2014-05-17 15:02:37 -0400 |
| commit | ff6d21440133a0b5b3afa33d0773af5a6183cd5c (patch) | |
| tree | 5633b13d32d23ffe1cc14980c7d5febeb92f0b05 /scripts | |
| parent | 74a2fcca7eb3c15da21e13506d283a93e6edaf6a (diff) | |
| parent | 3f172f5f039e12ab2736e7e3e1155428bcaa638e (diff) | |
| download | faker-ff6d21440133a0b5b3afa33d0773af5a6183cd5c.tar.xz faker-ff6d21440133a0b5b3afa33d0773af5a6183cd5c.zip | |
Merge pull request #80 from hkal/remove_gender_related_files
remove gender related files
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/import.js | 23 |
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 |
