npm.io
1.1.0 • Published 6 years ago

cstdio

Licence
MIT
Version
1.1.0
Deps
2
Size
5 kB
Vulns
1
Weekly
0

node-cstdio

Implementation for C language's stdio for node.js

​

Install

npm i cstdio

​

Api

printf
printf(format, ...args);

​

fprintf
fprintf(write_stream, format, ...args);

​

sprintf
sprintf(format, ...args);

​

scanf
scanf(format, ...args);

​

sscanf
scanf(buffer, format, ...args);

​

doc

See the following packages

​

Example

Hello, world!
const cstdio = require('cstdio');

cstdio.printf('Hello, world!');

​

Scan and print
const cstdio = require('cstdio');

const input = cstdio.scanf("%s");
cstdio.printf("input is %s", input);

Keywords