Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

vscode-wrap-console-log-simple

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-wrap-console-log-simple

Wrap to console.log(or any function name) by word or selection

latest
Source
npmnpm
Version
1.6.26
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Demo

demo.gif

source code

https://github.com/WooodHead/vscode-wrap-console-log-simple

original project

https://github.com/midnightsyntax/vscode-wrap-console-log

Features

This extension read the word under your cursor and insert a statement with the word:

alt + E: console.log('variable');

cmd + E: console.log('variable', variable);

alt + A: new line;

alt + W: // comment line

cmd + J: console.log('variable', JSON.stringify(variable, null, 2));

alt + F: expect(variable).toBeDefined();


In settings, replace console.log with your own function name, example:

Wrap-console-log-simple: Function Name

debug

will output

debug('variable');
debug('variable', variable);

Search in 180M open source javascript projects.

https://codexp.link

image

Keywords

wrap

FAQs

Package last updated on 08 Apr 2023

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