corexxx 1.0.66 → 1.0.67
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/dist/dformat.d.ts +4 -0
- package/dist/dformat.js +14 -0
- package/dist/dformat.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/test.js +2 -0
- package/dist/test.js.map +1 -1
- package/package.json +1 -1
- package/src/dformat.ts +9 -0
- package/src/index.ts +1 -0
- package/src/test.ts +2 -0
package/dist/dformat.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dformat = void 0;
|
|
4
|
+
var dformat;
|
|
5
|
+
(function (dformat) {
|
|
6
|
+
function formatMe(text, args) {
|
|
7
|
+
for (var attr in args) {
|
|
8
|
+
text = text.split("${" + attr + "}").join(args[attr]);
|
|
9
|
+
}
|
|
10
|
+
return text;
|
|
11
|
+
}
|
|
12
|
+
dformat.formatMe = formatMe;
|
|
13
|
+
})(dformat = exports.dformat || (exports.dformat = {}));
|
|
14
|
+
//# sourceMappingURL=dformat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dformat.js","sourceRoot":"","sources":["../src/dformat.ts"],"names":[],"mappings":";;;AACA,IAAiB,OAAO,CAOvB;AAPD,WAAiB,OAAO;IACtB,SAAgB,QAAQ,CAAC,IAAY,EAAE,IAAa;QAClD,KAAK,IAAI,IAAI,IAAI,IAAI,EAAE;YACrB,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;SACvD;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IALe,gBAAQ,WAKvB,CAAA;AACH,CAAC,EAPgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAOvB"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -16,6 +16,7 @@ __exportStar(require("./dcolors"), exports);
|
|
|
16
16
|
__exportStar(require("./dconverter"), exports);
|
|
17
17
|
__exportStar(require("./dcookie"), exports);
|
|
18
18
|
__exportStar(require("./ddebug"), exports);
|
|
19
|
+
__exportStar(require("./dformat"), exports);
|
|
19
20
|
__exportStar(require("./dlog"), exports);
|
|
20
21
|
__exportStar(require("./dnetwork"), exports);
|
|
21
22
|
__exportStar(require("./drandom"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA8C;AAC9C,4CAA0B;AAC1B,4CAA0B;AAC1B,+CAA6B;AAC7B,4CAA0B;AAC1B,2CAAyB;AACzB,yCAAuB;AACvB,6CAA2B;AAC3B,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAE3B,oBAAoB;AACpB,uCAAuC;AACvC,uCAAuC;AACvC,yBAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA8C;AAC9C,4CAA0B;AAC1B,4CAA0B;AAC1B,+CAA6B;AAC7B,4CAA0B;AAC1B,2CAAyB;AACzB,4CAA0B;AAC1B,yCAAuB;AACvB,6CAA2B;AAC3B,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAE3B,oBAAoB;AACpB,uCAAuC;AACvC,uCAAuC;AACvC,yBAAyB"}
|
package/dist/test.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const _1 = require(".");
|
|
4
|
+
const dformat_1 = require("./dformat");
|
|
4
5
|
const dlog_1 = require("./dlog");
|
|
5
6
|
dlog_1.dlog.d("hello world");
|
|
6
7
|
//dvalidation.validateExistOrThrow({ a: [] }, ["a"]);
|
|
7
8
|
//console.log(dtime.isSameDay("2022-02-24T11:08:54.342Z", "2022-02-24T11:08:54.342Z"));
|
|
8
9
|
console.log(_1.dtime.getIstTime(new Date().toISOString()));
|
|
10
|
+
console.log(dformat_1.dformat.formatMe("Hello ${me} ${me}", { me: "dipankar" }));
|
|
9
11
|
//# sourceMappingURL=test.js.map
|
package/dist/test.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":";;AAAA,wBAA0B;AAC1B,iCAA8B;AAE9B,WAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;AACtB,qDAAqD;AACrD,uFAAuF;AACvF,OAAO,CAAC,GAAG,CAAC,QAAK,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":";;AAAA,wBAA0B;AAC1B,uCAAoC;AACpC,iCAA8B;AAE9B,WAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;AACtB,qDAAqD;AACrD,uFAAuF;AACvF,OAAO,CAAC,GAAG,CAAC,QAAK,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AACxD,OAAO,CAAC,GAAG,CAAC,iBAAO,CAAC,QAAQ,CAAC,mBAAmB,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/dformat.ts
ADDED
package/src/index.ts
CHANGED
package/src/test.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { dtime } from ".";
|
|
2
|
+
import { dformat } from "./dformat";
|
|
2
3
|
import { dlog } from "./dlog";
|
|
3
4
|
|
|
4
5
|
dlog.d("hello world");
|
|
5
6
|
//dvalidation.validateExistOrThrow({ a: [] }, ["a"]);
|
|
6
7
|
//console.log(dtime.isSameDay("2022-02-24T11:08:54.342Z", "2022-02-24T11:08:54.342Z"));
|
|
7
8
|
console.log(dtime.getIstTime(new Date().toISOString()));
|
|
9
|
+
console.log(dformat.formatMe("Hello ${me} ${me}", { me: "dipankar" }));
|