added necessary npm packages

This commit is contained in:
Aqeeb Imtiaz Harun
2018-08-09 11:15:09 +08:00
parent 93ee4ecb68
commit fc1b011160
2787 changed files with 243227 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
"use strict";
module.exports = {
JSON,
JS,
URL
};
function JSON(s) {
return !URL(s) && /\.json$/.test(s);
}
function JS(s) {
return !URL(s) && /\.js$/.test(s);
}
function URL(s) {
return (/^(http|https):/.test(s)
);
}