cp-as-template
Copy source code file as a template. If you often new file by copy & search & replace,try it.
Install
npm i -g cp-as-template
or test
npx cp-as-template --help
Usage
// user.js {} { const user = ; return user;}
$ cp-as-template user.js post.js$ cat post.js
// user.js {} { const post = ; return post;}
More
$ cp-as-template --help Usage: cp-as-template [options] <source> <dest> Options: -V, --version output the version number -v, --verbose explain what is being done -h, --help output usage information