Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mountebank-formatters

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mountebank-formatters

The default parsers and formatters for managing mountebank test data

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
33K
increased by35.29%
Maintainers
1
Weekly downloads
 
Created
Source

Formatters

As of v2.4.0, mountebank supports custom formatters.

A formatter consists of two functions:

  • load, which loads the --configfile used to start mountebank
  • save, which saves the test data captured in a running process of mountebank using the mb save command

Those two functions should work in concert, so you can round-trip the configuration. In other words, the following should always work for the same formatter:

mb save --savefile mb.json --formatter default
mb stop
mb start --configfile mb.json --formatter default

For years, mountebank supported EJS templating, which could be turned off using the --noParse CLI flag. When EJS made a breaking change, mountebank couldn't accept it because it would break existing config files. That has now been modularized into this module (allowing mountebank core to upgrade EJS), and remains the default option for backwards compatibility. However, now mountebank supports configurable formatters.

Keywords

FAQs

Package last updated on 29 Dec 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc