
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@smartbear/react-gherkin-editor
Advanced tools
A Gherkin language editor for React.
React Gherkin Editor is a wrapper arround React Ace Editor specially designed for Gherkin.
Features:
Using npm:
npm install --save @smartbear/react-gherkin-editor
Using yarn:
yarn add @smartbear/react-gherkin-editor
import React from 'react'
import { render } from 'react-dom'
import ReactGherkinEditor from '@smartbear/react-gherkin-editor'
const root = document.createElement('div')
document.body.appendChild(root)
const initialValue = `Feature: Serve coffee
As a coffee lover
I can get coffee from the machine
So I can enjoy the rest of the day
Scenario: Simple use
# Well, sometimes, you just get a coffee.
Given the coffee machine is started
When I take a coffee
Then coffee should be served
And message "Please take your coffee" should be printed`
const steps = [
'I start the coffee machine using language "lang"',
'I shutdown the coffee machine',
'message "message" should be displayed'
]
const onValueChange = console.log
const autoCompleteFunction = async (_keyword, text) => {
const matches = steps.filter(step => step.startsWith(text))
const completions = matches.map(match => ({
caption: match,
value: match,
score: Math.floor(Math.random() * Math.floor(100)),
meta: 'Step'
}))
return completions
}
render(
<ReactGherkinEditor
initialValue={initialValue}
onChange={onValueChange}
autoCompleteFunction={autoCompleteFunction}
language='en'
theme='cucumber'
/>,
root
)
[2.4.14]
FAQs
A Gherkin language editor for React.
The npm package @smartbear/react-gherkin-editor receives a total of 2,481 weekly downloads. As such, @smartbear/react-gherkin-editor popularity was classified as popular.
We found that @smartbear/react-gherkin-editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 open source maintainers collaborating on the project.
Did you know?
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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.