Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
wiremock-standalone
Advanced tools
This package downloads WireMock standalone from Maven Central and provides simple CLI wrapper for NPM.
npm i -D wiremock-standalone
# OR
pnpm add -D wiremock-standalone
# OR
yarn add -D wiremock-standalone
Usage (as script in package.json
):
{
"scripts": {
"start:mock": "wiremock --root-dir ./mock"
}
}
By default, the latest stable jre8
version of WireMock JAR is downloaded from public Maven repository.
You can override this behavior by:
.wiremock
configuration file in your project (JSON format)wiremock
property in your package.json
ENV | JSON | Default |
---|---|---|
MAVEN_REPO_URL | mavenRepoURL | https://repo1.maven.org/maven2 |
WIREMOCK_VERSION | version | resolved to the latest |
JRE_VERSION | jreVersion | jre8 |
You can pass options to Java runtime with --java-arg
CLI argument. All system properties are collected and appended to wiremock's --permitted-system-keys
option.
wiremock --java-arg -Dmy.custom.var=some-value --root-dir ./mock
yarn env-cmd -f [path/to/.env] yarn wiremock --global-response-templating --verbose --root-dir ./mocks --permitted-system-keys=WIREMOCK_.*
If this project help you reduce time to develop, you can give me a cup of coffee :)
FAQs
WireMock standalone binary
The npm package wiremock-standalone receives a total of 1,674 weekly downloads. As such, wiremock-standalone popularity was classified as popular.
We found that wiremock-standalone 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.