diff options
| author | 8cy <[email protected]> | 2020-04-03 02:48:28 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-03 02:48:28 -0700 |
| commit | f9159ea2d994e14180fb02ab562f0119513e67cf (patch) | |
| tree | 09d14cdf05456567156738b681379d4bccd64e5c /node_modules/is-image | |
| parent | 2020/04/03, 02:42, V1.2.1 (diff) | |
| download | s5nical-f9159ea2d994e14180fb02ab562f0119513e67cf.tar.xz s5nical-f9159ea2d994e14180fb02ab562f0119513e67cf.zip | |
2020/04/03, 02:47, V1.2.2
Diffstat (limited to 'node_modules/is-image')
| -rw-r--r-- | node_modules/is-image/index.js | 12 | ||||
| -rw-r--r-- | node_modules/is-image/license | 21 | ||||
| -rw-r--r-- | node_modules/is-image/package.json | 77 | ||||
| -rw-r--r-- | node_modules/is-image/readme.md | 33 |
4 files changed, 0 insertions, 143 deletions
diff --git a/node_modules/is-image/index.js b/node_modules/is-image/index.js deleted file mode 100644 index 71f1fdb..0000000 --- a/node_modules/is-image/index.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; -var path = require('path'); -var imageExtensions = require('image-extensions'); -var exts = Object.create(null); - -imageExtensions.forEach(function (el) { - exts[el] = true; -}); - -module.exports = function (filepath) { - return path.extname(filepath).slice(1).toLowerCase() in exts; -}; diff --git a/node_modules/is-image/license b/node_modules/is-image/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/is-image/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.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. diff --git a/node_modules/is-image/package.json b/node_modules/is-image/package.json deleted file mode 100644 index 704ace4..0000000 --- a/node_modules/is-image/package.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "_from": "is-image@^1.0.1", - "_id": "[email protected]", - "_inBundle": false, - "_integrity": "sha1-b9UadSoaERUG0GDZUhGLC5ibQm4=", - "_location": "/is-image", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-image@^1.0.1", - "name": "is-image", - "escapedName": "is-image", - "rawSpec": "^1.0.1", - "saveSpec": null, - "fetchSpec": "^1.0.1" - }, - "_requiredBy": [ - "/is-image-url" - ], - "_resolved": "https://registry.npmjs.org/is-image/-/is-image-1.0.1.tgz", - "_shasum": "6fd51a752a1a111506d060d952118b0b989b426e", - "_spec": "is-image@^1.0.1", - "_where": "E:\\Documents\\GitHub\\s5nical\\node_modules\\is-image-url", - "author": { - "name": "Sindre Sorhus", - "email": "[email protected]", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/is-image/issues" - }, - "bundleDependencies": false, - "dependencies": { - "image-extensions": "^1.0.1" - }, - "deprecated": false, - "description": "Check if a filepath is an image", - "devDependencies": { - "ava": "0.0.4" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/is-image#readme", - "keywords": [ - "ext", - "extensions", - "extension", - "file", - "path", - "check", - "detect", - "is", - "image", - "img", - "photo", - "pic", - "picture", - "jpg", - "jpeg", - "png" - ], - "license": "MIT", - "name": "is-image", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/is-image.git" - }, - "scripts": { - "test": "node test.js" - }, - "version": "1.0.1" -} diff --git a/node_modules/is-image/readme.md b/node_modules/is-image/readme.md deleted file mode 100644 index 8f0c442..0000000 --- a/node_modules/is-image/readme.md +++ /dev/null @@ -1,33 +0,0 @@ -# is-image [](https://travis-ci.org/sindresorhus/is-image) - -> Check if a filepath is an image - - -## Install - -``` -$ npm install --save is-image -``` - - -## Usage - -```js -var isImage = require('is-image'); - -isImage('src/unicorn.png'); -//=> true - -isImage('src/unicorn.txt'); -//=> false -``` - - -## Related - -- [image-extensions](https://github.com/arthurvr/image-extensions) - List of image extensions - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) |