Socket
Socket
Sign inDemoInstall

copyreplaste

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    copyreplaste

Add replace to your daily copy-paste jobs


Version published
Weekly downloads
7
increased by600%
Maintainers
1
Install size
77.4 kB
Created
Weekly downloads
 

Readme

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

Last updated on 06 Nov 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc