1 | {
|
2 | "title": "Is Text or Binary?",
|
3 | "name": "istextorbinary",
|
4 | "version": "9.5.0",
|
5 | "license": "Artistic-2.0",
|
6 | "description": "Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.",
|
7 | "homepage": "https://github.com/bevry/istextorbinary",
|
8 | "funding": "https://bevry.me/fund",
|
9 | "repository": {
|
10 | "type": "git",
|
11 | "url": "git+https://github.com/bevry/istextorbinary.git"
|
12 | },
|
13 | "bugs": {
|
14 | "url": "https://github.com/bevry/istextorbinary/issues"
|
15 | },
|
16 | "keywords": [
|
17 | "bin",
|
18 | "binary",
|
19 | "browser",
|
20 | "check",
|
21 | "deno",
|
22 | "deno-edition",
|
23 | "deno-entry",
|
24 | "denoland",
|
25 | "detect",
|
26 | "encoding",
|
27 | "es2017",
|
28 | "es2022",
|
29 | "es5",
|
30 | "ext",
|
31 | "extension",
|
32 | "extensions",
|
33 | "file",
|
34 | "is",
|
35 | "is binary",
|
36 | "is binary file",
|
37 | "is text",
|
38 | "is text file",
|
39 | "is text or binary",
|
40 | "is text or binary file",
|
41 | "isbinary",
|
42 | "isbinaryfile",
|
43 | "istext",
|
44 | "istextfile",
|
45 | "module",
|
46 | "node",
|
47 | "path",
|
48 | "text",
|
49 | "typed",
|
50 | "types",
|
51 | "typescript"
|
52 | ],
|
53 | "badges": {
|
54 | "list": [
|
55 | "githubworkflow",
|
56 | "npmversion",
|
57 | "npmdownloads",
|
58 | "---",
|
59 | "githubsponsors",
|
60 | "thanksdev",
|
61 | "patreon",
|
62 | "liberapay",
|
63 | "buymeacoffee",
|
64 | "opencollective",
|
65 | "crypto",
|
66 | "paypal",
|
67 | "---",
|
68 | "discord",
|
69 | "twitch"
|
70 | ],
|
71 | "config": {
|
72 | "githubWorkflow": "bevry",
|
73 | "githubSponsorsUsername": "balupton",
|
74 | "thanksdevGithubUsername": "bevry",
|
75 | "buymeacoffeeUsername": "balupton",
|
76 | "cryptoURL": "https://bevry.me/crypto",
|
77 | "flattrUsername": "balupton",
|
78 | "liberapayUsername": "bevry",
|
79 | "opencollectiveUsername": "bevry",
|
80 | "patreonUsername": "bevry",
|
81 | "paypalURL": "https://bevry.me/paypal",
|
82 | "wishlistURL": "https://bevry.me/wishlist",
|
83 | "discordServerID": "1147436445783560193",
|
84 | "discordServerInvite": "nQuXddV7VP",
|
85 | "twitchUsername": "balupton",
|
86 | "githubUsername": "bevry",
|
87 | "githubRepository": "istextorbinary",
|
88 | "githubSlug": "bevry/istextorbinary",
|
89 | "npmPackageName": "istextorbinary"
|
90 | }
|
91 | },
|
92 | "author": "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton)",
|
93 | "authors": [
|
94 | "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."
|
95 | ],
|
96 | "maintainers": [
|
97 | "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom.",
|
98 | "Michael Duane Mooring <mike@mdm.cc> (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus): We are the space generation; and if you don't know, https://www.spaceforce.mil https://www.virgingalactic.com https://www.spacex.com now you know.",
|
99 | "Rob Loach <robloach@gmail.com> (https://github.com/robloach)"
|
100 | ],
|
101 | "contributors": [
|
102 | "Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton)",
|
103 | "Ian Sibner <sibnerian@gmail.com> (https://sibnerian.com) (https://github.com/sibnerian)",
|
104 | "Kukhyeon Heo <sainthkh@gmail.com> (https://github.com/sainthkh)",
|
105 | "Michael Duane Mooring <mike@mdm.cc> (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)",
|
106 | "Rob Loach <robloach@gmail.com> (https://github.com/robloach)",
|
107 | "Sean <sean@albinodrought.com> (https://albinodrought.com) (https://github.com/AlbinoDrought)",
|
108 | "shinnn <snnskwtnb@gmail.com> (https://qiita.com/shinnn) (https://github.com/shinnn)"
|
109 | ],
|
110 | "sponsors": [
|
111 | "Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher",
|
112 | "Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.",
|
113 | "Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.",
|
114 | "Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)",
|
115 | "Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)",
|
116 | "Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.",
|
117 | "Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"
|
118 | ],
|
119 | "donors": [
|
120 | "Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)",
|
121 | "Armen Mkrtchian (https://mogoni.dev) (https://github.com/Armenm)",
|
122 | "Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)",
|
123 | "Chad (https://opencollective.com/chad8)",
|
124 | "Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov)",
|
125 | "dr.dimitru (https://veliovgroup.com) (https://github.com/dr-dimitru)",
|
126 | "Elliott Ditman (https://elliottditman.com) (https://github.com/elliottditman)",
|
127 | "entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)",
|
128 | "GitHub (https://github.com/about) (https://github.com/github)",
|
129 | "Hunter Beast (https://cryptoquick.com) (https://github.com/cryptoquick)",
|
130 | "Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)",
|
131 | "Michael Duane Mooring <mike@mdm.cc> (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)",
|
132 | "Michael Harry Scepaniak <mhs1.sys@gmail.com> (https://michaelscepaniak.com) (https://github.com/hispanic)",
|
133 | "Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)",
|
134 | "Mr. Henry <hello@mrhenry.be> (https://mrhenry.be) (https://github.com/mrhenry)",
|
135 | "Nermal <nermalcat69@skiff.com> (https://arjunaditya.vercel.app) (https://github.com/nermalcat69)",
|
136 | "Pleo (https://pleo.io) (https://github.com/pleo-io)",
|
137 | "Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)",
|
138 | "Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)",
|
139 | "Robert de Forest <guitar.robot@gmail.com> (https://github.com/rdeforest)",
|
140 | "Sentry (https://sentry.io) (https://github.com/getsentry)",
|
141 | "ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)",
|
142 | "Skunk Team (https://skunk.team) (https://github.com/skunkteam)",
|
143 | "Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)",
|
144 | "WriterJohnBuck (https://github.com/WriterJohnBuck)"
|
145 | ],
|
146 | "engines": {
|
147 | "node": ">=4"
|
148 | },
|
149 | "editions": [
|
150 | {
|
151 | "description": "TypeScript source code with Import for modules",
|
152 | "directory": "source",
|
153 | "entry": "index.ts",
|
154 | "tags": [
|
155 | "source",
|
156 | "typescript",
|
157 | "import"
|
158 | ],
|
159 | "engines": false
|
160 | },
|
161 | {
|
162 | "description": "TypeScript compiled against ES2022 for web browsers with Import for modules",
|
163 | "directory": "edition-browsers",
|
164 | "entry": "index.js",
|
165 | "tags": [
|
166 | "compiled",
|
167 | "javascript",
|
168 | "import"
|
169 | ],
|
170 | "engines": {
|
171 | "node": false,
|
172 | "browsers": "defaults"
|
173 | }
|
174 | },
|
175 | {
|
176 | "description": "TypeScript compiled against ES2022 for Node.js 14 || 16 || 18 || 20 || 21 with Require for modules",
|
177 | "directory": "edition-es2022",
|
178 | "entry": "index.js",
|
179 | "tags": [
|
180 | "compiled",
|
181 | "javascript",
|
182 | "es2022",
|
183 | "require"
|
184 | ],
|
185 | "engines": {
|
186 | "node": "14 || 16 || 18 || 20 || 21",
|
187 | "browsers": false
|
188 | }
|
189 | },
|
190 | {
|
191 | "description": "TypeScript compiled against ES2017 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
|
192 | "directory": "edition-es2017",
|
193 | "entry": "index.js",
|
194 | "tags": [
|
195 | "compiled",
|
196 | "javascript",
|
197 | "es2017",
|
198 | "require"
|
199 | ],
|
200 | "engines": {
|
201 | "node": "6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21",
|
202 | "browsers": false
|
203 | }
|
204 | },
|
205 | {
|
206 | "description": "TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
|
207 | "directory": "edition-es5",
|
208 | "entry": "index.js",
|
209 | "tags": [
|
210 | "compiled",
|
211 | "javascript",
|
212 | "es5",
|
213 | "require"
|
214 | ],
|
215 | "engines": {
|
216 | "node": "4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21",
|
217 | "browsers": false
|
218 | }
|
219 | },
|
220 | {
|
221 | "description": "TypeScript compiled against ES2017 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules",
|
222 | "directory": "edition-es2017-esm",
|
223 | "entry": "index.js",
|
224 | "tags": [
|
225 | "compiled",
|
226 | "javascript",
|
227 | "es2017",
|
228 | "import"
|
229 | ],
|
230 | "engines": {
|
231 | "node": "12 || 14 || 16 || 18 || 20 || 21",
|
232 | "browsers": false
|
233 | }
|
234 | },
|
235 | {
|
236 | "description": "TypeScript compiled Types with Import for modules",
|
237 | "directory": "edition-types",
|
238 | "entry": "index.d.ts",
|
239 | "tags": [
|
240 | "compiled",
|
241 | "types",
|
242 | "import"
|
243 | ],
|
244 | "engines": false
|
245 | },
|
246 | {
|
247 | "description": "TypeScript source code made to be compatible with Deno",
|
248 | "directory": "edition-deno",
|
249 | "entry": "index.ts",
|
250 | "tags": [
|
251 | "typescript",
|
252 | "import",
|
253 | "deno"
|
254 | ],
|
255 | "engines": {
|
256 | "deno": true,
|
257 | "browsers": true
|
258 | }
|
259 | }
|
260 | ],
|
261 | "types": "edition-types/index.d.ts",
|
262 | "type": "module",
|
263 | "main": "index.cjs",
|
264 | "exports": {
|
265 | "node": {
|
266 | "types": "./edition-types/index.d.ts",
|
267 | "import": "./edition-es2017-esm/index.js",
|
268 | "default": "./index.cjs",
|
269 | "require": "./edition-es2022/index.js"
|
270 | },
|
271 | "browser": {
|
272 | "types": "./edition-types/index.d.ts",
|
273 | "import": "./edition-browsers/index.js"
|
274 | }
|
275 | },
|
276 | "deno": "edition-deno/index.ts",
|
277 | "browser": "edition-browsers/index.js",
|
278 | "module": "edition-browsers/index.js",
|
279 | "dependencies": {
|
280 | "binaryextensions": "^6.11.0",
|
281 | "editions": "^6.21.0",
|
282 | "textextensions": "^6.11.0"
|
283 | },
|
284 | "devDependencies": {
|
285 | "@types/node": "^20.10.5",
|
286 | "@typescript-eslint/eslint-plugin": "^6.16.0",
|
287 | "@typescript-eslint/parser": "^6.16.0",
|
288 | "assert-helpers": "^11.12.0",
|
289 | "eslint": "^8.56.0",
|
290 | "eslint-config-bevry": "^5.3.0",
|
291 | "eslint-config-prettier": "^9.1.0",
|
292 | "eslint-plugin-prettier": "^5.1.2",
|
293 | "filedirname": "^3.3.0",
|
294 | "kava": "^7.8.0",
|
295 | "make-deno-edition": "^2.2.0",
|
296 | "prettier": "^3.1.1",
|
297 | "projectz": "^4.1.1",
|
298 | "typedoc": "^0.25.4",
|
299 | "typescript": "5.3.3",
|
300 | "valid-directory": "^4.8.0",
|
301 | "valid-module": "^2.6.0"
|
302 | },
|
303 | "scripts": {
|
304 | "our:clean": "rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
|
305 | "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",
|
306 | "our:compile:deno": "make-deno-edition --attempt",
|
307 | "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 ) )",
|
308 | "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",
|
309 | "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",
|
310 | "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",
|
311 | "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",
|
312 | "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 ) )",
|
313 | "our:deploy": "printf '%s\n' 'no need for this project'",
|
314 | "our:meta": "npm run our:meta:docs && npm run our:meta:projectz",
|
315 | "our:meta:docs": "npm run our:meta:docs:typedoc",
|
316 | "our:meta:docs:typedoc": "rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source",
|
317 | "our:meta:projectz": "projectz --offline",
|
318 | "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",
|
319 | "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)",
|
320 | "our:release:check-dirty": "git diff --exit-code",
|
321 | "our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta",
|
322 | "our:release:push": "git push origin && git push origin --tags",
|
323 | "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\"",
|
324 | "our:setup": "npm run our:setup:install",
|
325 | "our:setup:install": "npm install",
|
326 | "our:test": "npm run our:verify && npm test",
|
327 | "our:verify": "npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier",
|
328 | "our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source",
|
329 | "our:verify:module": "valid-module",
|
330 | "our:verify:prettier": "prettier --write .",
|
331 | "test": "node ./test.cjs"
|
332 | },
|
333 | "eslintConfig": {
|
334 | "extends": [
|
335 | "bevry"
|
336 | ]
|
337 | },
|
338 | "prettier": {
|
339 | "semi": false,
|
340 | "singleQuote": true,
|
341 | "trailingComma": "es5",
|
342 | "endOfLine": "lf"
|
343 | }
|
344 | }
|