Skip to content

claude-abounegm/navire-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

navire-express

Express plugin for Navire.

Install

npm i navire navire-express

Usage

const NavireExpress = require("navire-express");

router.use(
  NavireExpress.init([{ type: "link", title: "Link1", href: "/link1" }], {
    props: { title: "App Title" }
  })
);

// ...

router.get("/link1", (req, res) => {
  // current url
  const { url } = req;

  const { navire } = res;

  const navItem = navire.findByHref(url);
});

About

Express plugin for Navire.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published