readme update

This commit is contained in:
Killer Boss Original 2023-01-28 20:32:18 +00:00
parent 4e34575033
commit d6614242cb

View file

@ -5,14 +5,14 @@ Standard module for NodeJS / TypeScript
Note: TypeScript support is in testing Note: TypeScript support is in testing
```js ```js
const { cin } = require('@thundernetworkrad/std'); import { cin } from '@thundernetworkrad/std';
cin('Question').then((response) => { cin('Question').then((response) => {
console.log(response) console.log(response)
}) })
``` ```
```js ```js
const { createCout } = require('@thundernetworkrad/std'); import { createCout } from '@thundernetworkrad/std';
let ccout = new createCout(0, true); // debugLevel, logs enabled (file) (like using log() ) let ccout = new createCout(0, true); // debugLevel, logs enabled (file) (like using log() )
@ -22,13 +22,13 @@ cout('test', 0) // console.log day, time and the string, if the number is >= to
``` ```
```js ```js
const { log } = require('@thundernetworkrad/std'); import { log } from '@thundernetworkrad/std';
log('test') // create a file at the first log, add the string to the log log('test') // create a file at the first log, add the string to the log
``` ```
```js ```js
const { getTime } = require('@thundernetworkrad/std'); import { getTime } from '@thundernetworkrad/std';
let time = getTime() // return { year, month, day, hours, minutes, seconds } let time = getTime() // return { year, month, day, hours, minutes, seconds }
``` ```