Need private packages and team management tools?Check out npm Teams »

@does/exist

1.1.0 • Public • Published

@does/exist

Check if a file exists and is writeable

const exist = require('@does/exist');
 
const fileExists = await exist(join(__dirname, 'index.js'));

Options

quiet: false (default is true)

Will log error messages when trying to access a file that's not there

await exist(path, {quiet: false});

Install

npm i @does/exist

DownloadsWeekly Downloads

2,450

Version

1.1.0

License

MIT

Unpacked Size

1.42 kB

Total Files

3

Last publish

Collaborators

  • avatar