shell-quote/000755 001751 000177 0000000000 14526766570015061 5ustar00runner000000 000000 1452676657014526766570shell-quote/LICENSE000644 001751 000177 0000002165 14526766570016072 0ustar00runner000000 000000 1452676657014526766570 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE shell-quote/README.md000644 001751 000177 0000004342 14526766570016326 0ustar00runner000000 000000 1452700075514526766570# Installation > `npm install --save @types/shell-quote` # Summary This package contains type definitions for shell-quote (https://github.com/substack/node-shell-quote). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shell-quote. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shell-quote/index.d.ts) ````ts export type ControlOperator = "||" | "&&" | ";;" | "|&" | "<(" | ">>" | ">&" | "&" | ";" | "(" | ")" | "|" | "<" | ">"; export type ParseEntry = | string | { op: ControlOperator } | { op: "glob"; pattern: string } | { comment: string }; export interface ParseOptions { /** * Custom escape character, default value is `\` */ escape?: string | undefined; } /** * Return a quoted string for the array `args` suitable for using in shell commands. */ export function quote(args: readonly string[]): string; /** * Return an array of arguments from the quoted string `cmd`. * * Interpolate embedded bash-style `$VARNAME` and `${VARNAME}` variables with the `env` object which like bash will replace undefined variables with `""`. */ export function parse( cmd: string, env?: { readonly [key: string]: string | undefined }, opts?: ParseOptions, ): ParseEntry[]; /** * Return an array of arguments from the quoted string `cmd`. * * Interpolate embedded bash-style `$VARNAME` and `${VARNAME}` variables * with the `env` object which like bash will replace undefined variables with `""`. * * @param env * A function to perform lookups. * When env(key) returns a string, its result will be output just like env[key] would. * When env(key) returns an object, it will be inserted into the result array like the operator objects. */ export function parse( cmd: string, env: (key: string) => T | undefined, opts?: ParseOptions, ): Array; ```` ### Additional Details * Last updated: Mon, 20 Nov 2023 23:36:24 GMT * Dependencies: none # Credits These definitions were written by [Jason Cheatham](https://github.com/jason0x43), [Cameron Diver](https://github.com/CameronDiver), and [Opportunity Liu](https://github.com/OpportunityLiu). shell-quote/index.d.ts000644 001751 000177 0000003016 14526766570016762 0ustar00runner000000 000000 1452676657014526766570export type ControlOperator = "||" | "&&" | ";;" | "|&" | "<(" | ">>" | ">&" | "&" | ";" | "(" | ")" | "|" | "<" | ">"; export type ParseEntry = | string | { op: ControlOperator } | { op: "glob"; pattern: string } | { comment: string }; export interface ParseOptions { /** * Custom escape character, default value is `\` */ escape?: string | undefined; } /** * Return a quoted string for the array `args` suitable for using in shell commands. */ export function quote(args: readonly string[]): string; /** * Return an array of arguments from the quoted string `cmd`. * * Interpolate embedded bash-style `$VARNAME` and `${VARNAME}` variables with the `env` object which like bash will replace undefined variables with `""`. */ export function parse( cmd: string, env?: { readonly [key: string]: string | undefined }, opts?: ParseOptions, ): ParseEntry[]; /** * Return an array of arguments from the quoted string `cmd`. * * Interpolate embedded bash-style `$VARNAME` and `${VARNAME}` variables * with the `env` object which like bash will replace undefined variables with `""`. * * @param env * A function to perform lookups. * When env(key) returns a string, its result will be output just like env[key] would. * When env(key) returns an object, it will be inserted into the result array like the operator objects. */ export function parse( cmd: string, env: (key: string) => T | undefined, opts?: ParseOptions, ): Array; shell-quote/package.json000644 001751 000177 0000002146 14526766570017335 0ustar00runner000000 000000 1452700075514526766570{ "name": "@types/shell-quote", "version": "1.7.5", "description": "TypeScript definitions for shell-quote", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shell-quote", "license": "MIT", "contributors": [ { "name": "Jason Cheatham", "githubUsername": "jason0x43", "url": "https://github.com/jason0x43" }, { "name": "Cameron Diver", "githubUsername": "CameronDiver", "url": "https://github.com/CameronDiver" }, { "name": "Opportunity Liu", "githubUsername": "OpportunityLiu", "url": "https://github.com/OpportunityLiu" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/shell-quote" }, "scripts": {}, "dependencies": {}, "typesPublisherContentHash": "0dd0f58bc4c36de28fd143a7f1de1361c95fb41f03196b4e52e196b8ce9cacd4", "typeScriptVersion": "4.5" }