pax_global_header00006660000000000000000000000064137766364230014533gustar00rootroot0000000000000052 comment=40e44b510d87a63dcf42300bc8fbcb105f45a61c binary-extensions-2.2.0/000077500000000000000000000000001377663642300152155ustar00rootroot00000000000000binary-extensions-2.2.0/.editorconfig000066400000000000000000000002571377663642300176760ustar00rootroot00000000000000root = 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 binary-extensions-2.2.0/.gitattributes000066400000000000000000000000231377663642300201030ustar00rootroot00000000000000* text=auto eol=lf binary-extensions-2.2.0/.github/000077500000000000000000000000001377663642300165555ustar00rootroot00000000000000binary-extensions-2.2.0/.github/funding.yml000066400000000000000000000000651377663642300207330ustar00rootroot00000000000000github: sindresorhus tidelift: npm/binary-extensions binary-extensions-2.2.0/.github/security.md000066400000000000000000000002631377663642300207470ustar00rootroot00000000000000# Security Policy To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. binary-extensions-2.2.0/.github/workflows/000077500000000000000000000000001377663642300206125ustar00rootroot00000000000000binary-extensions-2.2.0/.github/workflows/main.yml000066400000000000000000000007021377663642300222600ustar00rootroot00000000000000name: 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@v2 - uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - run: npm install - run: npm test binary-extensions-2.2.0/.gitignore000066400000000000000000000000271377663642300172040ustar00rootroot00000000000000node_modules yarn.lock binary-extensions-2.2.0/.npmrc000066400000000000000000000000231377663642300163300ustar00rootroot00000000000000package-lock=false binary-extensions-2.2.0/binary-extensions.json000066400000000000000000000041561377663642300215770ustar00rootroot00000000000000[ "3dm", "3ds", "3g2", "3gp", "7z", "a", "aac", "adp", "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" ] binary-extensions-2.2.0/binary-extensions.json.d.ts000066400000000000000000000001271377663642300224400ustar00rootroot00000000000000declare const binaryExtensionsJson: readonly string[]; export = binaryExtensionsJson; binary-extensions-2.2.0/index.d.ts000066400000000000000000000003711377663642300171170ustar00rootroot00000000000000/** List of binary file extensions. @example ``` import binaryExtensions = require('binary-extensions'); console.log(binaryExtensions); //=> ['3ds', '3g2', …] ``` */ declare const binaryExtensions: readonly string[]; export = binaryExtensions; binary-extensions-2.2.0/index.js000066400000000000000000000000661377663642300166640ustar00rootroot00000000000000module.exports = require('./binary-extensions.json'); binary-extensions-2.2.0/index.test-d.ts000066400000000000000000000003621377663642300200740ustar00rootroot00000000000000import {expectType} from 'tsd'; import binaryExtensions = require('.'); import binaryExtensionsJson = require('./binary-extensions.json'); expectType(binaryExtensions); expectType(binaryExtensionsJson); binary-extensions-2.2.0/license000066400000000000000000000022071377663642300165630ustar00rootroot00000000000000MIT License Copyright (c) 2019 Sindre Sorhus (https://sindresorhus.com), 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. binary-extensions-2.2.0/package.json000066400000000000000000000012141377663642300175010ustar00rootroot00000000000000{ "name": "binary-extensions", "version": "2.2.0", "description": "List of binary file extensions", "license": "MIT", "repository": "sindresorhus/binary-extensions", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "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" } } binary-extensions-2.2.0/readme.md000066400000000000000000000017451377663642300170030ustar00rootroot00000000000000# binary-extensions > List of binary file extensions The list is just a [JSON file](binary-extensions.json) and can be used anywhere. ## Install ``` $ 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 ---
Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
binary-extensions-2.2.0/test.js000066400000000000000000000002431377663642300165310ustar00rootroot00000000000000import test from 'ava'; import binaryExtensions from '.'; test('main', t => { t.true(Array.isArray(binaryExtensions)); t.true(binaryExtensions.length > 0); });