
Product
Introducing Custom Tabs for Org Alerts
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.
Simple micro templating
npm install --global pupa-cli
$ pupa --help
Usage
$ pupa [options]
Options
--filters, -f <object> JavaScript object literal with filter functions
Examples
$ echo 'The mobile number of {name} is {mobile}' | pupa --name=Sindre --mobile='609 24 363'
The mobile number of Sindre is 609 24 363
$ echo 'I like {0} and {1}' | pupa đŚ đŽ
I like đŚ and đŽ
$ echo 'Hello {{0}}' | pupa '<b>World</b>'
Hello <b>World</b>
Using custom filters:
$ echo 'Hello {name | uppercase}' | pupa --name=world --filters='{uppercase: v => v.toUpperCase()}'
Hello WORLD
$ echo '{text | trim | reverse}' | pupa --text=' hello ' --filters='{trim: v => v.trim(), reverse: v => [...v].reverse().join("")}'
olleh
Filters allow you to transform template values using the pipe syntax: {value | filter}. You can chain multiple filters: {value | filter1 | filter2}.
Define filters using the --filters option with a JavaScript object literal:
$ echo '{name | uppercase | reverse}' | pupa --name=hello --filters='{uppercase: v => v.toUpperCase(), reverse: v => [...v].reverse().join("")}'
OLLEH
{
uppercase: v => v.toUpperCase(),
lowercase: v => v.toLowerCase(),
trim: v => v.trim(),
reverse: v => [...v].reverse().join(''),
length: v => v.length.toString()
}
FAQs
Simple micro templating
The npm package pupa-cli receives a total of 2 weekly downloads. As such, pupa-cli popularity was classified as not popular.
We found that pupa-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socketâs Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScriptâs Date object.