@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});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @does/exist

      Weekly Downloads

      979

      Version

      1.1.0

      License

      MIT

      Unpacked Size

      1.42 kB

      Total Files

      3

      Last publish

      Collaborators

      • omrilotan