open-index/open-npm huggingface dataset:
npm package: @rdub/next-base
Description: Misc utils for Next.js: <Link>, <Head>, <Nav>, config helpers
Latest version: 0.5.0

# @rdub/next-base
Misc utils for [Next.js] `<Link>`, `<Head>`, `<Nav>`, `router`, and configs

<a href="https://npmjs.org/package/@rdub/next-base" title="@rdub/next-base on NPM"><img src="https://img.shields.io/npm/v/@rdub/next-base.svg" alt="@rdub/next-base NPM version" /></a>

- [a]: link component that uses Next.js &lt;Link&gt; for same-origin URLs and `<a target="_blank">` for external URLs.
- [basePath]: `getBasePath` helper for Next.js.
- [config], [basePath]: `next/config` accessors.
- [head]: `next/head` wrapper, populates og tags.
- [route-is-changing]: `useRouteIsChanging` hook, useful for invalidating queries / displaying loading spinners during `router.push` transitions.
- [use-root-url]: `useRootUrl` hook, for constructing absolute URLs in Next.js apps.

Used by:
- [crashes.hudcostreets.org]
- [ctbk.dev]
- [neighbor-ryan.org]
- [@rdub/next-leaflet]
- [@rdub/next-markdown]
- [@rdub/next-params]
- [@rdub/next-plotly]


[Next.js]: https://nextjs.org/

[a]: src/a.tsx
[basePath]: src/basePath.ts
[config]: src/config.ts
[head]: src/head.tsx
[route-is-changing]: src/route-is-changing.tsx
[use-root-url]: src/use-root-url.ts

[crashes.hudcostreets.org]: https://crashes.hudcostreets.org/
[ctbk.dev]: https://ctbk.dev/
[neighbor-ryan.org]: https://neighbor-ryan.org/
[@rdub/next-leaflet]: https://npmjs.org/package/@rdub/next-leaflet
[@rdub/next-markdown]: https://npmjs.org/package/@rdub/next-markdown
[@rdub/next-params]: https://npmjs.org/package/@rdub/next-params
[@rdub/next-plotly]: https://npmjs.org/package/@rdub/next-plotly