{"id":18875798,"url":"https://github.com/wiremock/wiremock-npm","last_synced_at":"2025-10-29T11:23:28.498Z","repository":{"id":57398298,"uuid":"206102933","full_name":"wiremock/wiremock-npm","owner":"wiremock","description":"Wiremock Standalone wrapped in an NPM package so that it can be run with 'npx wiremock'.","archived":false,"fork":false,"pushed_at":"2025-10-07T18:37:37.000Z","size":64,"stargazers_count":25,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-19T05:48:29.452Z","etag":null,"topics":["hacktoberfest","npm-package","wiremock"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/wiremock","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wiremock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-09-03T14:53:05.000Z","updated_at":"2025-10-07T18:37:41.000Z","dependencies_parsed_at":"2024-04-23T16:01:15.511Z","dependency_job_id":"f1ff10ff-c328-46fe-b5fe-0dc7d0d17c59","html_url":"https://github.com/wiremock/wiremock-npm","commit_stats":{"total_commits":76,"total_committers":2,"mean_commits":38.0,"dds":"0.39473684210526316","last_synced_commit":"4eadcc7606ba5e8dd320192b813dbe5383c72686"},"previous_names":["wiremock/wiremock-npm","tomasbjerre/wiremock-npm"],"tags_count":47,"template":false,"template_full_name":null,"purl":"pkg:github/wiremock/wiremock-npm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremock%2Fwiremock-npm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremock%2Fwiremock-npm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremock%2Fwiremock-npm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremock%2Fwiremock-npm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiremock","download_url":"https://codeload.github.com/wiremock/wiremock-npm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremock%2Fwiremock-npm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281609982,"owners_count":26530749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","npm-package","wiremock"],"created_at":"2024-11-08T06:09:13.095Z","updated_at":"2025-10-29T11:23:28.241Z","avatar_url":"https://github.com/wiremock.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wiremock NPM\n\n[![NPM](https://img.shields.io/npm/v/wiremock.svg?style=flat-square) ](https://www.npmjs.com/package/wiremock)\n\nThis is [Wiremock Standalone](http://wiremock.org/docs/running-standalone/) wrapped [inside an NPM package](https://github.com/tomasbjerre/npm-java-runner). It relies only on dependencies found in NPM.\n\nSee: http://wiremock.org/docs/running-standalone/\n\n## Example - Command line\n\nIt can be used as a command line tool like this:\n\n```bash\nnpx wiremock\n```\n\n## Example - Mock API in frontend app\n\nThis example is in the repo in [`example-mock-api-with-express`](/example-mock-api-with-express).\n\nIt starts a server with [ExpressJS](https://www.npmjs.com/package/expressjs) and delegates to a frontend and an API. When running `npm run serve` it will start this setup:\n\n```\nhttp://localhost:8080/\n  |\n  |\n  |---[/api/*]-\u003e http://localhost:8081/\n  |\n   \\\n    \\-[*]------\u003e http://localhost:8082/\n```\n\nSo that:\n\n- `http://localhost:8080/api/example` Will serve the API with `wiremock`.\n- `http://localhost:8080/whatever` Will serve the frontend. This can be a Vue app or whatever.\n\n## Command line arguments\n\nAvailable command line arguments `npx wiremock --help`:\n\n```sh\nOption                                  Description                             \n------                                  -----------                             \n--admin-api-basic-auth \u003cString\u003e         Require HTTP Basic authentication for   \n                                          admin API calls with the supplied     \n                                          credentials in username:password      \n                                          format                                \n--admin-api-require-https               Require HTTPS to be used to access the  \n                                          admin API                             \n--allow-proxy-targets \u003cString\u003e          Comma separated list of IP addresses,   \n                                          IP ranges (hyphenated) and domain     \n                                          name wildcards that can be proxied    \n                                          to/recorded from. Is evaluated        \n                                          before the list of denied addresses.  \n--async-response-enabled \u003cString\u003e       Enable asynchronous response (default:  \n                                          false)                                \n--async-response-threads \u003cString\u003e       Number of asynchronous response         \n                                          threads (default: 10)                 \n--bind-address \u003cString\u003e                 The IP to listen connections            \n--ca-keystore \u003cString\u003e                  Path to an alternative keystore         \n                                          containing a Certificate Authority    \n                                          private key \u0026 certificate for         \n                                          generating certificates when          \n                                          proxying HTTPS. Password is assumed   \n                                          to be \"password\" if not specified.    \n                                          (default: /home/bjerre/.wiremock/ca-  \n                                          keystore.jks)                         \n--ca-keystore-password \u003cString\u003e         Password for the alternative CA         \n                                          keystore. (default: password)         \n--ca-keystore-type \u003cString\u003e             Type of the alternative CA keystore     \n                                          (jks or pkcs12). (default: jks)       \n--container-threads \u003cString\u003e            The number of container threads         \n--deny-proxy-targets \u003cString\u003e           Comma separated list of IP addresses,   \n                                          IP ranges (hyphenated) and domain     \n                                          name wildcards that cannot be         \n                                          proxied to/recorded from. Is          \n                                          evaluated after the list of allowed   \n                                          addresses.                            \n--disable-banner                        Disable print banner logo               \n--disable-extensions-scanning           Prevent extensions from being scanned   \n                                          and loaded from the classpath         \n--disable-gzip                          Disable gzipping of request and         \n                                          response bodies                       \n--disable-http                          Disable the default HTTP listener.      \n--disable-optimize-xml-factories-       Whether to disable optimize XML         \n  loading                                 factories loading or not.             \n--disable-request-logging               Disable logging of stub requests and    \n                                          responses to the notifier. Useful     \n                                          when performance testing.             \n--disable-response-templating           Disable processing of responses with    \n                                          Handlebars templates                  \n--disable-strict-http-headers           Whether to disable strict HTTP header   \n                                          handling of Jetty or not.             \n--enable-browser-proxying               Allow wiremock to be set as a           \n                                          browser's proxy server                \n--enable-stub-cors                      Enable automatic sending of CORS        \n                                          headers with stub responses.          \n--extensions \u003cString\u003e                   Matching and/or response transformer    \n                                          extension class names, comma          \n                                          separated.                            \n--filename-template \u003cString\u003e            Add filename template                   \n--global-response-templating            Preprocess all responses with           \n                                          Handlebars templates                  \n--help                                  Print this message                      \n--https-keystore \u003cString\u003e               Path to an alternative keystore for     \n                                          HTTPS. Password is assumed to be      \n                                          \"password\" if not specified.          \n                                          (default: jar:file:/home/bjerre/.     \n                                          npm/_npx/7a7511ad0e1cd094/node_modules/wiremock/build/wiremock-\n                                          standalone-3.3.0.jar!/keystore)       \n--https-port \u003cString\u003e                   If this option is present WireMock      \n                                          will enable HTTPS on the specified    \n                                          port                                  \n--https-require-client-cert             Make the server require a trusted       \n                                          client certificate to enable a        \n                                          connection                            \n--https-truststore \u003cString\u003e             Path to an alternative truststore for   \n                                          HTTPS client certificates. Must have  \n                                          a password of \"password\".             \n--jetty-accept-queue-size \u003cString\u003e      The size of Jetty's accept queue size   \n--jetty-acceptor-threads \u003cString\u003e       Number of Jetty acceptor threads        \n--jetty-header-buffer-size \u003cString\u003e     Deprecated. The size of Jetty's buffer  \n                                          for request headers                   \n--jetty-header-request-size \u003cString\u003e    The size of Jetty's buffer for request  \n                                          headers                               \n--jetty-header-response-size \u003cString\u003e   The size of Jetty's buffer for          \n                                          response headers                      \n--jetty-idle-timeout \u003cString\u003e           Idle timeout in milliseconds for Jetty  \n                                          connections                           \n--jetty-stop-timeout \u003cString\u003e           Timeout in milliseconds for Jetty to    \n                                          stop                                  \n--key-manager-password \u003cString\u003e         Key manager password for use with the   \n                                          alternative keystore. (default:       \n                                          password)                             \n--keystore-password \u003cString\u003e            Password for the alternative keystore.  \n                                          (default: password)                   \n--keystore-type \u003cString\u003e                The HTTPS keystore type. (default: JKS) \n--load-resources-from-classpath         Specifies path on the classpath for     \n  \u003cString\u003e                                storing recordings (parent for        \n                                          mappings and __files folders)         \n--local-response-templating             Preprocess selected responses with      \n                                          Handlebars templates                  \n--logged-response-body-size-limit       Maximum size for response bodies        \n  \u003cString\u003e                                stored in the request journal beyond  \n                                          which truncation will be applied      \n--match-headers \u003cString\u003e                Enable request header matching when     \n                                          recording through a proxy             \n--max-request-journal-entries \u003cString\u003e  Set maximum number of entries in        \n                                          request journal (if enabled) to       \n                                          discard old entries if the log        \n                                          becomes too large. Default: no        \n                                          discard                               \n--max-template-cache-entries [String]   The maximum number of response          \n                                          template fragments that can be        \n                                          cached. Only has any effect when      \n                                          templating is enabled. Defaults to    \n                                          no limit.                             \n--no-request-journal                    Disable the request journal (to avoid   \n                                          heap growth when running wiremock     \n                                          for long periods without reset)       \n--permitted-system-keys [String]        A list of case-insensitive regular      \n                                          expressions for names of permitted    \n                                          system properties and environment     \n                                          vars. Only has any effect when        \n                                          templating is enabled. Defaults to    \n                                          no limit.                             \n--port \u003cString\u003e                         The port number for the server to       \n                                          listen on (default: 8080). 0 for      \n                                          dynamic port selection.               \n--preserve-host-header                  Will transfer the original host header  \n                                          from the client to the proxied        \n                                          service                               \n--print-all-network-traffic             Print all raw incoming and outgoing     \n                                          network traffic to console            \n--proxy-all \u003cString\u003e                    Will create a proxy mapping for /* to   \n                                          the specified URL                     \n--proxy-pass-through \u003cString\u003e           Flag to control browser proxy pass      \n                                          through                               \n--proxy-timeout \u003cString\u003e                Timeout in milliseconds for requests    \n                                          to proxy                              \n--proxy-via \u003cString\u003e                    Specifies a proxy server to use when    \n                                          routing proxy mapped requests         \n--record-mappings                       Enable recording of all (non-admin)     \n                                          requests as mapping files             \n--root-dir \u003cString\u003e                     Specifies path for storing recordings   \n                                          (parent for mappings and __files      \n                                          folders) (default: .)                 \n--timeout                               The default global timeout.             \n--trust-all-proxy-targets               Trust all certificates presented by     \n                                          origins when browser proxying         \n--trust-proxy-target \u003cString\u003e           Trust any certificate presented by      \n                                          this origin when browser proxying     \n--truststore-password \u003cString\u003e          Password for the trust store (default:  \n                                          password)                             \n--truststore-type \u003cString\u003e              The HTTPS trust store type (default:    \n                                          JKS)                                  \n--use-chunked-encoding \u003cString\u003e         Whether to use Transfer-Encoding:       \n                                          chunked in responses. Can be set to   \n                                          always, never or body_file.           \n                                          (default: always)                     \n--verbose                               Enable verbose logging to stdout \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremock%2Fwiremock-npm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiremock%2Fwiremock-npm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremock%2Fwiremock-npm/lists"}