diff --git a/cli.js b/cli.js index f51e35c..d9abdca 100755 --- a/cli.js +++ b/cli.js @@ -1,14 +1,11 @@ #!/usr/bin/env node 'use strict'; -/* Dependencies. */ var pack = require('./package.json'); var metaphone = require('./'); -/* Arguments. */ var argv = process.argv.slice(2); -/* Program. */ if ( argv.indexOf('--help') !== -1 || argv.indexOf('-h') !== -1 @@ -29,12 +26,10 @@ if ( console.log(phonetics(argv.join(' '))); } -/* Core. */ function phonetics(values) { return values.split(/\s+/g).map(metaphone).join(' '); } -/* Help. */ function help() { return [ '', diff --git a/index.js b/index.js index 79d56a1..9f5b3f9 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,7 @@ 'use strict'; -/* Expose. */ module.exports = metaphone; -/* Constants. */ var SH = 'X'; var TH = '0';