aboutsummaryrefslogtreecommitdiff
path: root/hooks/size.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-02-14 14:25:36 +0100
committerMinteck <contact@minteck.org>2022-02-14 14:25:36 +0100
commit000eec5f6df372d8a026c5b73272797afec8a941 (patch)
tree960dcecbc2674f153309b0a4237e06278de06c1d /hooks/size.js
parent698f4a325fead3fb1a634a24d98d3238acf904ff (diff)
downloadtwilight-000eec5f6df372d8a026c5b73272797afec8a941.tar.gz
twilight-000eec5f6df372d8a026c5b73272797afec8a941.tar.bz2
twilight-000eec5f6df372d8a026c5b73272797afec8a941.zip
Add copyright notice
Diffstat (limited to 'hooks/size.js')
-rw-r--r--hooks/size.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/hooks/size.js b/hooks/size.js
index 1068e11..63320e1 100644
--- a/hooks/size.js
+++ b/hooks/size.js
@@ -1,3 +1,28 @@
+/*
+ * MIT License
+ *
+ * Copyright (c) 2022- Minteck
+ *
+ * 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.
+ *
+ */
+
const getAllFiles = function(dirPath, arrayOfFiles) {
files = fs.readdirSync(dirPath)