Skip to content

πŸ‰ pokepast.es wrapper written in typescript for the Deno runtime

License

Notifications You must be signed in to change notification settings

yuzudev/pokedeno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

pokedeno

πŸ‰ pokepast.es wrapper written in typescript for the Deno runtime

usage:

import { createPaste, getPaste, parseTeamToString } from "https://deno.land/x/poke_deno@1.0.0/mod.ts";

// get the content from https://pokepast.es/debbc67dd4f7a6e8
const { paste, data } = await getPaste("debbc67dd4f7a6e8");

console.log(paste, data.title, data.author, data.notes);

// create a new paste
const content = parseTeamToString(paste.pokes);

// get the created url
const url = await createPaste("Yuzu", content, "Note: gen5ou", "Sand balance");

console.log(url);

About

πŸ‰ pokepast.es wrapper written in typescript for the Deno runtime

Resources

License

Stars

Watchers

Forks

Packages

No packages published