
Security News
Packagist Urges Immediate Composer Update After GitHub Actions Token Leak
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.
@draftbit/variable-json
Advanced tools
This defines a superset of JSON, with the addition of "variables" which appear between curly braces (e.g. `{{someVariable}}`). The format of the variables can be customized by the user, although by default it will parse an alphanuxmeric identifier which c
This defines a superset of JSON, with the addition of "variables"
which appear between curly braces (e.g. {{someVariable}}). The
format of the variables can be customized by the user, although by
default it will parse an alphanuxmeric identifier which can start with
a letter or underscore and subsequently contain any letter, digit or
_. Although by default variables are strings, the vjson type is
polymorphic and the structure can be mapped over to support more
complex information.
{
"id": {{id}},
"color": {{color}},
"allSizes": ["small", "medium", "large"],
"size": {{size}},
}
This library provides tools for:
let vJson: VJson.t(string) = VJson.parseDefault("{
\"id\": {{id}},
\"color\": {{color}},
\"allSizes\": [\"small\", \"medium\", \"large\"],
\"size\": {{size}},
}")->Belt.Result.getExn;
// Prints "Set { 'id', 'color', 'size' }"
Js.log(vJson->VJson.findVariables);
// Customizing the variable format to integers
let vJsonWithInts: VJson.t(int) = VJson.(
"{{123}}"
|> VJson.parseWithRegex([%re {|/\d+/|}])
|> Belt.Result.getExn
)
->VJson.map(int_of_string)
yarn re:build
yarn re:watch
FAQs
This defines a superset of JSON, with the addition of "variables" which appear between curly braces (e.g. `{{someVariable}}`). The format of the variables can be customized by the user, although by default it will parse an alphanuxmeric identifier which c
The npm package @draftbit/variable-json receives a total of 53 weekly downloads. As such, @draftbit/variable-json popularity was classified as not popular.
We found that @draftbit/variable-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.

Research
GemStuffer abuses RubyGems as an exfiltration channel, packaging scraped UK council portal data into junk gems published from new accounts.

Company News
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.