Navigation Menu

Skip to content

Pixelherz/nextjs-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.