pax_global_header00006660000000000000000000000064134561433000014511gustar00rootroot0000000000000052 comment=11e076d96c41369015cc3c338428f7f456d3a92f binary-extensions-2.0.0/000077500000000000000000000000001345614330000151715ustar00rootroot00000000000000binary-extensions-2.0.0/.editorconfig000066400000000000000000000002571345614330000176520ustar00rootroot00000000000000root = 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.0.0/.gitattributes000066400000000000000000000000231345614330000200570ustar00rootroot00000000000000* text=auto eol=lf binary-extensions-2.0.0/.gitignore000066400000000000000000000000271345614330000171600ustar00rootroot00000000000000node_modules yarn.lock binary-extensions-2.0.0/.npmrc000066400000000000000000000000231345614330000163040ustar00rootroot00000000000000package-lock=false binary-extensions-2.0.0/.travis.yml000066400000000000000000000000541345614330000173010ustar00rootroot00000000000000language: node_js node_js: - '10' - '8' binary-extensions-2.0.0/binary-extensions.json000066400000000000000000000040441345614330000215470ustar00rootroot00000000000000[ "3dm", "3ds", "3g2", "3gp", "7z", "a", "aac", "adp", "ai", "aif", "aiff", "alz", "ape", "apk", "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", "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", "oga", "ogg", "ogv", "otf", "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", "rtf", "rz", "s3m", "s7z", "scpt", "sgi", "shar", "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.0.0/binary-extensions.json.d.ts000066400000000000000000000001271345614330000224140ustar00rootroot00000000000000declare const binaryExtensionsJson: readonly string[]; export = binaryExtensionsJson; binary-extensions-2.0.0/index.d.ts000066400000000000000000000003711345614330000170730ustar00rootroot00000000000000/** 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.0.0/index.js000066400000000000000000000000661345614330000166400ustar00rootroot00000000000000module.exports = require('./binary-extensions.json'); binary-extensions-2.0.0/index.test-d.ts000066400000000000000000000003621345614330000200500ustar00rootroot00000000000000import {expectType} from 'tsd'; import binaryExtensions = require('.'); import binaryExtensionsJson = require('./binary-extensions.json'); expectType(binaryExtensions); expectType(binaryExtensionsJson); binary-extensions-2.0.0/license000066400000000000000000000022071345614330000165370ustar00rootroot00000000000000MIT 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.0.0/package.json000066400000000000000000000012141345614330000174550ustar00rootroot00000000000000{ "name": "binary-extensions", "version": "2.0.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.0.0/readme.md000066400000000000000000000014251345614330000167520ustar00rootroot00000000000000# binary-extensions [![Build Status](https://travis-ci.org/sindresorhus/binary-extensions.svg?branch=master)](https://travis-ci.org/sindresorhus/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 ## License MIT © [Sindre Sorhus](https://sindresorhus.com), [Paul Miller](https://paulmillr.com) binary-extensions-2.0.0/test.js000066400000000000000000000002431345614330000165050ustar00rootroot00000000000000import test from 'ava'; import binaryExtensions from '.'; test('main', t => { t.true(Array.isArray(binaryExtensions)); t.true(binaryExtensions.length > 0); });