🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

comment-log

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comment-log

Логирование js выражений на основе комментариев в nodejs

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
5
-28.57%
Maintainers
1
Weekly downloads
 
Created
Source

comment-log

Логирование js выражений на основе комментариев в nodejs

MIT License

Установка

npm install comment-log --save

Использование

Устанавливаем NODE_ENV=development

Подключаем в главном модуле раньше всех остальных модулей

require('comment-log');

В модулях за исключением модуля, где подключали require('comment-log'), используем комментарий вида

const a = [1, 2, 3, 4] /* 
-> a.filter(v => v % 2)
-> process.argv 
-> <любое валидное js выражение>
*/
module.exports = { a }

Либо в одну строку

const a = [1, 2, 3, 4] /*-> a.filter(v => v % 2) -> process.argv*/

Keywords

logging

FAQs

Package last updated on 25 Oct 2017

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