@uocdev/yauiselib 1.0.0
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/LICENSE +21 -0
- package/README.md +25 -0
- package/dist/cjs/cout/cout.d.ts +1 -0
- package/dist/cjs/cout/cout.js +9 -0
- package/dist/cjs/cout/coutint.d.ts +1 -0
- package/dist/cjs/cout/coutint.js +11 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +7 -0
- package/dist/esm/cout/cout.d.ts +1 -0
- package/dist/esm/cout/cout.js +6 -0
- package/dist/esm/cout/coutint.d.ts +1 -0
- package/dist/esm/cout/coutint.js +8 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/package.json +58 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Uoc Azizah
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Yauiselib (Library)
|
|
2
|
+
random Package for Node.js (CJS / ESM). Yauise-Lib, Yauise name is from my friend, very very good person and more. Lib for stuff i create into multiple modules in one single package.
|
|
3
|
+
|
|
4
|
+
## API
|
|
5
|
+
cout function:
|
|
6
|
+
- [cout()](https://github.com/UocDev/Yauiselib#cout())
|
|
7
|
+
- [coutint()](https://github.com/UocDev/Yauiselib#coutint())
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
#### cout()
|
|
12
|
+
`cout()` function is like `console.log()` but more shorter. `cout()` only accept string only, if you use non-string it will throw error.
|
|
13
|
+
```js
|
|
14
|
+
import { cout } from '@uocdev/yauiselib';
|
|
15
|
+
|
|
16
|
+
cout("hello world "):
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
#### coutint()
|
|
20
|
+
like `cout()` but for integer (Number), it same like `cout()` only accept integer type, if non-int it will throw error.
|
|
21
|
+
```js
|
|
22
|
+
import { coutint } from '@uocdev/yauiselib';
|
|
23
|
+
|
|
24
|
+
coutint(18, 2.29, 19);
|
|
25
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function cout(...$text: string[]): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cout = cout;
|
|
4
|
+
function cout(...$text) {
|
|
5
|
+
if (!$text.every($text => typeof $text === "string")) {
|
|
6
|
+
throw new TypeError("cout only accept string");
|
|
7
|
+
}
|
|
8
|
+
console.log(...$text);
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function coutint(...$int: number[]): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.coutint = coutint;
|
|
4
|
+
function coutint(...$int) {
|
|
5
|
+
if (!$int.every(v => typeof v === "number")) {
|
|
6
|
+
throw new TypeError("coutint only accept number.\n" +
|
|
7
|
+
"looking for string?\n" +
|
|
8
|
+
"cout();");
|
|
9
|
+
}
|
|
10
|
+
console.log(...$int);
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.coutint = exports.cout = void 0;
|
|
4
|
+
var cout_js_1 = require("./cout/cout.js");
|
|
5
|
+
Object.defineProperty(exports, "cout", { enumerable: true, get: function () { return cout_js_1.cout; } });
|
|
6
|
+
var coutint_js_1 = require("./cout/coutint.js");
|
|
7
|
+
Object.defineProperty(exports, "coutint", { enumerable: true, get: function () { return coutint_js_1.coutint; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function cout(...$text: string[]): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function coutint(...$int: number[]): void;
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@uocdev/yauiselib",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "random package for NPM fun only :3",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Uoc",
|
|
7
|
+
"type": "module",
|
|
8
|
+
|
|
9
|
+
"keywords": [
|
|
10
|
+
"nodejs",
|
|
11
|
+
"typescript",
|
|
12
|
+
"ts",
|
|
13
|
+
"fun",
|
|
14
|
+
"playground",
|
|
15
|
+
"random"
|
|
16
|
+
],
|
|
17
|
+
|
|
18
|
+
"main": "./dist/cjs/index.cjs",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": "./dist/esm/index.js",
|
|
24
|
+
"require": "./dist/cjs/index.cjs"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
"files": ["dist"],
|
|
29
|
+
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=18"
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build:esm": "tsc -p tsconfig.esm.json",
|
|
36
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
37
|
+
"build": "npm run build:esm && npm run build:cjs",
|
|
38
|
+
"clean": "rm -rf dist",
|
|
39
|
+
"install:dev": "npm install --prefix ./tesyl",
|
|
40
|
+
"test:dev": "node tesyl/index"
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"typescript": "^5.3.3",
|
|
45
|
+
"@types/node": "^25.0.9"
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "https://github.com/UocDev/Yauiselib"
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "https://github.com/UocDev/Yauiselib/issues"
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
"homepage": "https://github.com/UocDev/Yauiselib#readme"
|
|
58
|
+
}
|