mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
read_stdin_to_string.js
This commit is contained in:
6
rootfs_overlay/lkmc/nodejs/read_stdin_to_string.js
Executable file
6
rootfs_overlay/lkmc/nodejs/read_stdin_to_string.js
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
// https://cirosantilli.com/linux-kernel-module-cheat#node-js
|
||||
|
||||
const fs = require('fs');
|
||||
console.log(fs.readFileSync(0, 'utf8'));
|
||||
Reference in New Issue
Block a user