1.0.1 • Published 6 years ago

@pixelherz/nextjs-utils v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

nextjs-utils

Some utilities we frequently use for projects built with Next.js.

Getting Started

Installing

Install using npm:

npm install --save @pixelherz/nextjs-utils

For usage examples see section Utilities below.

Utilities

setHtmlLang

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')

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the ISC License - see the LICENSE.md file for details.