
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
postcss-replace
Advanced tools
PostCSS plugin for replacing strings.
Write this:
/* CustomCSS Library v{{ version }} */
.foo {
content: "{{ author }}";
}
And get this:
/* CustomCSS Library v1.3.7 */
.foo {
content: "Gridonic";
}
$ npm install postcss-replace
postcss([ require('postcss-replace') ])
See PostCSS docs for examples regarding usage.
patternstring | RegEx'{{\\s?([^\\s]+?)\\s?}}'The default pattern will replace strings in the format of {{ myExampleKey }}. Adjust this pattern if you want
something different, for example /_([^\s]+?)_/ to match strings like _myExampleKey_.
commentsOnlybooleanfalseBy default the plugin will replace strings in comments and values. Turn this to true if you only want to replace strings
in comments.
dataobject{}This is the key → value object that provides the data for the plugin for replacing strings.
replaceAll is provided all matched strings will be replaced by the given value
e.g:
data: { replaceAll: 'replace all matched strings with this text' }Tests can be run via the following command:
$ npm run test
We use mutant-testing to test the resilience of our tests. Stryker can be run via the following command:
$ npm run test:mutate
FAQs
PostCSS plugin for replacing strings.
The npm package postcss-replace receives a total of 16,135 weekly downloads. As such, postcss-replace popularity was classified as popular.
We found that postcss-replace demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.