Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.
/ wernai Public archive

something useless to colorize your nodejs console...

License

Notifications You must be signed in to change notification settings

Macaksara/wernai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@macaksara/wernai

something useless to colorize your nodejs console...

Instalation

npm i @macaksara/wernai

Example Usage

You can define with require('@macaksara/wernai').method.language

require('@macaksara/wernai').<auto | manual>.<id | en>

Click me to See available method

For now langauge only id and en, id for Indonesian, en for English

const werna = require('@macaksara/wernai').auto.en // auto print to console with English language

werna.success('this is message!')

Output of the Example Usage above.

default

Method

  • auto - Auto print to console without console.log in your code.
require('@macaksara/wernai').auto.en
// or
require('@macaksara/wernai').auto.id
const werna = require('@macaksara/wernai').auto.en

werna.success('this is success message!')
werna.error('this is error message!')
werna.info('this is info message!')
werna.warn('this is warn message!')
const werna = require('@macaksara/wernai').auto.id

werna.success('ini pesan sukses!')
werna.error('ini pesan eror!')
werna.info('ini pesan info!')
werna.warn('ini pesan peringatan!')

showcase the all example output

  • manual - Manually with console.log in your code to print to console.
require('@macaksara/wernai').manual.en
// or
require('@macaksara/wernai').manual.id
const werna = require('@macaksara/wernai').manual.en

console.log(werna.success('this is success message!'))
console.log(werna.error('this is error message!'))
console.log(werna.info('this is info message!'))
console.log(werna.warn('this is warn message!'))
const werna = require('@macaksara/wernai').manual.id

console.log(werna.success('ini pesan sukses!'))
console.log(werna.error('ini pesan eror!'))
console.log(werna.info('ini pesan info!'))
console.log(werna.warn('ini pesan peringatan!'))

showcase the all example output

Function

to see all the output of the all function you can go to the showcase section.

  • <werna>.success('message') - Success indicator.
  • <werna>.error('message') - Error indicator.
  • <werna>.info('message') - Info indicator.
  • <werna>.warn('message') - Warning indicator.

Showcase

  • Auto or Manual with English Language:

showcaseen

  • Auto or Manual with Indonesian Language:

showcaseen

About

something useless to colorize your nodejs console...

Resources

License

Stars

Watchers

Forks

Releases

No releases published