ember-memory-leaks-codemod
Version:
[](https://travis-ci.org/rajasegar/ember-memory-leaks-codemod) [ • 1.85 kB
Markdown
# ember-memory-leaks-codemod
[](https://travis-ci.org/rajasegar/ember-memory-leaks-codemod)
[](https://coveralls.io/github/rajasegar/ember-memory-leaks-codemod?branch=master)
[](https://npmjs.org/package/ember-memory-leaks-codemod "View this project on npm")
[](https://david-dm.org/rajasegar/ember-memory-leaks-codemod)
[](https://david-dm.org/rajasegar/ember-memory-leaks-codemod?type=dev)
A collection of codemod's for fixing memory leaks in Ember applications.
Please refer [here](https://github.com/ember-best-practices/memory-leak-examples) to know more about memory leaks in Ember applications.
## Usage
To run a specific codemod from this project, you would run the following:
```
npx ember-memory-leaks-codemod <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
# or
yarn global add ember-memory-leaks-codemod
ember-memory-leaks-codemod <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
```
## Transforms
### For fixing prototype reference leaks
```sh
npx ember-memory-leaks-codemod prototype-reference-leaks path/of/files/ or/some**/*glob.js
```
### For fixing callback leaks
```sh
npx ember-memory-leaks-codemod callback-leaks path/of/files/ or/some**/*glob.js
```
## Contributing
### Installation
* clone the repo
* change into the repo directory
* `yarn`
### Running tests
* `yarn test`
### Update Documentation
* `yarn update-docs`