{"bugs":{"url":"https://github.com/bevry/istextorbinary/issues"},"deno":"edition-deno/index.ts","dist":{"shasum":"e7b4fcb0a36e991a6f3d05ae6e75a6fb4499f0ea","tarball":"https://registry.npmjs.org/istextorbinary/-/istextorbinary-9.3.0.tgz","fileCount":20,"integrity":"sha512-m0uNUGKtym2vhUR+gYguRaC16N25SNSgxjs/61zMF6hnNc5hgziRnm8rrRn12PvT1Xph+hzXur0LB3pR8Oyfnw==","signatures":[{"sig":"MEUCIQCg6PlyuvrWOzYps6xskHhJF+4C/6vkBlhp+GqdvrpvYQIgRukK4ePZRejhDRuloH+TMhiuQQ5RdZspfCAbcAL4WTE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100635},"main":"index.cjs","name":"istextorbinary","type":"module","title":"Is Text or Binary?","types":"edition-types/index.d.ts","author":{"url":"http://bevry.me","name":"2012+ Bevry Pty Ltd","email":"us@bevry.me"},"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"cryptoURL":"https://bevry.me/crypto","paypalURL":"https://bevry.me/paypal","githubSlug":"bevry/istextorbinary","wishlistURL":"https://bevry.me/wishlist","flattrUsername":"balupton","githubUsername":"bevry","githubWorkflow":"bevry","npmPackageName":"istextorbinary","twitchUsername":"balupton","discordServerID":"1147436445783560193","patreonUsername":"bevry","githubRepository":"istextorbinary","liberapayUsername":"bevry","discordServerInvite":"nQuXddV7VP","buymeacoffeeUsername":"balupton","githubSponsorsUsername":"balupton","opencollectiveUsername":"bevry","thanksdevGithubUsername":"bevry"}},"module":"edition-browsers/index.js","browser":"edition-browsers/index.js","engines":{"node":">=4"},"exports":{"node":{"types":"./edition-types/index.d.ts","import":"./edition-es2017-esm/index.js","default":"./index.cjs","require":"./edition-es2022/index.js"},"browser":{"types":"./edition-types/index.d.ts","import":"./edition-browsers/index.js"}},"funding":"https://bevry.me/fund","gitHead":"f5fda296a05712050988d057afd827962e629f1d","license":"Artistic-2.0","scripts":{"test":"node ./test.cjs","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:test":"npm run our:verify && npm test","our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:setup":"npm run our:setup:install","our:deploy":"printf '%s\n' 'no need for this project'","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2017 && npm run our:compile:edition-es2017-esm && npm run our:compile:edition-es2022 && npm run our:compile:edition-es5 && npm run our:compile:edition-types","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:meta:docs":"npm run our:meta:docs:typedoc","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\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:compile:deno":"make-deno-edition --attempt","our:release:push":"git push origin && git push origin --tags","our:meta:projectz":"projectz compile","our:setup:install":"npm install","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:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:verify:prettier":"prettier --write .","our:verify:directory":"valid-directory","our:meta:contributors":"update-contributors","our:meta:docs:typedoc":"rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:compile:edition-es5":"tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && ( test ! -d edition-es5/source || ( mv edition-es5/source edition-temp && rm -rf edition-es5 && mv edition-temp edition-es5 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es5/package.json","our:release:check-dirty":"git diff --exit-code","our:compile:edition-types":"tsc --emitDeclarationOnly --declaration --declarationMap --declarationDir ./edition-types --project tsconfig.json && ( test ! -d edition-types/source || ( mv edition-types/source edition-temp && rm -rf edition-types && mv edition-temp edition-types ) )","our:compile:edition-es2017":"tsc --module commonjs --target ES2017 --outDir ./edition-es2017 --project tsconfig.json && ( test ! -d edition-es2017/source || ( mv edition-es2017/source edition-temp && rm -rf edition-es2017 && mv edition-temp edition-es2017 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2017/package.json","our:compile:edition-es2022":"tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:compile:edition-browsers":"tsc --module ESNext --target ES2022 --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-es2017-esm":"tsc --module ESNext --target ES2017 --outDir ./edition-es2017-esm --project tsconfig.json && ( test ! -d edition-es2017-esm/source || ( mv edition-es2017-esm/source edition-temp && rm -rf edition-es2017-esm && mv edition-temp edition-es2017-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2017-esm/package.json"},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"editions":[{"tags":["source","typescript","import"],"entry":"index.ts","engines":false,"directory":"source","description":"TypeScript source code with Import for modules"},{"tags":["compiled","javascript","import"],"entry":"index.js","engines":{"node":false,"browsers":"defaults"},"directory":"edition-browsers","description":"TypeScript compiled against ES2022 for web browsers with Import for modules"},{"tags":["compiled","javascript","es2022","require"],"entry":"index.js","engines":{"node":"14 || 16 || 18 || 20 || 21","browsers":false},"directory":"edition-es2022","description":"TypeScript compiled against ES2022 for Node.js 21 with Require for modules"},{"tags":["compiled","javascript","es2017","require"],"entry":"index.js","engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false},"directory":"edition-es2017","description":"TypeScript compiled against ES2017 for Node.js 12 with Require for modules"},{"tags":["compiled","javascript","es5","require"],"entry":"index.js","engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false},"directory":"edition-es5","description":"TypeScript compiled against ES5 for Node.js 4 with Require for modules"},{"tags":["compiled","javascript","es2017","import"],"entry":"index.js","engines":{"node":"12 || 14 || 16 || 18 || 20 || 21","browsers":false},"directory":"edition-es2017-esm","description":"TypeScript compiled against ES2017 for Node.js 12 with Import for modules"},{"tags":["compiled","types","import"],"entry":"index.d.ts","engines":false,"directory":"edition-types","description":"TypeScript compiled Types with Import for modules"},{"tags":["typescript","import","deno"],"entry":"index.ts","engines":{"deno":true,"browsers":true},"directory":"edition-deno","description":"TypeScript source code made to be compatible with Deno"}],"homepage":"https://github.com/bevry/istextorbinary","keywords":["bin","binary","browser","check","deno","deno-edition","deno-entry","denoland","detect","encoding","es2017","es2022","es5","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"],"prettier":{"semi":false,"endOfLine":"lf","singleQuote":true,"trailingComma":"es5"},"repository":{"url":"git+https://github.com/bevry/istextorbinary.git","type":"git"},"_npmVersion":"10.2.3","description":"Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.","directories":{},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"_nodeVersion":"20.10.0","contributors":[{"url":"https://github.com/balupton","name":"Benjamin Lupton","email":"b@lupton.cc"},{"url":"https://github.com/sibnerian","name":"Ian Sibner","email":"sibnerian@gmail.com"},{"url":"https://github.com/sainthkh","name":"Kukhyeon Heo","email":"sainthkh@gmail.com"},{"url":"https://github.com/mikeumus","name":"Michael Mooring","email":"mike@mdm.cc"},{"url":"https://github.com/robloach","name":"Rob Loach","email":"robloach@gmail.com"},{"url":"https://github.com/AlbinoDrought","name":"Sean","email":"sean@albinodrought.com"},{"url":"https://github.com/shinnn","name":"shinnn","email":"snnskwtnb@gmail.com"}],"dependencies":{"editions":"^6.19.0","textextensions":"^6.9.0","binaryextensions":"^6.9.0"},"eslintConfig":{"extends":["bevry"]},"_hasShrinkwrap":false,"devDependencies":{"kava":"^7.5.0","eslint":"^8.55.0","typedoc":"^0.25.4","prettier":"^3.1.0","projectz":"^3.4.0","typescript":"5.3.2","@types/node":"^20.10.3","filedirname":"^3.1.0","valid-module":"^2.6.0","assert-helpers":"^11.9.0","valid-directory":"^4.6.0","make-deno-edition":"^2.0.1","eslint-config-bevry":"^5.2.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.0.1","@typescript-eslint/parser":"^6.13.2","@bevry/update-contributors":"^1.23.0","@typescript-eslint/eslint-plugin":"^6.13.2"},"_npmOperationalInternal":{"tmp":"tmp/istextorbinary_9.3.0_1701797212878_0.678419425828928","host":"s3://npm-registry-packages"},"_id":"istextorbinary@9.3.0","version":"9.3.0"}