
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
regexp-tpl
allows you to create templated regular expressions.
First install regexp-tpl
in you project:
npm install --save regexp-tpl
Then, use it:
const regexpTpl = require('regexp-tpl');
const assert = require('assert');
const fruits = [{
name: 'orange',
count: 2,
colors: ['orange'],
}, {
name: 'banana',
count: 0,
colors: ['yellow', 'white'],
}, {
name: 'kiwi',
count: 8,
colors: ['brown', 'green'],
}];
assert(regexpTpl(fruits, 'My car is {colors.#}!').test('My car is brown!'));
assert(!regexpTpl(fruits, 'My car is {colors.#}!').test('My car is blue!'));
Note that regexp-tpl
template values are evaluated with
miniquery
's syntax.
## API
### regExp:RegExp regexpTpl(objs:Array, regExpTemplate:String, regExpflags:String, tplRegExp:RegExp)
Return a RegExp
instance made with the given regExpTemplate
and regExplags
filled with the values picked up in the given objs
. An optionnal tplRegExp
value can be provided for custom template syntax.
Feel free to submit us your improvements. To do so, you must accept to publish your code under the MIT license.
To start contributing, first run the following to setup the development environment:
git clone git@github.com:SimpliField/regexp-tpl.git
cd regexp-tpl
npm install
Then, run the tests:
npm test
FAQs
Templated regular expressions.
The npm package regexp-tpl receives a total of 8 weekly downloads. As such, regexp-tpl popularity was classified as not popular.
We found that regexp-tpl 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
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.