Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including nephrite-dev-logger with all npm packages installed. Try it out:

var nephriteDevLogger = require("nephrite-dev-logger")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

nephrite-dev-logger v1.2.0

DevLogger is a utility class designed to simplify logging in JavaScript applications based on the development environment. It allows you to log messages in a convenient and controlled manner. The class constructor takes a boolean parameter, indicating whether the environment is in development mode. During logging, you can specify messages for development and production environments. When you log a message, you can choose to display it in the development environment only, the production environment only, or both. This class helps streamline logging practices and provides flexibility to adapt logging messages based on the current environment.With this class, you can ensure that your application logs relevant information while minimizing noise in different environments.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free