1.0.0 • Published 5 years ago
short-pla v1.0.0
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)
1.0.0
5 years ago