Repository for 'standard' module (npmjs)
.github/workflows | ||
src | ||
.gitignore | ||
.npmrc | ||
index.ts | ||
package.json | ||
README.md | ||
tsconfig.json |
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 }