Skip to content

Commit

Permalink
I promise I tested the cli this time first :\
Browse files Browse the repository at this point in the history
  • Loading branch information
doesdev committed Oct 25, 2017
1 parent c7b7d7f commit 7ce4463
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -4,8 +4,9 @@
const tts = require('google-tts-api')
const { get } = require('axios')
const { escape } = require('validator')
const { resolve } = require('path')
const { readFileSync } = require('fs')
const eafd = readFileSync(`audio/eafd.mp3`)
const eafd = readFileSync(resolve(__dirname, `audio`, `eafd.mp3`))

module.exports = async (name) => {
let url = await tts(escape(name), `en`, 1)
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "eafd",
"version": "1.1.0",
"version": "1.2.0",
"description": "\"Enter name here\" can eat a fat, um, turkey",
"main": "index.js",
"files": ["index.js", "cli.js", "audio/eafd.mp3"],
Expand Down

0 comments on commit 7ce4463

Please sign in to comment.