npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hefan-log

v0.0.25

Published

hefan debug console.log

Downloads

53

Readme

hefan-log

hefan debug console.log

说明

最新版本为v0.0.14

 盒饭TV内部使用

 仅限于 npm 方式安装

环境 node 语言 es6

项目使用(nodejs 6.0+)


# 安装
npm install --save hefan-log

# 配置

//在js中引用

import Log from "hefan-debug-log-s";

//若使用webpack,可在配置文件中设置别名,配置后可在项目中直接使用

plugins: [
        new webpack.ProvidePlugin({
            "Log": 'hefan-log',
        })
    ],
//配置方法
//projectName  项目名称 env 环境   level 输出级别

Log.config(projectName, env,level)

// projectName:项目名称,若webpack中设置了相应全局变量_PROJECTNAME,则取_PROJECTNAME。默认为'项目名称未配置'.

// env:配置的环境应是['development', 'testing', 'preproduction', 'production']中存在的,否则无法展示,默认为当前进程环境

// level 配置的level应是 ['debug', 'log', 'info', 'warn', 'error']中存在的  debug级别最低,error最高。

// 此字段代表只输出高于所设级别的log,例如设置为log级,那么Log.debug()则不会被输出

// 配置例子

Log.config('测试项目', 'development','log')

//代码调用方法  仅能为 'debug', 'log', 'info', 'warn', 'error'中的一个。

Log.xxx('输出的页面名称','输出的内容')



# log展示地址
http://debug.hefantv.com/debug