Some utilities we frequently use for projects built with Next.js.
Install using npm:
npm install --save @pixelherz/nextjs-utils
For usage examples see section Utilities below.
Set the lang attribute's value of the html element. Used in Next.js projects as the html element is rendered on the server and is not mutable in the client.
import { setHtmlLang } from '@pixelherz/nextjs-utils'
setHtmlLang('en')We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the ISC License - see the LICENSE.md file for details.