prototype.exe 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/prototype.js +5 -0
package/package.json
CHANGED
package/src/prototype.js
CHANGED
|
@@ -83,6 +83,8 @@ Define (Object, "clone", function (object) { return JSON.parse (JSON.stringify (
|
|
|
83
83
|
Define (Object, "un_define", function (input) { if (arguments.length) return input === undefined; else return undefined; });
|
|
84
84
|
Define (Object, "un_set", function (input) { return input === undefined || input === null; });
|
|
85
85
|
|
|
86
|
+
Define (Object, "to_string", function (input) { return input.toString (); });
|
|
87
|
+
|
|
86
88
|
/**
|
|
87
89
|
* array
|
|
88
90
|
*
|
|
@@ -689,6 +691,8 @@ Define (Function, "path", function () {});
|
|
|
689
691
|
Define (Function.path, "require", function (api) { return Function.path.api = api; });
|
|
690
692
|
Define (Function.path, "join", function (... path) { return Function.path.api.join (... path); });
|
|
691
693
|
Define (Function.path, "exist", function (... path) { return Function.file.api.existsSync (Function.path.api.join (... path)); });
|
|
694
|
+
Define (Function.path, "access", function (path, io) { return Function.file.api.accessSync (path, io); });
|
|
695
|
+
Define (Function.path.access, "write", function (path) { try { Function.path.access (path, Function.file.api.constants.W_OK); return true; } catch (e) { return false; } });
|
|
692
696
|
Define (Function.path, "current", function (path) { return "./" + path; });
|
|
693
697
|
Define (Function.path, "io", function (io) { if (Array.isArray (io)) Function.path.io.value = io; else return Function.path.io.value.includes (io); });
|
|
694
698
|
Function.path.io ([]);
|
|
@@ -1650,6 +1654,7 @@ Symbol.export = {
|
|
|
1650
1654
|
owl: Function.owl,
|
|
1651
1655
|
asset: Function.asset, theme: Function.theme, template: Function.template,
|
|
1652
1656
|
sitemap: Function.sitemap, "sitemap.xsl": Function ["sitemap.xsl"], "sitemap.xsl:index": Function ["sitemap.xsl:index"],
|
|
1657
|
+
to_string: Object.to_string,
|
|
1653
1658
|
zero: 0, one: 1,
|
|
1654
1659
|
}
|
|
1655
1660
|
|