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.
lasso-node
Advanced tools
JavaScript widget and page unit testing with on the fly instrumentation
JavaScript widget and page unit testing with on the fly instrumentation
npm install -g lasso-node
Install phantomjs (version 1.8 or higher is recommended), it should be in the path.
Open examples\basic\foo.html in a browser. It should load foo.js, fooTests.js but report no coverage.
From command line run lasso on foo.html
lasso-node foo.html
Lasso starts a local webserver, starts phantomjs, runs the foo.html through the phantomjs. When phantomjs is asking for a .js file, lasso loads the js, instruments using istanbul and serves the instrumented version. Thus javascript code coverage is computed absolutely transparently to the testing code. After phantomjs is done, it saved the coverage object into a json file. Node then creates several reports: console and html. The html reports are very detailed, please take a look at them inside folder cover.
Use -h or --help command line switch to see all available options
Main ones:
Please contact me, Gleb Bahmutov at gleb.bahmutov@gmail.com with any comments, questions or suggestions.
MIT license, see included file. You can do pretty much anything except claim code ownership or sue me if there are problems ;)
FAQs
JavaScript widget and page unit testing with on the fly instrumentation
We found that lasso-node 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.
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.