Extra contents beyond WaniKani
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
491 B

import { AnkiConnect } from '@/ankiconnect';
async function main() {
const anki = new AnkiConnect();
console.log(
await anki.multi<['findNotes', 'getTags']>({
actions: [
{
action: 'findNotes',
params: {
query: 'added:1',
},
},
{ action: 'getTags' },
],
}),
);
console.log(
await anki.api('findNotes', {
query: 'deck:Takoboto',
}),
);
}
if (require.main === module) {
main();
}