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

direnvcopy

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

direnvcopy

A utility to copy a directory to another place, subsituting ENVVARS in files marked as template

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

direnvcopy

A utility to copy a folder to another folder, substituting ENVVARS inside files with .template extensions. The .template extension is then removed in the final file. Files without the .template extension will just be copied without any parsing.

Installation

Just install the tool on your computer:

npm install -g direnvcopy

Usage

Just run the program with your desired parameters:

direnvcopy infolder destination [templatevars]

  • infolder Source folder
  • destination Destination Folder
  • templatevars Substitute only these vars (all if not provided)

Example

direnvcopy /home/john/folder /dist/folder

  • Copies from /home/john/folder to /dist/folder, substituting ALL envvars found on files that end with .template

direnvcopy /home/john/folder /dist/folder '${INSTALL_PATH}'

  • Copies from /home/john/folder to /dist/folder, substituting only the envvar ${INSTALL_PATH} on files that end with ``.template```. The rest will be left untouched.

Contribution guidelines

Contributions welcome.

License

Creative Commons CC-BY-SA 3.0

Keywords

FAQs

Package last updated on 18 Aug 2020

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