string-argv
Advanced tools
Comparing version 0.3.1 to 0.3.2
# Changelog | ||
## v0.3.1 (2022-09-16) | ||
- Now provides both esm and cjs builds | ||
- Update TypeScript to 4.8.3 | ||
## v0.3.0 (2019-04-16) | ||
@@ -4,0 +8,0 @@ **Dev Experience Changes** |
@@ -1,2 +0,2 @@ | ||
export { parseArgsStringToArgv as default, parseArgsStringToArgv }; | ||
declare function parseArgsStringToArgv(value: string, env?: string, file?: string): string[]; | ||
export { parseArgsStringToArgv }; | ||
export default function parseArgsStringToArgv(value: string, env?: string, file?: string): string[]; |
@@ -1,4 +0,3 @@ | ||
"use strict"; | ||
exports.__esModule = true; | ||
function parseArgsStringToArgv(value, env, file) { | ||
export { parseArgsStringToArgv }; | ||
export default function parseArgsStringToArgv(value, env, file) { | ||
// ([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*) Matches nested quotes until the first space outside of quotes | ||
@@ -29,4 +28,2 @@ // [^\s'"]+ or Match if not a space ' or " | ||
} | ||
exports["default"] = parseArgsStringToArgv; | ||
exports.parseArgsStringToArgv = parseArgsStringToArgv; | ||
// Accepts any number of arguments, and returns the first one that is a string | ||
@@ -33,0 +30,0 @@ // (even an empty string) |
{ | ||
"name": "string-argv", | ||
"description": "string-argv parses a string into an argument array to mimic process.argv. This is useful when testing Command Line Utilities that you want to pass arguments to.", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"contributors": [ | ||
@@ -20,7 +20,16 @@ { | ||
"scripts": { | ||
"build": "tsc -p .", | ||
"build": "tsc -p . & tsc -p tsconfig.commonjs.json", | ||
"prepublishOnly": "npm test", | ||
"test": "npm run build & jasmine --config=test/config.json" | ||
}, | ||
"main": "index", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./index.js", | ||
"require": "./commonjs/index.js" | ||
} | ||
}, | ||
"main": "./commonjs/index.js", | ||
"module": "./index.js", | ||
"types": "index.d.ts", | ||
@@ -39,7 +48,6 @@ "engines": { | ||
"readmeFilename": "README.md", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"jasmine": "^2.4.1", | ||
"typescript": "^3.4.3" | ||
"jasmine": "^4.4.0", | ||
"typescript": "^5.0.4" | ||
} | ||
} |
@@ -0,0 +0,0 @@ |
7796
8
88
Yes