Skip to content

[Feature] Add a function exists() as a wrapper to the deprecated fs.exists() #14

@Sv443

Description

@Sv443

Basically this: https://github.com/Sv443/JokeAPI/blob/version/2.4.0/src/exists.js

fs.exists() was deprecated because its bevahior differed from that of other async Node.js functions. This feature would re-implement fs.exists() by only using the recommended fs.access() and returning the same value as fs.exists() did, a boolean. Additionally, this function uses path.resolve() as an additional measure.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions