![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
An API for Akinator based in NodeJS.
npm i aki-api
[
'en',
'ar',
'cn',
'de',
'es',
'fr',
'il',
'it',
'jp',
'kr',
'nl',
'pl',
'pt',
'ru',
'tr',
'id'
]
const { Aki } = require('aki-api');
const run = async () => {
const region = 'en';
const childMode = false;
const proxy = undefined;
const aki = new Aki({ region, childMode, proxy });
await aki.start();
console.log('question:', aki.question);
console.log('answers: ', aki.answers);
}
run().catch(console.error);
question: Is your character real?
answers: [
"Yes",
"No",
"Don't know",
"Probably",
"Probably not"
]
const { regions } = require('aki-api');
console.log(regions);
const { Aki } = require('aki-api');
const run = async () => {
const region = 'en';
const aki = new Aki({ region });
await aki.start();
const myAnswer = 0; // yes = 0
await aki.step(myAnswer);
console.log('question:', aki.question);
console.log('answers:', aki.answers);
console.log('progress:', aki.progress);
}
run().catch(console.error);
const { Aki } = require('aki-api');
const run = async () => {
const region = 'en';
const aki = new Aki({ region });
const guessOrResponse = await aki.answer(); // check if it is a guess by akinator or another question
// if you do not like the answer...
await aki.continue();
}
run().catch(console.error);
The child mode prevents showing explicit questions.
const { Aki } = require('aki-api');
const run = async () => {
const region = 'en';
const childMode = true;
const aki = new Aki({ region, childMode });
}
run().catch(console.error);
const { Aki } = require('aki-api');
const run = async () => {
const region = 'en';
const aki = new Aki({ region });
await aki.start();
const myAnswer = 1; // no = 1
await aki.step(myAnswer);
await aki.back();
console.log('question:', aki.question);
console.log('answers:', aki.answers);
}
run().catch(console.error);
FAQs
An API for Akinator. Supports up to 15 languages.
The npm package aki-api receives a total of 2,065 weekly downloads. As such, aki-api popularity was classified as popular.
We found that aki-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.