All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.lib.warn-once.js Maven / Gradle / Ivy

There is a newer version: 8.4.49
Show newest version
/* eslint-disable no-console */
'use strict'

let printed = {}

module.exports = function warnOnce(message) {
  if (printed[message]) return
  printed[message] = true

  if (typeof console !== 'undefined' && console.warn) {
    console.warn(message)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy