html-dev-label
An on-page HTML label present when your project is compiled with process.env.NODE_ENV
set to development
.
Why?
It's easy to confuse the development environment of a website with the live version when you have many tabs & windows open. Well, not any more.
Installation
// Install package from npm
npm install @codebundlesbyvik/html-dev-label
Usage
import htmlDevLabel from "@codebundlesbyvik/html-dev-label";
htmlDevLabel("top left");
Options
Parameter | Type | Default | Description |
---|---|---|---|
position |
String |
bottom right |
On-page position of the label. Accepted value is a combination of top or bottom , and left or right . |
License
MIT © Viktor Chin-Kon-Sung