
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@sya-ri/echomock
Advanced tools
A lightweight and flexible API mocking tool that focuses on accurate response handling
A lightweight and flexible API mocking tool that focuses on accurate response handling. Perfect for testing and development environments.
X-ECHOMOCK-RES-<HEADER_NAME>
formatX-ECHOMOCK-DELAY
headernpx @sya-ri/echomock
npx @sya-ri/echomock
# or specify port
npx @sya-ri/echomock 3000
curl -X POST --location "http://localhost:8080/echomock" \
-H "X-ECHOMOCK-METHOD: GET" \
-H "X-ECHOMOCK-PATH: /example" \
-H "X-ECHOMOCK-CODE: 200" \
-H "X-ECHOMOCK-DELAY: 1000" \
-H "X-ECHOMOCK-RES-Content-Type: application/json" \
-d '{ "message": "hello from echomock!!" }'
curl -X GET --location "http://localhost:8080/example"
curl -X DELETE --location "http://localhost:8080/echomock" \
-H "X-ECHOMOCK-METHOD: GET" \
-H "X-ECHOMOCK-PATH: /example"
curl -X DELETE --location "http://localhost:8080/echomock/all"
npm install -D @sya-ri/echomock
import { serve, registerMock, deleteMock, deleteAllMocks } from "@sya-ri/echomock";
// Start the server
serve(3000);
// Register a mock
await registerMock({
method: "GET",
path: "/example",
code: 200,
delay: 1000, // Delay response by 1 second
headers: {
"Content-Type": "application/json"
},
body: new TextEncoder().encode(JSON.stringify({
message: "hello from echomock!!"
}))
});
// Delete a specific mock
deleteMock("GET", "/example");
// Delete all mocks
deleteAllMocks();
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A lightweight and flexible API mocking tool that focuses on accurate response handling
The npm package @sya-ri/echomock receives a total of 44 weekly downloads. As such, @sya-ri/echomock popularity was classified as not popular.
We found that @sya-ri/echomock demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.