简体   繁体   中英

Node Module to read content of all file types

I would like to read the content of files in Node.js. Files like JS, Docs, PDF, JSON, TXT, etc. Is there any module that can handle all file types reads. As from content, I would like to fetch some keywords and do certain operations.

I suggest you use the module fs, https://www.npmjs.com/package/fs .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM