print-once
v0.0.1
Published
A utility package that ensures text is printed only once, automatically filtering out duplicate messages to keep your console clean and efficient.
Readme
Print once - print message ony once
Prints messages to the console only once.
This module provides two functions - printOnce and warnOnce.
Usage:
import { printOnce, warnOnce } from 'print-once'
printOnce('error', 'Connection was not initialized')
warnOnce('The component is deprecated')The warnOnce function is literally this:
function warnOnce(...params) {
printOnce('warn', ...params)
}