How to use the find-up.exists function in find-up

To help you get started, we’ve selected a few find-up examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github doczjs / docz / core / docz-core / src / bundler / machine / services / exec-dev-command.ts View on Github external
async directory => {
        const hasGatsby = await findUp.exists(
          path.join(directory, 'node_modules', 'gatsby')
        )
        return hasGatsby ? directory : ''
      },
      { type: 'directory' }

find-up

Find a file or directory by walking up parent directories

MIT
Latest version published 8 months ago

Package Health Score

80 / 100
Full package analysis