fs.exists, fs.existsSync - why are they deprecated?

前端 未结 7 590
遥遥无期
遥遥无期 2021-01-07 20:06

I noticed that the official node documentation says something startling about fs.exists:

\"fs.exists() is an anachronism and exists only

7条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-07 20:27

    You can use new install for this one and continue to use it:
    https://github.com/imyller/node-fs-exists-nodeback

    npm install fs-exists-nodeback
    

提交回复
热议问题