my-io-sync

1.0.6 • Public • Published

IOSync

npm version Build Status
This package provides sync IO method for nodejs.

Install

npm install my-io-sync --save-dev

Usage

Import

let {print, println, raw_input, input} = require("my-io-sync");

Output

  • print(...texts) Print texts
  • println(...texts) Print texts and line feed
let {print, println} = require("my-io-sync");
println("Hello world!");
print("Hello world!");

Input

  • raw_input(...texts) Print texts and input(return String value)
  • input(text, transType = "String") Print text and input(return (transType) value)
let {println, raw_input, input} = require("my-io-sync");
let name = raw_input("Name:");
let age = input("Age:", "Number");
println(name, age);

License

MIT license

Readme

Keywords

Package Sidebar

Install

npm i my-io-sync

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

294 kB

Total Files

18

Last publish

Collaborators

  • yhzheng