Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lostfields/vscode-nodejs-repl
Visual Studio Code - Extension NodeJs REPL
https://github.com/lostfields/vscode-nodejs-repl
Last synced: 3 months ago
JSON representation
Visual Studio Code - Extension NodeJs REPL
- Host: GitHub
- URL: https://github.com/lostfields/vscode-nodejs-repl
- Owner: lostfields
- License: mit
- Created: 2018-01-06T11:26:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T18:19:07.000Z (about 2 years ago)
- Last Synced: 2024-07-31T07:19:08.032Z (6 months ago)
- Language: TypeScript
- Size: 1.17 MB
- Stars: 45
- Watchers: 3
- Forks: 12
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome - vscode-nodejs-repl - Visual Studio Code - Extension NodeJs REPL (TypeScript)
README
# Node.js Interactive window (REPL)
Node.js Interactive Window (REPL) for Visual Studio Code using Node.js command line right in your favorite IDE. Simply press CTRL + SHIFT + P and launch "Node.js Interactive window (REPL)".
This is a preview and I would really love some feedback if something is not working as it should.
## Features
Both "return" values and console.log is supported, just as in Node.js REPL since that is used behind the scenes.
![Screenshot of Node.js Interactive window (REPL)](./preview.gif)
## Requirements
This extension requires Node.js v6+, but only tested with Node 7+
## Known Issues
Note, this is a preview so please report any bugs
## Future developement
Some want all, but right now I think it's working good. I want to look into implementing this though;
- Import/require of external files/modules## Release Notes
### 0.5.15
- few bugfixes after errors is thrown different in newer NodeJs
- fixing circular references in serializer
- output fixes (thanks @plylrnsdy)
- require should probably work better (thanks @plylrnsdy)
- console.log with multiline
- ... and a few more### 0.4.9
- Small output fixes (thanks @nchursin)
- Added console methods
- Added a stop command
- Import of workspace modules + a bugfix for importing from NodeJs API
- Text editor optimizations for drawing results/console
- Annoying bug where error/result didn't get removed when there was an empty document
- Hoover message for result/console
- Possibility to run REPL for any active javascript editor
- Runs REPL for first document named Untitled-* when opening new project with opened documents
- Dispose REPL by closing the active document### 0.3.6
- Only single window with support for console, result and error
- Console output for Promises
- Fix for nested methods call in newlines.
- Fix for promise results and exceptions
- Fix for exceptions in functions
- Fix for positioning of results when statements returned undefined### 0.2.3
- Experimenting with single window instead of split window
### 0.2.0
- Rewrite for import to require, to support Node.js v6+
- Parsing when semicolon or new line is typed
- Autoparsing after 2s after inactivity### 0.1.0
- Initial release