https://github.com/obweger/modster-plugin-hello-world
A very simple plugin for Modster. Take your Modster plugin development from here!
https://github.com/obweger/modster-plugin-hello-world
codemod codemods modster modster-plugin
Last synced: 2 months ago
JSON representation
A very simple plugin for Modster. Take your Modster plugin development from here!
- Host: GitHub
- URL: https://github.com/obweger/modster-plugin-hello-world
- Owner: obweger
- License: mit
- Created: 2020-05-04T12:44:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T11:43:36.000Z (over 2 years ago)
- Last Synced: 2025-03-11T16:33:46.557Z (over 1 year ago)
- Topics: codemod, codemods, modster, modster-plugin
- Language: JavaScript
- Homepage:
- Size: 192 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# modster-plugin-hello-world
A very simple plugin for [Modster](https://github.com/obweger/modster). Take your Modster plugin development from here! ✌️

## Installation
```shell
npm install modster-plugin-hello-world
```
In your `.codemods.js`:
```diff
module.exports = {
// ...
plugins: [
// ...
+ 'hello-world'
]
}
```
## Codemods
### Rename variables
Renames all variables of name `--from` to `--to`.
With `--from=foo` and `--to=bar`:
```diff
- const foo = 'bar';
+ const bar = 'bar';
```
### Change import source
Changes all import statement with source `--from` to `--to`.
With `--from=foo` and `--to=bar`:
```diff
- import bar from 'foo';
+ import bar from 'bar';
```