Instantly setup node package to test code snippets & npm packages.
Whenever I had to test some npm package, I used to create a directory, run npm init
and write code. But it was hard to maintain these scripts for me. So I built a vscode extension which exports some commands to take care of above problem.
- Create playground
- Open playground
- Remove playground
- Open Visual Studio Code
- Press
Ctrl+P
to open the Quick Open dialog - Type
ext install js-playground
to find the extension - Click the
Install
button, then the Enable button
OR
- Press
Ctrl+Shift+X
to open the Extensions tab - Type
js-playground
to find the extension - Click the Install button, then the Enable button
OR
- Open a command-line prompt
- Run
code --install-extension himanshumehta1114.vscode-js-playground
This extension contributes the following settings:
jsPlayground.location
: location where playgrounds are stored