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.
@flood/chrome
Advanced tools
Flood Chrome brings the familiar power of traditional browser scripting tools with the proven performance of Flood to create an easy to use and maintainable performance testing tool.
This package provides the type definitions to help you write Flood Chrome "BLU" scripts and run them on Flood using real browsers.
1. Create a Workspace
Create a new project directory or skip to step 2 if you're using an existing project
2. Install @flood/chrome
Add @flood/chrome
as a development dependency to your package.json
:
# using yarn
yarn add @flood/chrome
# using NPM
npm install -sd @flood/chrome
3. Create test script
Flood Chrome uses TypeScript for type correctness and inline documentation as you write. Make sure you have TypeScript support enabled in your editor.
// 1. Import the basic test components from this package
import { test, step, assert } from '@flood/chrome'
// 2. Define the test. Every test must make this call to register itself
test(() => {
/**
* 3. Define your first step.
*
* Each step must have a unique label as the first argument, and an async callback function
* as the second argument. The callback function receives an instance of the Driver, which
* exposes all the functions you can call on Browser during a test.
*
* Using async/await is simply a cleaner way of using Promises, and allows us to keep the test plan
* very clean and succinct without declaring multiple Promise chain callbacks.
*/
step('1. Start challenge', async (driver: Driver) => {
await driver.visit('https://challenge.flood.io')
let h2 = await driver.waitForElement('h2')
let h2Text = await driver.extractText(h2)
assert.equal(h2Text, 'Flood Challenge')
})
})
4. Upload to Flood
Once you've written your first script, simply upload it to Flood and launch a test.
FAQs
Flood Chrome provides an API for scripting Browser Level Load Tests
The npm package @flood/chrome receives a total of 3 weekly downloads. As such, @flood/chrome popularity was classified as not popular.
We found that @flood/chrome 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.