abi.js
v0.1.2
Published
[![typescript-icon]][typescript-link] [![license-icon]][license-link] [![status-icon]][status-link] [![ci-icon]][ci-link] [![twitter-icon]][twitter-link]
Readme
Abi.js
Abi.js is a fast, type-safe and easy-to-use web framework for building robust web applications in no time without any hassle.
🚀 Installation
Using
npm:npm install abi.jsUsing
Yarn:yarn add abi.jsUsing
PNPM:pnpm add abi.jsUsing
Bun:bun install abi.jsUsing
Deno:deno add npm:abi.js
💡 Usage
Abi works the same way under Bun, Deno and Node like this:
- Create a file, example
app.jsand copy/paste this code:
import abi from 'abi.js';
abi.get('', 'Welcome to Abi!');
abi.get(':user', (name) => `Hello ${name}!`);
abi.start();- Run your file with:
- Node:
node app.js - Deno:
deno run app.js - Bun:
bun run app.js
Under Bun and Deno, you just need to use a default export.
You can also use a TypeScript app.ts file instead of app.js like this:
import abi from 'abi.js';
abi.get('', 'Welcome to Abi!');
abi.get(':user', (name: string) => `Hello ${name}!`);
export default abi;Then run your script with deno serve app.ts (with Deno)
or bun run app.ts (with Bun).
📖 Documentation
Find more examples and in-depth use cases by visiting the documentation.
📄 License
This project is licensed under the MIT License - see the LICENSE.md file for details.
