1.0.0 • Published 5 years ago

short-pla v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

Short-pla

Super simple to use

Installing:

Installation via npm: npm i short-pla --s

Usage

const { print, prompt, arg} = require('short-pla');

Console.log

//Before
console.log('hello world')
//Now
print('hello world')

Prompt

Usage:

prompt(message, default, (ans)=>{// body...})

Example

prompt('How are you today?', 'fine', (ans) => {
	print(ans)
})
//Or without a default
prompt('How are you today?', (ans) => {
	print(ans)
})

arg

Usage:

if (arg)
	print(arg)