1{ 2 "name": "yargs", 3 "version": "17.3.1", 4 "description": "yargs the modern, pirate-themed, successor to optimist.", 5 "main": "./index.cjs", 6 "exports": { 7 "./package.json": "./package.json", 8 ".": [ 9 { 10 "import": "./index.mjs", 11 "require": "./index.cjs" 12 }, 13 "./index.cjs" 14 ], 15 "./helpers": { 16 "import": "./helpers/helpers.mjs", 17 "require": "./helpers/index.js" 18 }, 19 "./yargs": [ 20 { 21 "require": "./yargs" 22 }, 23 "./yargs" 24 ] 25 }, 26 "type": "module", 27 "module": "./index.mjs", 28 "contributors": [ 29 { 30 "name": "Yargs Contributors", 31 "url": "https://github.com/yargs/yargs/graphs/contributors" 32 } 33 ], 34 "files": [ 35 "browser.mjs", 36 "index.cjs", 37 "helpers/*.js", 38 "helpers/*", 39 "index.mjs", 40 "yargs", 41 "build", 42 "locales", 43 "LICENSE", 44 "lib/platform-shims/*.mjs", 45 "!*.d.ts", 46 "!**/*.d.ts" 47 ], 48 "dependencies": { 49 "cliui": "^7.0.2", 50 "escalade": "^3.1.1", 51 "get-caller-file": "^2.0.5", 52 "require-directory": "^2.1.1", 53 "string-width": "^4.2.3", 54 "y18n": "^5.0.5", 55 "yargs-parser": "^21.0.0" 56 }, 57 "devDependencies": { 58 "@types/chai": "^4.2.11", 59 "@types/mocha": "^9.0.0", 60 "@types/node": "^16.11.4", 61 "c8": "^7.7.0", 62 "chai": "^4.2.0", 63 "chalk": "^4.0.0", 64 "coveralls": "^3.0.9", 65 "cpr": "^3.0.1", 66 "cross-env": "^7.0.2", 67 "cross-spawn": "^7.0.0", 68 "eslint": "^7.23.0", 69 "gts": "^3.0.0", 70 "hashish": "0.0.4", 71 "mocha": "^9.0.0", 72 "rimraf": "^3.0.2", 73 "rollup": "^2.23.0", 74 "rollup-plugin-cleanup": "^3.1.1", 75 "rollup-plugin-terser": "^7.0.2", 76 "rollup-plugin-ts": "^2.0.4", 77 "typescript": "^4.0.2", 78 "which": "^2.0.0", 79 "yargs-test-extends": "^1.0.1" 80 }, 81 "scripts": { 82 "fix": "gts fix && npm run fix:js", 83 "fix:js": "eslint . --ext cjs --ext mjs --ext js --fix", 84 "posttest": "npm run check", 85 "test": "c8 mocha --enable-source-maps ./test/*.cjs --require ./test/before.cjs --timeout=12000 --check-leaks", 86 "test:esm": "c8 mocha --enable-source-maps ./test/esm/*.mjs --check-leaks", 87 "coverage": "c8 report --check-coverage", 88 "prepare": "npm run compile", 89 "pretest": "npm run compile -- -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs", 90 "compile": "rimraf build && tsc", 91 "postcompile": "npm run build:cjs", 92 "build:cjs": "rollup -c rollup.config.cjs", 93 "postbuild:cjs": "rimraf ./build/index.cjs.d.ts", 94 "check": "gts lint && npm run check:js", 95 "check:js": "eslint . --ext cjs --ext mjs --ext js", 96 "clean": "gts clean" 97 }, 98 "repository": { 99 "type": "git", 100 "url": "https://github.com/yargs/yargs.git" 101 }, 102 "homepage": "https://yargs.js.org/", 103 "keywords": [ 104 "argument", 105 "args", 106 "option", 107 "parser", 108 "parsing", 109 "cli", 110 "command" 111 ], 112 "license": "MIT", 113 "engines": { 114 "node": ">=12" 115 } 116} 117