native-console

Print text on screen and read string from keyboard

Usage no npm install needed!

<script type="module">
  import nativeConsole from 'https://cdn.skypack.dev/native-console';
</script>

README

How to install

$ npm install native-console

How to use

//To import module
var c = require("native-console");

//To write
c.write("Hello World!");

//To read from keyboard
var input = c.read();

Example

var c = require("native-console");
c.write("Write something: ");
var text = c.read();
c.write("You wrote: "+text);