Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

readfilesync buffer

const fs = require('fs');

const buf = fs.readFileSync('./package.json');
buf instanceof Buffer; // true

buf; // '<Buffer 7b 0a 20 20 22 6e 61 6d 65 22 ...>'
Source by masteringjs.io #
 
PREVIOUS NEXT
Tagged: #readfilesync #buffer
ADD COMMENT
Topic
Name
7+8 =