1 | {
|
2 | "title": "Is Text or Binary?",
|
3 | "name": "istextorbinary",
|
4 | "version": "6.0.0",
|
5 | "description": "Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.",
|
6 | "homepage": "https://github.com/bevry/istextorbinary",
|
7 | "license": "MIT",
|
8 | "keywords": [
|
9 | "bin",
|
10 | "binary",
|
11 | "browser",
|
12 | "check",
|
13 | "detect",
|
14 | "encoding",
|
15 | "es2019",
|
16 | "ext",
|
17 | "extension",
|
18 | "extensions",
|
19 | "file",
|
20 | "is",
|
21 | "is binary",
|
22 | "is binary file",
|
23 | "is text",
|
24 | "is text file",
|
25 | "is text or binary",
|
26 | "is text or binary file",
|
27 | "isbinary",
|
28 | "isbinaryfile",
|
29 | "istext",
|
30 | "istextfile",
|
31 | "module",
|
32 | "node",
|
33 | "path",
|
34 | "text",
|
35 | "typed",
|
36 | "types",
|
37 | "typescript"
|
38 | ],
|
39 | "badges": {
|
40 | "list": [
|
41 | "githubworkflow",
|
42 | "npmversion",
|
43 | "npmdownloads",
|
44 | "daviddm",
|
45 | "daviddmdev",
|
46 | "---",
|
47 | "githubsponsors",
|
48 | "patreon",
|
49 | "flattr",
|
50 | "liberapay",
|
51 | "buymeacoffee",
|
52 | "opencollective",
|
53 | "crypto",
|
54 | "paypal",
|
55 | "wishlist"
|
56 | ],
|
57 | "config": {
|
58 | "githubWorkflow": "bevry",
|
59 | "githubSponsorsUsername": "balupton",
|
60 | "buymeacoffeeUsername": "balupton",
|
61 | "cryptoURL": "https://bevry.me/crypto",
|
62 | "flattrUsername": "balupton",
|
63 | "liberapayUsername": "bevry",
|
64 | "opencollectiveUsername": "bevry",
|
65 | "patreonUsername": "bevry",
|
66 | "paypalURL": "https://bevry.me/paypal",
|
67 | "wishlistURL": "https://bevry.me/wishlist",
|
68 | "githubUsername": "bevry",
|
69 | "githubRepository": "istextorbinary",
|
70 | "githubSlug": "bevry/istextorbinary",
|
71 | "npmPackageName": "istextorbinary"
|
72 | }
|
73 | },
|
74 | "funding": "https://bevry.me/fund",
|
75 | "author": "2012+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me), 2011 Benjamin Lupton <b@lupton.cc> (https://balupton.com)",
|
76 | "maintainers": [
|
77 | "Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)",
|
78 | "Michael Mooring <mike@mdm.cc> (https://github.com/mikeumus)",
|
79 | "Rob Loach <robloach@gmail.com> (https://github.com/robloach)"
|
80 | ],
|
81 | "contributors": [
|
82 | "Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)",
|
83 | "Ian Sibner <sibnerian@gmail.com> (https://github.com/sibnerian)",
|
84 | "Kukhyeon Heo <sainthkh@gmail.com> (https://github.com/sainthkh)",
|
85 | "Michael Mooring <mike@mdm.cc> (https://github.com/mikeumus)",
|
86 | "Rob Loach <robloach@gmail.com> (https://github.com/robloach)",
|
87 | "Sean <sean@albinodrought.com> (https://github.com/AlbinoDrought)",
|
88 | "shinnn <snnskwtnb@gmail.com> (https://github.com/shinnn)"
|
89 | ],
|
90 | "bugs": {
|
91 | "url": "https://github.com/bevry/istextorbinary/issues"
|
92 | },
|
93 | "repository": {
|
94 | "type": "git",
|
95 | "url": "https://github.com/bevry/istextorbinary.git"
|
96 | },
|
97 | "engines": {
|
98 | "node": ">=10"
|
99 | },
|
100 | "editions": [
|
101 | {
|
102 | "description": "TypeScript source code with Import for modules",
|
103 | "directory": "source",
|
104 | "entry": "index.ts",
|
105 | "tags": [
|
106 | "source",
|
107 | "typescript",
|
108 | "import"
|
109 | ],
|
110 | "engines": false
|
111 | },
|
112 | {
|
113 | "description": "TypeScript compiled against ES2020 for web browsers with Import for modules",
|
114 | "directory": "edition-browsers",
|
115 | "entry": "index.js",
|
116 | "tags": [
|
117 | "compiled",
|
118 | "javascript",
|
119 | "import"
|
120 | ],
|
121 | "engines": {
|
122 | "node": false,
|
123 | "browsers": "defaults"
|
124 | }
|
125 | },
|
126 | {
|
127 | "description": "TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules",
|
128 | "directory": "edition-es2019",
|
129 | "entry": "index.js",
|
130 | "tags": [
|
131 | "compiled",
|
132 | "javascript",
|
133 | "es2019",
|
134 | "require"
|
135 | ],
|
136 | "engines": {
|
137 | "node": "10 || 12 || 14 || 16",
|
138 | "browsers": false
|
139 | }
|
140 | },
|
141 | {
|
142 | "description": "TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules",
|
143 | "directory": "edition-es2019-esm",
|
144 | "entry": "index.js",
|
145 | "tags": [
|
146 | "compiled",
|
147 | "javascript",
|
148 | "es2019",
|
149 | "import"
|
150 | ],
|
151 | "engines": {
|
152 | "node": "12 || 14 || 16",
|
153 | "browsers": false
|
154 | }
|
155 | }
|
156 | ],
|
157 | "types": "./compiled-types/",
|
158 | "type": "module",
|
159 | "main": "edition-es2019/index.js",
|
160 | "exports": {
|
161 | "node": {
|
162 | "import": "./edition-es2019-esm/index.js",
|
163 | "require": "./edition-es2019/index.js"
|
164 | },
|
165 | "browser": {
|
166 | "import": "./edition-browsers/index.js"
|
167 | }
|
168 | },
|
169 | "browser": "edition-browsers/index.js",
|
170 | "module": "edition-browsers/index.js",
|
171 | "dependencies": {
|
172 | "binaryextensions": "^4.18.0",
|
173 | "textextensions": "^5.14.0"
|
174 | },
|
175 | "devDependencies": {
|
176 | "@bevry/update-contributors": "^1.20.0",
|
177 | "@typescript-eslint/eslint-plugin": "^4.28.5",
|
178 | "@typescript-eslint/parser": "^4.28.5",
|
179 | "assert-helpers": "^8.4.0",
|
180 | "eslint": "^7.32.0",
|
181 | "eslint-config-bevry": "^3.27.0",
|
182 | "eslint-config-prettier": "^8.3.0",
|
183 | "eslint-plugin-prettier": "^3.4.0",
|
184 | "filedirname": "^2.7.0",
|
185 | "kava": "^5.15.0",
|
186 | "make-deno-edition": "^1.3.0",
|
187 | "prettier": "^2.3.2",
|
188 | "projectz": "^2.22.0",
|
189 | "surge": "^0.23.0",
|
190 | "typedoc": "^0.21.4",
|
191 | "typescript": "4.3.5",
|
192 | "valid-directory": "^3.9.0",
|
193 | "valid-module": "^1.17.0"
|
194 | },
|
195 | "scripts": {
|
196 | "our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
|
197 | "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",
|
198 | "our:compile:deno": "make-deno-edition --attempt",
|
199 | "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 ) )",
|
200 | "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",
|
201 | "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",
|
202 | "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 ) )",
|
203 | "our:deploy": "echo no need for this project",
|
204 | "our:meta": "npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz",
|
205 | "our:meta:contributors": "update-contributors",
|
206 | "our:meta:docs": "npm run our:meta:docs:typedoc",
|
207 | "our:meta:docs:typedoc": "rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source",
|
208 | "our:meta:projectz": "projectz compile",
|
209 | "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",
|
210 | "our:release:check-changelog": "cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)",
|
211 | "our:release:check-dirty": "git diff --exit-code",
|
212 | "our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta",
|
213 | "our:release:push": "git push origin && git push origin --tags",
|
214 | "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\"",
|
215 | "our:setup": "npm run our:setup:install",
|
216 | "our:setup:install": "npm install",
|
217 | "our:test": "npm run our:verify && npm test",
|
218 | "our:verify": "npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier",
|
219 | "our:verify:directory": "valid-directory",
|
220 | "our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source",
|
221 | "our:verify:module": "valid-module",
|
222 | "our:verify:prettier": "prettier --write .",
|
223 | "test": "node ./edition-es2019/test.js"
|
224 | },
|
225 | "eslintConfig": {
|
226 | "extends": [
|
227 | "bevry"
|
228 | ]
|
229 | },
|
230 | "prettier": {
|
231 | "semi": false,
|
232 | "singleQuote": true
|
233 | }
|
234 | } |
\ | No newline at end of file |