Skip to main content
Home

latest
Works with
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score23%
Published11 months ago (0.1.3)

Github Repo

Usage

#!/usr/bin/env bun

// import honobind from "./mod.js";

Code

mod.js

import honofn from "@8v/honofn";

export default (app) => {
  const proxy = new Proxy(
    {},
    {
      get: (_, method) => {
        method = app[method];
        return (map) => {
          Object.entries(map).forEach(
            ([path, func]) => {
              method(path, honofn(func));
            },
          );
          return proxy;
        };
      },
    },
  );
  return proxy;
};

About

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@8v/honobind

Import symbol

import * as honobind from "@8v/honobind";
or

Import directly with a jsr specifier

import * as honobind from "jsr:@8v/honobind";

Add Package

pnpm i jsr:@8v/honobind
or (using pnpm 10.8 or older)
pnpm dlx jsr add @8v/honobind

Import symbol

import * as honobind from "@8v/honobind";

Add Package

yarn add jsr:@8v/honobind
or (using Yarn 4.8 or older)
yarn dlx jsr add @8v/honobind

Import symbol

import * as honobind from "@8v/honobind";

Add Package

vlt install jsr:@8v/honobind

Import symbol

import * as honobind from "@8v/honobind";

Add Package

npx jsr add @8v/honobind

Import symbol

import * as honobind from "@8v/honobind";

Add Package

bunx jsr add @8v/honobind

Import symbol

import * as honobind from "@8v/honobind";