nowcoder-inout-binding

Provide print and readline function on Node.js

Usage no npm install needed!

<script type="module">
  import nowcoderInoutBinding from 'https://cdn.skypack.dev/nowcoder-inout-binding';
</script>

README

nowcoder-inout-binding

Provide print and readline function on Node.js

For the people who use Javascript programming language on the NowCoder website that provides the readline and print function.

为在牛客网上使用 Javascript 语言的小伙伴提供 Node.js 平台上的 readlineprint 方法。

Install

npm install nowcoder-inout-binding --save-dev

Usage

CommonJS

require('nowcoder-inout-binding')

ES6

import 'nowcoder-inout-binding'

readline and print function will be automatically bind on the global object, so that you can call them directly.

readlineprint 方法将自动绑定在 global 对象上,因此直接调用即可。