Tools for code moderation, transformation, or use for maintain JavaScript stuff related.
Use case • Usage • Special Thanks • Alternative • Contribution • License
- find and replace some code.
- remove some code (like
console.log
).
npx jasat <TRANSFORM> [OPTIONS]
yarn add -D jasat
yarn jasat <TRANSFORM> [OPTIONS]
Name | OPTIONS |
---|---|
import-source-replace |
"FROM" "TO" |
remove-console |
- |
Tools for code moderation, transformation, or use for maintain JavaScript stuff related.
USAGE
npx jasat <TRANSFORM> <...OPTIONS>
OPTIONS
--write, -w Allow to modified target file.
--cwd, -C Set current working directory (default: `process.cwd()`).
--help, -h Print help.
--list, -l Print list of TRANSFORM.
--version, -v Print version.
npx jasat import-source-replace "react" "preact" // dry-run
npx jasat import-source-replace "react" "preact" --write // write to system or target files
- equivalent-exchange - Transmute one JavaScript string into another by way of mutating its AST. Powered by babel and recast.
- jscodeshift - A JavaScript codemod toolkit.
- comby - A tool for structural code search and replace that supports ~every language.
- Use conventional-commits before make a pull request.
MIT