
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@tinyhttp/logger
Advanced tools
Simple HTTP logger.
pnpm i @tinyhttp/logger
import { logger } from '@tinyhttp/logger'
logger(options)Returns the middleware to log HTTP requests.
methods - a list of HTTP methods to log. Defaults to http's METHODStimestamp.format - timestamp format. Gets consumed by dayjs library. If a string specified, used as a format, otherwise just enables it.output.callback - function that recieves the log generated by the logger.output.color - property that determines if the logger will generate a message with color. usefull for logging into the console, disable it if logging into file / http / etc...emoji - enable emojis for HTTP status code. See http-status-emojis for a full listip - log IP addressimport { App } from '@tinyhttp/app'
import { logger } from '@tinyhttp/logger'
new App()
.use(
logger({
methods: ['GET', 'POST'],
timestamp: { format: 'HH:mm:ss' },
output: { callback: console.log, color: false }
})
)
.get('/', (req, res) => res.send('Hello world'))
.post('/', (req, res) => res.send('Sent POST'))
.listen(3000)
FAQs
Minimal and flexible HTTP logger.
The npm package @tinyhttp/logger receives a total of 41,250 weekly downloads. As such, @tinyhttp/logger popularity was classified as popular.
We found that @tinyhttp/logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.