New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@rmw/console

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmw/console

## 安装

latest
Source
npmnpm
Version
0.0.20
Version published
Maintainers
1
Created
Source

@rmw/console

安装

yarn add @rmw/console

或者

npm install @rmw/console

配置

比如你的package.json中的name@rmw/xxx

可以通过环境变量

RMW_XXX_DEBUG 来配置是否在屏幕上打印日志

可以配置 RMW_XXX_LOGRMW_XXX_ERR 来控制输出日志的文件

RMW_LOGRMW_ERRRMW_DEBUG,则为项目的全局配置

也可以配置 ~/.config/rmw/console.yml 来设置以上变量

配置文件还可以设置

date: "YYYY-MM-DD HH:mm:ss"

来控制是否显示日期

使用

#!/usr/bin/env coffee
import Console from '@rmw/console'

do =>
  console = Console()
  console.log "您好"
  console.dir {a:b:[1,2,3]}
  console.dir {a:b:[1,2,3]}, {colors:false}
  console.trace()
  console.error "test"

关于

本项目隶属于人民网络(rmw.link) 代码计划。

人民网络

FAQs

Package last updated on 19 Dec 2021

Did you know?

Socket

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.

Install

Related posts