nodejs_io_uring
Advanced tools
| hello worldyeah! |
| const { FileReader } = require('../FileReader'); | ||
| const fs = require('fs'); | ||
| const fd = fs.openSync('./1.txt'); | ||
| const fileRead = new FileReader({fd}); | ||
| fileRead.on('data', (buffer) => { | ||
| console.log(buffer.toString("utf-8")); | ||
| }) |
| const { FileWriter } = require('../FileWriter'); | ||
| const fs = require('fs'); | ||
| const fd = fs.openSync('./1.txt', 'w'); | ||
| const fileWrite = new FileWriter({fd}); | ||
| fileWrite.write("hello world", () => {console.log(111)}); | ||
| fileWrite.write("yeah!", () => {console.log(111)}); | ||
+2
-2
| { | ||
| "name": "nodejs_io_uring", | ||
| "version": "1.0.6", | ||
| "version": "1.0.7", | ||
| "description": "", | ||
@@ -17,3 +17,3 @@ "main": "FileReader.js", | ||
| ], | ||
| "files": ["liburing.h","liburing/barrier.h", "liburing/compat.h", "liburing/io_uring.h","README.md","io_uring.cc", "FileReader.js", "binding.gyp", "test.js", "liburing.a", "1.txt"], | ||
| "files": ["test", "liburing.h","liburing/barrier.h", "liburing/compat.h", "liburing/io_uring.h","README.md","io_uring.cc", "FileReader.js", "binding.gyp", "test.js", "liburing.a", "1.txt"], | ||
| "author": "gc", | ||
@@ -20,0 +20,0 @@ "license": "ISC", |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
164764
0.32%14
27.27%38
52%2
Infinity%