Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

wiremock-standalone

Package Overview
Dependencies
2
Maintainers
1
Versions
20
Issues
File Explorer

Advanced tools

wiremock-standalone

WireMock standalone binary

    3.1.2latest
    GitHub

Version published
Maintainers
1
Weekly downloads
399
decreased by-7.64%

Weekly downloads

Readme

Source

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 yar 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

Keywords

FAQs

Last updated on 01 Mar 2023

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.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc