3.2.1 • Published 8 months ago

wiremock-standalone v3.2.1

Weekly downloads
3,052
License
Apache-2.0
Repository
github
Last release
8 months ago

WireMock Standalone for NPM

Wiremock Standalone Wiremock Standalone npm

This package downloads WireMock standalone from Maven Central and provides simple CLI wrapper for NPM.

How to use

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"
  }
}

Downloader configuration

By default, the latest stable jre8 version of WireMock JAR is downloaded from public Maven repository. You can override this behavior by: 1. setting environment variables 2. creating .wiremock configuration file in your project (JSON format) 3. adding wiremock property in your package.json

ENVJSONDefault
MAVEN_REPO_URLmavenRepoURLhttps://repo1.maven.org/maven2
WIREMOCK_VERSIONversionresolved to the latest
JRE_VERSIONjreVersionjre8

Runtime options

Java arguments

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

HOWTOs

Passing ENV variables with env-cmd

yarn env-cmd -f [path/to/.env] yarn wiremock --global-response-templating --verbose --root-dir ./mocks --permitted-system-keys=WIREMOCK_.*

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

Donate

3.2.1

8 months ago

3.2.0

8 months ago

3.1.2

1 year ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

1.0.0

3 years ago

2.27.2-1

3 years ago

2.26.3-1

4 years ago

2.25.1-2

4 years ago

2.25.1-1

4 years ago

2.25.0-1

5 years ago

2.24.0-1

5 years ago

2.23.2-1

5 years ago

2.20.0-1

5 years ago

2.19.0-2

5 years ago

2.19.0-1

6 years ago

2.18.0-2

6 years ago

2.18.0-1

6 years ago

2.15.0-2

6 years ago

2.15.0-1

6 years ago

2.15.0-0

6 years ago

2.15.0

6 years ago