Skip to content

Repository files navigation

shell-expand

Expand shell-style variable substitution

Usage

Currently it works for flat input (1-depth) only and returns the result split by a given IFS string (defaults to " \t\n").

constvars={TEST: '$TEST $TEST'};console.log(shellExpand('${TEST}',vars,{IFS: ' '}));// ["$TEST", "$TEST"]

About

Expand shell-style variable substitution

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages