Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
ESHost makes it easy to run and compare ECMAScript code uniformly across a number of runtimes. Support for runtimes is provided by the library es-host-wrapper. Every host is initialized with the es-host-wrapper runtime API available which provides a uniform way to print, create realms, and eval code.
See es-host-wrapper's supported hosts for a list of hosts, download/build locations, and other information.
Manage hosts with eshost host
. Run files across all hosts using eshost file.js
. Run a quick script using eshost -e "script"
.
npm install -g eshost
eshost --help
eshost host --help
eshost host --add <name> <type> <path to host executable> --args <optional arguments>
eshost -e "print(Map.length)"
## chakra-es6
0
## d8
0
## chakra
0
## spidermonkey
1
## node
0
The command host
is used for managing hosts (see above for some examples). You can --add, --list, and --delete them. Adding a host requires a name, type, and path to the runtime executable. You can optionally pass arguments using --args. The same host can be added multiple times with different --args which makes it easy to compare the output of runtimes given different options (eg. by turning language features on and off).
Console hosts are either provided by the browser vendors or, more likely, built from source.
Host types are those provided by es-host-wrapper, namely:
FAQs
Invoke ECMAScript scripts in any command line JS engine.
We found that eshost demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.