
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
REPLos is a tool that enables developers to keep working in a single context.
Without REPLos, you need to switch context every time you verify your codes correctness.
With REPLos, you write a short unit of functionality and immediately check for mistakes, by evaluating just the code you have written and not leaving your IDE.
Additional benefit: You can use the inputs you provided to generate unit tests.
npm i -g replos
replos-server
default port is set to 9464
can be changed with -p <PORT>
e.g. replos-server -p 9465
;
replos repl "1 + 1"
or replos repl -p <PORT> "1 + 1"
For Intellij you can register replos as external tool. You can download and import ./ide-integration/intellij/exportedSettings.zip into intellij with File > Import Settings. This settings-package contains replos commands as external tool and key-bindings to them.
replos <Command> <CommandArgs>
Command | Description |
---|---|
call | Calls first named function1 at location |
declare | Declares word at location as variable |
find | Finds and evaluates $NodeType$ at location |
load | Loads file, line or word at location |
repl | Pipes input unprocessed to the repl |
test | Generates test for function at location |
[1] Non-anonymous functions or anonymous functions which are immediately assigned to a variable are considered named functions.
replos call $FilePath$ $LineNumber$ $ColumnNumber$
replos declare $FilePath$ $LineNumber$ $ColumnNumber$
replos find $NODE$ $FilePath$ $LineNumber$ $ColumnNumber$
Node is a string that matches against node types of the abstract syntax tree (https://babeljs.io/docs/en/babel-types)
e.g.
replos find VariableDeclaration ...
replos find Function ...
replos find Expression ...
replos load ...
The behavior depends on the amount of arguments provided
replos load $FilePath$
loads whole file
replos load $FilePath$ $LineNumber$
load line
replos load $FilePath$ $LineNumber$ $ColumnNumber
loads word at location
replos load $FilePath$ $SelectionStartLine$ $SelectionStartColumn$ $SelectionEndLine$ $SelectionEndColumn$
loads everything between
sends code directly to to the node repl
e.g.:
replos repl 1 + 1
replos repl .clear
Generates a test about the function at the location. Can be configured to use jest or mocha and commonjs or modules.
test $FilePath$ $LineNumber$ $ColumnNumber$
Netcat to the repl server.
Copyright (c) 2020-present, Tim Kutscha
FAQs
REPL on steroids for typescript and javascript
The npm package replos receives a total of 0 weekly downloads. As such, replos popularity was classified as not popular.
We found that replos demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.