cp-as-template

0.2.2 • Public • Published

Build Status Coverage Status

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
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    1
  • 0.2.1
    1

Package Sidebar

Install

npm i cp-as-template

Weekly Downloads

2

Version

0.2.2

License

MIT

Unpacked Size

8.08 kB

Total Files

7

Last publish

Collaborators

  • wmzy