Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/OliverJAsh/lodash-to-lodash-amd-codemods
https://github.com/OliverJAsh/lodash-to-lodash-amd-codemods
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/OliverJAsh/lodash-to-lodash-amd-codemods
- Owner: OliverJAsh
- Created: 2015-11-05T17:21:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-07T18:49:04.000Z (about 9 years ago)
- Last Synced: 2024-10-12T22:56:33.043Z (2 months ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-codemods - lodash-to-lodash-amd-codemods - Lodash to [lodash-amd](https://github.com/lodash/lodash-amd) codemods. (Libraries / Lodash)
- awesome-jscodeshift - lodash-to-lodash-amd-codemods - lodash to [lodash-amd](https://github.com/lodash/lodash-amd) codemods (Table of Contents / Codemods)
README
# lodash to [lodash-amd](https://github.com/lodash/lodash-amd) codemods
```
npm i
# Update _.forEach => forEach (in AMD module)
./node_modules/.bin/jscodeshift -t codemods/methods.js tests/methods.js
# Update _.chain().each() => chain().and(each) (in AMD module)
./node_modules/.bin/jscodeshift -t codemods/chain.js tests/chain.js
```