abi.js
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

typescript-icon license-icon status-icon ci-icon twitter-icon

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

You can install Abi from NPM:

  • Using npm:

    npm install abi.js
  • Using Yarn:

    yarn add abi.js
  • Using PNPM:

    pnpm add abi.js
  • Using Bun:

    bun install abi.js
  • Using Deno:

    deno add npm:abi.js

💡 Usage

Abi works the same way under Bun, Deno and Node like this:

  1. Create a file, example app.js and copy/paste this code:
import abi from 'abi.js';

abi.get('', 'Welcome to Abi!');
abi.get(':user', (name) => `Hello ${name}!`);

abi.start();
  1. 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.


Made with ❤︎ by @siguici.

/abi.js/

    Package Sidebar

    Install

    npm i abi.js

    Homepage

    abi.js.org

    Weekly Downloads

    3

    Version

    0.1.2

    License

    none

    Unpacked Size

    6.9 MB

    Total Files

    340

    Last publish

    Collaborators

    • ske_ci
    • siguici