{ "title": "Is Text or Binary?", "name": "istextorbinary", "version": "5.15.0", "description": "Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.", "homepage": "https://github.com/bevry/istextorbinary", "license": "MIT", "keywords": [ "bin", "binary", "browser", "check", "detect", "encoding", "es2019", "ext", "extension", "extensions", "file", "is", "is binary", "is binary file", "is text", "is text file", "is text or binary", "is text or binary file", "isbinary", "isbinaryfile", "istext", "istextfile", "module", "node", "path", "text", "typed", "types", "typescript" ], "badges": { "list": [ "githubworkflow", "npmversion", "npmdownloads", "daviddm", "daviddmdev", "---", "githubsponsors", "patreon", "flattr", "liberapay", "buymeacoffee", "opencollective", "crypto", "paypal", "wishlist" ], "config": { "githubWorkflow": "bevry", "githubSponsorsUsername": "balupton", "buymeacoffeeUsername": "balupton", "cryptoURL": "https://bevry.me/crypto", "flattrUsername": "balupton", "liberapayUsername": "bevry", "opencollectiveUsername": "bevry", "patreonUsername": "bevry", "paypalURL": "https://bevry.me/paypal", "wishlistURL": "https://bevry.me/wishlist", "githubUsername": "bevry", "githubRepository": "istextorbinary", "githubSlug": "bevry/istextorbinary", "npmPackageName": "istextorbinary" } }, "funding": "https://bevry.me/fund", "author": "2012+ Bevry Pty Ltd (http://bevry.me), 2011 Benjamin Lupton (https://balupton.com)", "maintainers": [ "Benjamin Lupton (https://github.com/balupton)", "Michael Mooring (https://github.com/mikeumus)", "Rob Loach (https://github.com/robloach)" ], "contributors": [ "Benjamin Lupton (https://github.com/balupton)", "Ian Sibner (https://github.com/sibnerian)", "Michael Mooring (https://github.com/mikeumus)", "Rob Loach (https://github.com/robloach)", "Sean (https://github.com/AlbinoDrought)", "shinnn (https://github.com/shinnn)" ], "bugs": { "url": "https://github.com/bevry/istextorbinary/issues" }, "repository": { "type": "git", "url": "https://github.com/bevry/istextorbinary.git" }, "engines": { "node": ">=10" }, "editions": [ { "description": "TypeScript source code with Import for modules", "directory": "source", "entry": "index.ts", "tags": [ "source", "typescript", "import" ], "engines": false }, { "description": "TypeScript compiled against ES2020 for web browsers with Import for modules", "directory": "edition-browsers", "entry": "index.js", "tags": [ "compiled", "javascript", "import" ], "engines": { "node": false, "browsers": "defaults" } }, { "description": "TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules", "directory": "edition-es2019", "entry": "index.js", "tags": [ "compiled", "javascript", "es2019", "require" ], "engines": { "node": "10 || 12 || 14 || 16", "browsers": false } }, { "description": "TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules", "directory": "edition-es2019-esm", "entry": "index.js", "tags": [ "compiled", "javascript", "es2019", "import" ], "engines": { "node": "12 || 14 || 16", "browsers": false } } ], "types": "./compiled-types/", "type": "module", "main": "edition-es2019/index.js", "exports": { "node": { "import": "./edition-es2019-esm/index.js", "require": "./edition-es2019/index.js" }, "browser": { "import": "./edition-browsers/index.js" } }, "browser": "edition-browsers/index.js", "module": "edition-browsers/index.js", "dependencies": { "binaryextensions": "^4.18.0", "textextensions": "^5.13.0" }, "devDependencies": { "@bevry/update-contributors": "^1.19.0", "@typescript-eslint/eslint-plugin": "^4.28.5", "@typescript-eslint/parser": "^4.28.5", "assert-helpers": "^8.4.0", "eslint": "^7.31.0", "eslint-config-bevry": "^3.27.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^3.4.0", "filedirname": "^2.7.0", "kava": "^5.14.0", "make-deno-edition": "^1.3.0", "prettier": "^2.3.2", "projectz": "^2.21.0", "surge": "^0.23.0", "typedoc": "^0.21.4", "typescript": "4.3.5", "valid-directory": "^3.7.0", "valid-module": "^1.16.0" }, "scripts": { "our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next", "our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types", "our:compile:deno": "make-deno-edition --attempt", "our:compile:edition-browsers": "tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )", "our:compile:edition-es2019": "tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json", "our:compile:edition-es2019-esm": "tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json", "our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )", "our:deploy": "echo no need for this project", "our:meta": "npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz", "our:meta:contributors": "update-contributors", "our:meta:docs": "npm run our:meta:docs:typedoc", "our:meta:docs:typedoc": "rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source", "our:meta:projectz": "projectz compile", "our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push", "our:release:check-changelog": "cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)", "our:release:check-dirty": "git diff --exit-code", "our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta", "our:release:push": "git push origin && git push origin --tags", "our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"", "our:setup": "npm run our:setup:install", "our:setup:install": "npm install", "our:test": "npm run our:verify && npm test", "our:verify": "npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier", "our:verify:directory": "valid-directory", "our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source", "our:verify:module": "valid-module", "our:verify:prettier": "prettier --write .", "test": "node ./edition-es2019/test.js" }, "eslintConfig": { "extends": [ "bevry" ] }, "prettier": { "semi": false, "singleQuote": true } }