🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@utftufutukgyftryidytftuv/rft

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@utftufutukgyftryidytftuv/rft

recursive file template

unpublished
latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

RFT - recursive file template

About

RFT replace variables like $FOO ${FOO} and {{FOO}}

RFT has a format rft source target

  • If source is file RFT place new in file in target path
  • If source ia dir RFT replace variables recursive in files and subdirs and place them in target dir relatively by their path from source dir

Options

  • -e FOO=bar and --env FOO=bar add variable
  • --env-file /.env add variables form file
  • --source /source set source instead 1-st argument
  • --target /target set source instead 2-nd argument

Examples

Cli file

initial paths

/source/file
/target/

file by path /source/file

Lorem $FOO ipsum ${FOO} dolor sit {{FOO}} amet

command

npx @utftufutukgyftryidytftuv/rft -e FOO=bar /source/file /target/new/path/file

result paths

/source/file
/target/new/path/file

file by path /target/new/path/file

Lorem bar ipsum bar dolor sit bar amet

Cli dir

initial paths

/source/file
/source/subdir/file
/target/

file by path /source/file

Lorem $FOO ipsum ${FOO} dolor sit {{FOO}} amet

file by path /source/subdir/file

Lorem $FOO ipsum ${FOO} dolor sit {{FOO}} amet

command

npx @utftufutukgyftryidytftuv/rft -e FOO=bar /source /target

result paths

/source/file
/source/subdir/file
/target/file
/target/subdir/file

file by path /target/file

Lorem bar ipsum bar dolor sit bar amet

file by path /target/subdir/file

Lorem bar ipsum bar dolor sit bar amet

FAQs

Package last updated on 15 Apr 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