Information Security with HelmetJS - Hide Potentially Dangerous Information Using helmet.hidePoweredBy()

Tell us what’s happening:
app.use(helmet.hidePoweredBy()); not working

Your project link(s)
The response is (not working) as follows:

ReferenceError: helmet is not defined
at Object. (/home/runner/boilerplate-infosec/myApp.js:3:9)

How to resolve this problem?

solution: boilerplate-infosec - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 OPR/94.0.0.0

Challenge: Information Security with HelmetJS - Hide Potentially Dangerous Information Using helmet.hidePoweredBy()

Link to the challenge:

Install helmet or add it to package.json and do a npm install / yarn whichever you use

Then make sure is required / imported

const express = require("express");
const helmet = require("helmet");

const app = express();

app.use(helmet());

// You can also use ECMAScript modules if you prefer.

import helmet from "helmet";

const app = express();

app.use(helmet());

Ok. I found another way of doing it.