UNPKG

shellwords

Version:

Manipulate strings according to the word parsing rules of the UNIX Bourne shell.

72 lines 2.35 kB
{ "author": "Jimmy Cuadra <jimmy@jimmycuadra.com>", "name": "shellwords", "description": "Manipulate strings according to the word parsing rules of the UNIX Bourne shell.", "version": "1.1.1", "homepage": "https://github.com/jimmycuadra/shellwords", "repository": { "type": "git", "url": "git://github.com/jimmycuadra/shellwords.git" }, "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "browser": "dist/browser/index.js", "types": "dist/shellwords.d.ts", "exports": { ".": { "types": "./dist/shellwords.d.ts", "require": "./dist/cjs/index.js", "import": "./dist/esm/index.js", "browser": "./dist/browser/index.js" }, "./package.json": "./package.json" }, "files": [ "dist", "src" ], "keywords": [ "shellwords", "shell", "unix", "bourne", "bash", "command line", "ruby", "stdlib" ], "license": "MIT", "devDependencies": { "@babel/core": "^7.27.7", "@babel/preset-env": "^7.27.2", "@babel/preset-typescript": "^7.27.1", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.30.0", "@types/jest": "^30.0.0", "@typescript-eslint/eslint-plugin": "^8.35.0", "@typescript-eslint/parser": "^8.35.0", "babel-jest": "^30.0.2", "esbuild": "^0.25.5", "eslint": "^9.30.0", "eslint-config-prettier": "^10.1.5", "husky": "^9.1.7", "jest": "^30.0.3", "lint-staged": "^16.1.2", "prettier": "^3.6.2", "serve": "^14.2.4", "typescript": "^5.8.3" }, "scripts": { "browser": "serve -l 3000", "build": "rm -rf dist && pnpm run build:browser && pnpm run build:cjs && pnpm run build:esm && pnpm run tsc:build", "build:browser": "esbuild --bundle src/shellwords.ts --outfile=dist/browser/index.js --sourcemap --sources-content=false --format=iife --global-name=shellwords", "build:cjs": "esbuild --bundle src/shellwords.ts --outfile=dist/cjs/index.js --sourcemap --sources-content=false --format=cjs", "build:esm": "esbuild --bundle src/shellwords.ts --outfile=dist/esm/index.js --sourcemap --sources-content=false --format=esm", "eslint": "eslint --max-warnings 0 src", "prebrowser": "pnpm run build", "prepublish": "pnpm run build", "prettier": "prettier --write src", "test": "jest", "tsc:build": "tsc -p tsconfig.build.json" } }