简体   繁体   English

节点模块读取所有文件类型的内容

[英]Node Module to read content of all file types

I would like to read the content of files in Node.js.我想阅读 Node.js 中文件的内容。 Files like JS, Docs, PDF, JSON, TXT, etc. Is there any module that can handle all file types reads. JS、Docs、PDF、JSON、TXT 等文件。是否有任何模块可以处理所有文件类型的读取。 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 .我建议你使用模块 fs, https://www.npmjs.com/package/fs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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