feat: adding linter for commits
This commit is contained in:
12
node_modules/is-text-path/index.js
generated
vendored
Normal file
12
node_modules/is-text-path/index.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
var path = require('path');
|
||||
var textExtensions = require('text-extensions');
|
||||
var exts = Object.create(null);
|
||||
|
||||
textExtensions.forEach(function (el) {
|
||||
exts[el] = true;
|
||||
});
|
||||
|
||||
module.exports = function (filepath) {
|
||||
return path.extname(filepath).slice(1).toLowerCase() in exts;
|
||||
};
|
21
node_modules/is-text-path/license
generated
vendored
Normal file
21
node_modules/is-text-path/license
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (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.
|
39
node_modules/is-text-path/package.json
generated
vendored
Normal file
39
node_modules/is-text-path/package.json
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
{
|
||||
"name": "is-text-path",
|
||||
"version": "1.0.1",
|
||||
"description": "Check if a filepath is a text file",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/is-text-path",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test.js"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"txt",
|
||||
"text",
|
||||
"ext",
|
||||
"extensions",
|
||||
"extension",
|
||||
"file",
|
||||
"path",
|
||||
"check",
|
||||
"detect",
|
||||
"is"
|
||||
],
|
||||
"dependencies": {
|
||||
"text-extensions": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "0.0.4"
|
||||
}
|
||||
}
|
34
node_modules/is-text-path/readme.md
generated
vendored
Normal file
34
node_modules/is-text-path/readme.md
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
# is-text-path [](https://travis-ci.org/sindresorhus/is-text-path)
|
||||
|
||||
> Check if a filepath is a text file
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save is-text-path
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isTextPath = require('is-text-path');
|
||||
|
||||
isTextPath('src/unicorn.txt');
|
||||
//=> true
|
||||
|
||||
isTextPath('src/unicorn.png');
|
||||
//=> false
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [`text-extensions`](https://github.com/sindresorhus/text-extensions) - List of text file extensions
|
||||
- [`is-binary-path`](https://github.com/sindresorhus/is-binary-path) - Check if a filepath is a binary file
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
Reference in New Issue
Block a user