pax_global_header00006660000000000000000000000064145746365400014530gustar00rootroot0000000000000052 comment=3ad032e195467df417009bdfc847856829a00085 sindresorhus-binary-extensions-6f4edf1/000077500000000000000000000000001457463654000204405ustar00rootroot00000000000000sindresorhus-binary-extensions-6f4edf1/.editorconfig000066400000000000000000000002571457463654000231210ustar00rootroot00000000000000root = true [*] indent_style = tab end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [*.yml] indent_style = space indent_size = 2 sindresorhus-binary-extensions-6f4edf1/.gitattributes000066400000000000000000000000231457463654000233260ustar00rootroot00000000000000* text=auto eol=lf sindresorhus-binary-extensions-6f4edf1/.github/000077500000000000000000000000001457463654000220005ustar00rootroot00000000000000sindresorhus-binary-extensions-6f4edf1/.github/security.md000066400000000000000000000002631457463654000241720ustar00rootroot00000000000000# Security Policy To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. sindresorhus-binary-extensions-6f4edf1/.github/workflows/000077500000000000000000000000001457463654000240355ustar00rootroot00000000000000sindresorhus-binary-extensions-6f4edf1/.github/workflows/main.yml000066400000000000000000000007021457463654000255030ustar00rootroot00000000000000name: CI on: - push - pull_request jobs: test: name: Node.js ${{ matrix.node-version }} runs-on: ubuntu-latest strategy: fail-fast: false matrix: node-version: - 14 - 12 - 10 - 8 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm install - run: npm test sindresorhus-binary-extensions-6f4edf1/.gitignore000066400000000000000000000000271457463654000224270ustar00rootroot00000000000000node_modules yarn.lock sindresorhus-binary-extensions-6f4edf1/.npmrc000066400000000000000000000000231457463654000215530ustar00rootroot00000000000000package-lock=false sindresorhus-binary-extensions-6f4edf1/binary-extensions.json000066400000000000000000000042211457463654000250130ustar00rootroot00000000000000[ "3dm", "3ds", "3g2", "3gp", "7z", "a", "aac", "adp", "afdesign", "afphoto", "afpub", "ai", "aif", "aiff", "alz", "ape", "apk", "appimage", "ar", "arj", "asf", "au", "avi", "bak", "baml", "bh", "bin", "bk", "bmp", "btif", "bz2", "bzip2", "cab", "caf", "cgm", "class", "cmx", "cpio", "cr2", "cur", "dat", "dcm", "deb", "dex", "djvu", "dll", "dmg", "dng", "doc", "docm", "docx", "dot", "dotm", "dra", "DS_Store", "dsk", "dts", "dtshd", "dvb", "dwg", "dxf", "ecelp4800", "ecelp7470", "ecelp9600", "egg", "eol", "eot", "epub", "exe", "f4v", "fbs", "fh", "fla", "flac", "flatpak", "fli", "flv", "fpx", "fst", "fvt", "g3", "gh", "gif", "graffle", "gz", "gzip", "h261", "h263", "h264", "icns", "ico", "ief", "img", "ipa", "iso", "jar", "jpeg", "jpg", "jpgv", "jpm", "jxr", "key", "ktx", "lha", "lib", "lvp", "lz", "lzh", "lzma", "lzo", "m3u", "m4a", "m4v", "mar", "mdi", "mht", "mid", "midi", "mj2", "mka", "mkv", "mmr", "mng", "mobi", "mov", "movie", "mp3", "mp4", "mp4a", "mpeg", "mpg", "mpga", "mxu", "nef", "npx", "numbers", "nupkg", "o", "odp", "ods", "odt", "oga", "ogg", "ogv", "otf", "ott", "pages", "pbm", "pcx", "pdb", "pdf", "pea", "pgm", "pic", "png", "pnm", "pot", "potm", "potx", "ppa", "ppam", "ppm", "pps", "ppsm", "ppsx", "ppt", "pptm", "pptx", "psd", "pya", "pyc", "pyo", "pyv", "qt", "rar", "ras", "raw", "resources", "rgb", "rip", "rlc", "rmf", "rmvb", "rpm", "rtf", "rz", "s3m", "s7z", "scpt", "sgi", "shar", "snap", "sil", "sketch", "slk", "smv", "snk", "so", "stl", "suo", "sub", "swf", "tar", "tbz", "tbz2", "tga", "tgz", "thmx", "tif", "tiff", "tlz", "ttc", "ttf", "txz", "udf", "uvh", "uvi", "uvm", "uvp", "uvs", "uvu", "viv", "vob", "war", "wav", "wax", "wbmp", "wdp", "weba", "webm", "webp", "whl", "wim", "wm", "wma", "wmv", "wmx", "woff", "woff2", "wrm", "wvx", "xbm", "xif", "xla", "xlam", "xls", "xlsb", "xlsm", "xlsx", "xlt", "xltm", "xltx", "xm", "xmind", "xpi", "xpm", "xwd", "xz", "z", "zip", "zipx" ] sindresorhus-binary-extensions-6f4edf1/binary-extensions.json.d.ts000066400000000000000000000001271457463654000256630ustar00rootroot00000000000000declare const binaryExtensionsJson: readonly string[]; export = binaryExtensionsJson; sindresorhus-binary-extensions-6f4edf1/index.d.ts000066400000000000000000000003711457463654000223420ustar00rootroot00000000000000/** List of binary file extensions. @example ``` import binaryExtensions = require('binary-extensions'); console.log(binaryExtensions); //=> ['3ds', '3g2', …] ``` */ declare const binaryExtensions: readonly string[]; export = binaryExtensions; sindresorhus-binary-extensions-6f4edf1/index.js000066400000000000000000000000661457463654000221070ustar00rootroot00000000000000module.exports = require('./binary-extensions.json'); sindresorhus-binary-extensions-6f4edf1/index.test-d.ts000066400000000000000000000003621457463654000233170ustar00rootroot00000000000000import {expectType} from 'tsd'; import binaryExtensions = require('.'); import binaryExtensionsJson = require('./binary-extensions.json'); expectType(binaryExtensions); expectType(binaryExtensionsJson); sindresorhus-binary-extensions-6f4edf1/license000066400000000000000000000022171457463654000220070ustar00rootroot00000000000000MIT License Copyright (c) Sindre Sorhus (https://sindresorhus.com) Copyright (c) Paul Miller (https://paulmillr.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. sindresorhus-binary-extensions-6f4edf1/package.json000066400000000000000000000013431457463654000227270ustar00rootroot00000000000000{ "name": "binary-extensions", "version": "2.3.0", "description": "List of binary file extensions", "license": "MIT", "repository": "sindresorhus/binary-extensions", "funding": "https://github.com/sponsors/sindresorhus", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "https://sindresorhus.com" }, "sideEffects": false, "engines": { "node": ">=8" }, "scripts": { "test": "xo && ava && tsd" }, "files": [ "index.js", "index.d.ts", "binary-extensions.json", "binary-extensions.json.d.ts" ], "keywords": [ "binary", "extensions", "extension", "file", "json", "list", "array" ], "devDependencies": { "ava": "^1.4.1", "tsd": "^0.7.2", "xo": "^0.24.0" } } sindresorhus-binary-extensions-6f4edf1/readme.md000066400000000000000000000010351457463654000222160ustar00rootroot00000000000000# binary-extensions > List of binary file extensions The list is just a [JSON file](binary-extensions.json) and can be used anywhere. ## Install ```sh npm install binary-extensions ``` ## Usage ```js const binaryExtensions = require('binary-extensions'); console.log(binaryExtensions); //=> ['3ds', '3g2', …] ``` ## Related - [is-binary-path](https://github.com/sindresorhus/is-binary-path) - Check if a filepath is a binary file - [text-extensions](https://github.com/sindresorhus/text-extensions) - List of text file extensions sindresorhus-binary-extensions-6f4edf1/test.js000066400000000000000000000002431457463654000217540ustar00rootroot00000000000000import test from 'ava'; import binaryExtensions from '.'; test('main', t => { t.true(Array.isArray(binaryExtensions)); t.true(binaryExtensions.length > 0); });