UNPKG

chef-core

Version:

static file server chef-js core functionalities

8 lines (7 loc) 267 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getParam = getParam; function getParam(find, fallback) { const matches = process.argv.join(" ").match(new RegExp(`--${find} ([^ ]+)`)); return matches ? matches[1] : fallback; }