speakly-core
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "speakly-core", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "speakly answers", | ||
"main": "index.js", | ||
"main": "speakly.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "update": "git add .", |
const puppeteer = require('puppeteer'); | ||
const fs = require('fs'); | ||
const path = require('path') | ||
const RENDER_CATCH = new Map() | ||
@@ -154,7 +155,11 @@ // process.setMaxListeners(process.getMaxListeners() + 1); | ||
class Speakly{ | ||
answer(term,lang){ | ||
return speakly(term,lang) | ||
async answer(term,lang){ | ||
return await speakly(term,lang) | ||
} | ||
async jsonAnswer(term,lang){ | ||
let answer = await this.answer(term,lang) | ||
fs.writeFileSync(path.dirname(__dirname,'answer.json'),JSON.stringify(answer)) | ||
} | ||
} | ||
module.exports = Speakly |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8415
158