cp-as-template
v0.2.2
Published
Copy code file as a template.
Downloads
2
Readme
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
class User{}
function createUser() {
const user = new User();
return user;
}
$ cp-as-template user.js post.js
$ cat post.js
// user.js
class Post{}
function createPost() {
const post = new 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