Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Preacher verifies API servers, which requests to the servers and verify the responses along to given scenarios.
Test scenarios are written only in YAML declaratively, without coding. In spite of that, Preacher can validate your web API flexibly, which enables you to test using real (neither mocks nor sandboxes) backends.
The full documentation is available at preacher.readthedocs.io.
First, install Preacher.
The most basic way to install Preacher is using pip
. Supports only Python 3.7+.
$ pip install preacher
$ preacher-cli --version
Instead of pip
, Docker images are also available on
Docker Hub
as ymoch/preacher
.
By default, the container working directory is /work
,
and the host directory may be mounted here.
$ docker pull ymock/preacher
$ docker run -v $PWD:/work ymoch/preacher preacher-cli --version
Second, write your own scenario.
# scenario.yml
label: An example of a scenario
cases:
- label: An example of a case
request: /path/to/foo
response:
status_code: 200
body:
- describe: .foo
should:
equal: bar
Then, run preacher-cli
command.
$ preacher-cli -u http://your.domain.com/base scenario.yml
For more information such as grammer of scenarios, see the full documentation.
Copyright (c) 2019 Yu MOCHIZUKI
FAQs
Web API Verification without Coding.
We found that preacher 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
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.