vinm-plugin-utils

2.0.0 • Public • Published

Vīnm Plugin Utils

📦 Installation

Install package:

# With npm
npm i vinm-plugin-utils

# OR With yarn
yarn add vinm-plugin-utils

Then, add into your vinm.yml file:

plugins:
    - vinm-plugin-utils

tasks:
    mytask:
        shell: >-
            vinm@utils ... # see usage below

🚀 Usage

This plugin give access to the following helpers:

# Return your IP address
vinm@utils --exec "myip" --vinmVar "[vinmVar]"

# Merge given --data into .json --file 
vinm@utils --exec "mergeJson" --file "[file]" --data "[data]"

# Merge given --data into .env --file 
vinm@utils --exec "mergeEnv" --file "[file]" --data "[data]"

# Print given --data in the terminal
vinm@utils --exec "printf" --data "[data]"

# Run given node.js script --file and call --func using --* parameters
vinm@utils --exec "runScript" --file "[file]" --func "[func]" --* "[*]"

Readme

Keywords

none

Package Sidebar

Install

npm i vinm-plugin-utils

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

4.02 kB

Total Files

3

Last publish

Collaborators

  • maoosi