@macaksara/wernai
v1.0.8
Published
something useless to colorize your nodejs console...
Downloads
7
Maintainers
Readme
@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>
For now langauge only
id
anden
,id
forIndonesian
,en
forEnglish
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.
Method
auto
- Auto print to console withoutconsole.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!')
manual
- Manually withconsole.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!'))
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:
Auto or Manual with Indonesian Language: