Repository for 'standard' module (npmjs)
5e65724b1a
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.9.5 to 5.0.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.9.5...v5.0.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.github | ||
src | ||
.gitignore | ||
.npmrc | ||
package.json | ||
README.md | ||
tsconfig.json |
STD
Standard module for NodeJS / TypeScript
import { cin } from '@thundernetworkrad/std';
cin('Question').then((response) => {
console.log(response)
})
import { createCout } from '@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
import { log } from '@thundernetworkrad/std';
log('test') // create a file at the first log, add the string to the log
import { getTime } from '@thundernetworkrad/std';
let time = getTime() // return { year, month, day, hours, minutes, seconds }