@shba007/unstack
Version:
Print your favorite framework info into cli
57 lines (54 loc) • 1.35 kB
TypeScript
declare enum FrameworkName {
Angular = "angular",
React = "react",
'Vue.js' = "vue",
Svelte = "svelte",
Preact = "preact",
'Solid.js' = "solid",
Remix = "remix",
Qwik = "qwik",
Lit = "lit",
Tini = "tinijs",
'Alpine.js' = "alpine",
Stencil = "stencil",
Mithril = "mithril",
Astro = "astro",
Vuepress = "vuepress",
Vitepress = "vitepress",
Docus = "docus",
Express = "express",
Fastify = "fastify",
Koa = "koa",
Feathers = "feathers",
NestJS = "nestjs",
Nitro = "nitro",
Analog = "analog",
'Next.js' = "next",
Gatsby = "gatsby",
Nuxt = "nuxt",
Gridsome = "gridsome",
'Svelte Kit' = "svelte-kit",
Ember = "ember",
Fresh = "fresh",
Redwood = "redwood",
Meteor = "meteor",
Hydrogen = "hydrogen"
}
declare function getColor(framework: FrameworkName): string;
declare function getImage(framework: FrameworkName): Promise<string>;
declare function getDetails(framework: FrameworkName): Promise<{
name: string;
description: any;
stars: any;
publishedAt: string;
version: {
stable: string | undefined;
next: string | undefined;
};
author: string;
website: string;
github: string;
npm: string;
initCommend: string[];
}>;
export { getColor, getDetails, getImage };