Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

cstdio

araxsiyual21MIT1.1.0

Implementation for C language's stdio for node.js

C, IO, printf, scanf

readme

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);