Getting Started π
Are you eager to start a TypeScript-based web project? Abi is the perfect solution to serve your resources, web services or applications in no time and without any hassle!
π Requirements
Currently, Abi
only works under:
β‘οΈ Installation
You can install Abi
from NPM
or JSR
:
From NPM
:
npm install abi.js@latest
From JSR
:
npx jsr add @abi-js/abi
From NPM
:
yarn add abi.js
From JSR
:
yarn dlx jsr add @abi-js/abi
From NPM
:
pnpm add abi.js
From JSR
:
pnpm dlx jsr add @abi-js/abi
From NPM
:
bun install abi.js
From JSR
:
bunx jsr add @abi-js/abi
From NPM
:
deno install npm:abi.js
From JSR
:
deno add @abi-js/abi
π§βπ» Usage
Use Abi
with your server runtime:
import { Abi } from "abi.js";
const abi = new Abi();
abi.get('', 'Welcome to Abi.js!');abi.get(':name', (name: string) => `Hello ${name}!`);
export default abi;
import { Abi } from "@abi-js/abi";
const abi = new Abi();
abi.get('', 'Welcome to Abi.js!');abi.get(':name', (name: string) => `Hello ${name}!`);
export default abi;