Repository for 'standard' module (npmjs)
Find a file
Killer Boss Original 4e34575033 2023.01.28-2
2023-01-28 20:22:02 +00:00
.github Create dependabot.yml 2023-01-28 19:30:19 +01:00
src 2023.01.28 2023-01-28 18:09:31 +00:00
.gitignore typescript rewrite 2023-01-26 21:18:14 +00:00
.npmrc 0.0.1 2022-11-02 19:48:49 +01:00
index.ts typescript rewrite 2023-01-26 21:18:14 +00:00
package.json 2023.01.28-2 2023-01-28 20:22:02 +00:00
README.md Update README.md 2023-01-28 19:16:48 +01:00
tsconfig.json typescript rewrite 2023-01-26 21:18:14 +00:00

STD

Standard module for NodeJS / TypeScript

Note: TypeScript support is in testing

const { cin } = require('@thundernetworkrad/std');
cin('Question').then((response) => {
    console.log(response)
})
const { createCout } = require('@thundernetworkrad/std');

let ccout = new createCout(0, true); // debugLevel, logs enabled (file) (like using log() )

let cout = ccout.cout;

cout('test', 0) // console.log day, time and the string, if the number is >= to the debugLevel
const { log } = require('@thundernetworkrad/std');

log('test') // create a file at the first log, add the string to the log
const { getTime } = require('@thundernetworkrad/std');

let time = getTime() // return { year, month, day, hours, minutes, seconds }