Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cp-as-template

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cp-as-template

Copy code file as a template.

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 15 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc