You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@cucumber/cucumber-json-converter

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cucumber/cucumber-json-converter

Validates and converts Cucumber JSON for different Cucumber implementations and versions

0.1.0
latest
Source
npmnpm
Version published
Weekly downloads
4K
-12.83%
Maintainers
3
Weekly downloads
 
Created
Source

Cucumber JSON Converter

This library converts Cucumber JSON from multiple implementations and versions into a JavaScript object with a strict schema.

Usage

import { convert } from '@cucumber/cucumber-json-converter'

const ob = JSON.parse(jsonFromAnyCucumberImplementation)
const cucumberJsonObject = convert(ob)

The convert function will throw an error if it fails to recognize the object as a valid Cucumber JSON object.

Motivation

The "Cucumber JSON" format was created several years before the JSON Schema standard started gaining traction. The lack of a formal schema led to inconsistencies between different Cucumber implementations and releases.

This library contains JSON Schemas for multiple implementations and versions of Cucumber. These schemas have been retrofitted to match the actual output of these implementations.

Keywords

cucumber

FAQs

Package last updated on 09 Apr 2024

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