New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-search-and-replace

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-search-and-replace - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

package.json
{
"name": "babel-plugin-search-and-replace",
"version": "1.0.0",
"version": "1.0.1",
"main": "lib/index.js",

@@ -13,5 +13,5 @@ "repository": "https://github.com/the-smaug/babel-plugin-search-and-replace",

"devDependencies": {
"@babel/core": "7.1.0",
"jest": "23.6.0"
"@babel/core": "7.6.4",
"jest": "24.9.0"
}
}

@@ -7,5 +7,4 @@ # babel-plugin-search-and-replace

## How to use it ?
## How to use it ?
- `yarn add babel-plugin-search-and-replace -DE` or `npm i babel-plugin-search-and-replace --save-dev --exact`

@@ -17,14 +16,19 @@

{
"plugins": [["search-and-replace", {
rules: [
{
"search": "searchedString",
"replace": "replacement"
},
{
"search": /myRegex/,
"replace": "replacement"
}
"plugins": [
[
"search-and-replace",
{
"rules": [
{
"search": "searchedString",
"replace": "replacement"
},
{
"search": /myRegex/,
"replace": "replacement"
}
]
}]]
}
]
]
}

@@ -34,14 +38,20 @@ ```

For Babel < 7 use babel-plugin-search-and-replace@0.3.0
```json
{
"plugins": [["search-and-replace", [
"plugins": [
[
"search-and-replace",
[
{
"search": "searchedString",
"replace": "replacement"
"search": "searchedString",
"replace": "replacement"
},
{
"search": /myRegex/,
"replace": "replacement"
"search": /myRegex/,
"replace": "replacement"
}
]]]
]
]
]
}

@@ -54,2 +64,2 @@ ```

- Really that's all ;)
- Really that's all ;)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc