void-linux / void-linux/void-packages

Package request: regex2json

Open
#46,615 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

request
Dominant language
Shell
Stars
3.4k
Forks
2.8k
Avg merge
2d 5h
Merged PRs (30d)
299

Description

Package name

regex2json

Package homepage

https://gitlab.com/tozd/regex2json

Description

Convert text to JSON using only regular expressions.

Features:

  • Reads stdin line by line, converting each line to JSON to stdout.
  • Supports transformations of matched capture groups by specifying the transformation as capture group's name.
  • Transformation consists of a series of operators (e.g., parsing numbers, timestamps, creating arrays and objects).
  • Supports regexp matching a line multiple times, combining all matches into one JSON.

regex2json is implemented in Go and uses its standard regexp package for parsing and compiling regular expressions.

Does the requested package meet the package requirements?

System, Compiled

Is the requested package released?

Yes

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the regex2json project at https://gitlab.com/tozd/regex2json and confirm its release details and command-line behavior. Then inspect the void-packages contribution guidance and existing package definitions to determine the required packaging entry. Done means regex2json is packaged from its released source and its stdin-to-JSON command is usable in Void Linux.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.