wiremock-standalone
Advanced tools
Weekly downloads
Readme
This package downloads WireMock standalone from Maven Central and provides simple CLI wrapper for NPM.
npm i -D wiremock-standalone
# OR
yar 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 349 weekly downloads. As such, wiremock-standalone popularity was classified as not popular.
We found that wiremock-standalone 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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.