
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Instantly try npm modules in REPL environment.
coffee-script/repl
.$ npm install -g replem
replem [options] [<pkg>[:<alias>]]...
--repl require a custom repl
-v, --verbose enable verbose output
-h, --help displays help
Launches a REPL session with specified packages installed and available in the context.
Uses npm install
internally, so
similar types of arguments are accepted.
For example:
replem lodash@3.0.0
replem githubname/reponame#commit
By postfixing module's name with :<alias>
you can set an alias for a
module. Module's exports will be available under this name.
$ replem ramda:R
Installed into REPL context:
- ramda@0.17.1 as R
> R.inc(1) // 2
With a bang (!
) after everything, all module's properties will be directly
available in context:
$ replem ramda!
Installed into REPL context:
- ramda@0.17.1 as ramda
> reduce === ramda.reduce
true
To use a custom repl, install it to ~/.replem/node_modules
first:
$ npm install --prefix ~/.replem coffee-script
$ replem --repl coffee-script/repl lodash
> (n * 2 for n in [0..5])
Array [ 0, 2, 4, 6, 8, 10 ]
The REPL context is provided with the function replem.require()
that can be
used to require from under ~/.replem/node_modules
.
FAQs
Instantly try npm modules in REPL environment
We found that replem 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.