node_modules ignore

This commit is contained in:
oier committed 2025-05-08 23:43:47 +02:00
1 parent e19d52f172
commit 4574544c9f
65041 files changed
+10593536

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
# use line feed
end_of_line = lf
# ensure file ends with a newline when saving
insert_final_newline = true
# soft tabs
indent_style = space
# number of columns used for each indentation level
indent_size = 2
# remove any whitespace characters preceding newline characters
trim_trailing_whitespace = true
# character set
charset = utf-8
+2
View File
@@ -0,0 +1,2 @@
# Convert line endings to LF (Line Feed)
* text=auto
+7
View File
@@ -0,0 +1,7 @@
# Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [0.0.2] - 2015-04-26
### Added
- Babel.js classes support
+21
View File
@@ -0,0 +1,21 @@
MIT license
Copyright (C) 2014 Miguel Mota
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.
+35
View File
@@ -0,0 +1,35 @@
# is-class
Check if function is an ES6 class.
# Install
```bash
npm install is-class
```
```bash
bower install is-class
```
# Usage
```javascript
var isClass = require('is-class');
class F {}
function G() {}
console.log(isClass(F)); // true
console.log(isClass(G)); // false
```
# Test
```bash
npm test
```
# License
MIT
+24
View File
@@ -0,0 +1,24 @@
{
"name": "is-class",
"main": "is-class.js",
"version": "0.0.4",
"homepage": "https://github.com/miguelmota/is-class",
"authors": [
"Miguel Mota <miguelmota2@gmail.com>"
],
"description": "Check if function is an ES6 class.",
"keywords": [
"predicate",
"function",
"class",
"es6"
],
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"license": "MIT"
}
+28
View File
@@ -0,0 +1,28 @@
(function(root) {
var toString = Function.prototype.toString;
function fnBody(fn) {
return toString.call(fn).replace(/^[^{]*{\s*/,'').replace(/\s*}[^}]*$/,'');
}
function isClass(fn) {
return (typeof fn === 'function' &&
(/^class(?:\s|{)/.test(toString.call(fn)) ||
(/^.*classCallCheck\(/.test(fnBody(fn)))) // babel.js
);
}
if (typeof exports !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
exports = module.exports = isClass;
}
exports.isClass = isClass;
} else if (typeof define === 'function' && define.amd) {
define([], function() {
return isClass;
});
} else {
root.isClass = isClass;
}
})(this);
+31
View File
@@ -0,0 +1,31 @@
{
"name": "is-class-hotfix",
"version": "0.0.6",
"description": "Check if function is an ES6 class.",
"main": "is-class.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "tape test/*.js"
},
"repository": {
"type": "git",
"url": "https://github.com/miguelmota/is-class"
},
"keywords": [
"predicate",
"function",
"class",
"es6"
],
"author": "Miguel Mota <hello@miguelmota.com> (http://www.miguelmota.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/miguelmota/is-class/issues"
},
"homepage": "https://github.com/miguelmota/is-class",
"devDependencies": {
"tape": "^3.0.3"
}
}
+27
View File
@@ -0,0 +1,27 @@
'use strict';
var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };
var test = require('tape');
var isClass = require('../is-class');
test('isClass', function (t) {
t.plan(9);
var F = function F() {
_classCallCheck(this, F);
};
function G() {}
t.true(isClass(F));
t.false(isClass(G));
t.false(isClass(''));
t.false(isClass(0));
t.false(isClass(null));
t.false(isClass(undefined));
t.false(isClass(1));
t.false(isClass({}));
t.false(isClass([]));
});
+31
View File
@@ -0,0 +1,31 @@
'use strict';
var test = require('tape');
var isClass = require('../is-class');
test('isClass', function (t) {
t.plan(19);
class F {}
function G() {}
t.true(isClass(F));
t.true(isClass(class{}));
t.true(isClass(class{ }));
t.true(isClass(class{constructor(){}}));
t.true(isClass(class _{}));
t.true(isClass(class _FF {}));
t.true(isClass(class B extends(F){}));
t.true(isClass(class extends(F){}));
t.true(isClass(class extends F{}));
t.true(isClass(class extends F {}));
t.true(isClass(class extends F {}));
t.false(isClass(G));
t.false(isClass(''));
t.false(isClass(0));
t.false(isClass(null));
t.false(isClass(undefined));
t.false(isClass(1));
t.false(isClass({}));
t.false(isClass([]));
});