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

copyreplaste

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copyreplaste

Add replace to your daily copy-paste jobs

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

copyreplaste

A cli tool thay makes repeatative copy-paste tasks easier.

Also exists as VS Code extension (github project).

Installation

Ensure you have node.js >= v10.

npm i -g copyreplaste

How it works

It copies a given directory, its subdirectories and files and performs replacement across all contents and file / directory names.

copyreplaste --from test/test-name --to test --replace names,name --with bunnies,bunny --force

The replacements are massive. All the values are transformed to the

  • dasherized case
  • camelized case
  • classified case
  • underscored case
  • capitalized case

and then replacing the matching values.

Arguments

copyreplaste -h
Usage: copyreplaste [options]

Options:
  -V, --version        output the version number
  --from <from>        The directory to copy
  --to <to>            The parent directory that will contain the copied one
  --replace <replace>  The comma-separated list of words to replace
  --with <with>        One-by one comma-separated list of replacements for "replace"
  --force              Overwrite existing target folder (if present)
  -h, --help           output usage information

License

MIT

FAQs

Package last updated on 22 Jul 2019

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