@uoctamika/libraryjs
Advanced tools
@@ -1,1 +0,1 @@ | ||
| export declare function printf(format: string, ...args: any[]): void; | ||
| export declare function printf(format: string, ...args: unknown[]): number; |
@@ -61,3 +61,5 @@ "use strict"; | ||
| } | ||
| process.stdout.write(parts.join('')); | ||
| const output = parts.join(''); | ||
| process.stdout.write(output); | ||
| return output.length; | ||
| } |
@@ -58,3 +58,5 @@ import { inspect } from 'util'; | ||
| } | ||
| process.stdout.write(parts.join('')); | ||
| const output = parts.join(''); | ||
| process.stdout.write(output); | ||
| return output.length; | ||
| } |
+1
-1
| { | ||
| "name": "@uoctamika/libraryjs", | ||
| "version": "1.1.4", | ||
| "version": "1.2.0", | ||
| "description": " A lightweight JavaScript & TypeScript utility library - just import and use. No configuration needed, functions are ready to use", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
+3
-4
@@ -53,5 +53,4 @@ # libraryjs | ||
| import { stdio } from '@uoctamika/libraryjs'; | ||
| const { stdio } = require('@uoctamika/libraryjs'); | ||
| const {stdio } = require('@uoctamika/libraryjs'); | ||
| stdio.printf(format: string, ...args: any[]): void; | ||
@@ -104,5 +103,5 @@ | ||
| This function returns no value ("void"). | ||
| This function returns number (int). | ||
| Output is written directly to "stdout" using "process.stdout.write()". | ||
| determine how much outputs is writing into stdout. | ||
@@ -109,0 +108,0 @@ Unlike "console.log()", "printf()" does not automatically append a newline character. To print a new line, explicitly include "\n" in the format string. |
13450
0.65%185
2.21%135
-0.74%