@macaksara/wernai

1.0.8 • Public • Published

@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

Dependents (2)

Package Sidebar

Install

npm i @macaksara/wernai

Weekly Downloads

0

Version

1.0.8

License

MIT

Unpacked Size

11.4 kB

Total Files

5

Last publish

Collaborators

  • jastinlt