existsofpath

1.1.0 • Public • Published

existsofpath

build status codecov Code Climate Build status

Get the existing part of a given path, asynchronously.

Usage

'use strict';
const existsOfPath = require('existsofpath');

// If an empty "test" folder exists 
// in the current working directory
let pathToCheck = 'test/some/where/not/there';

existsOfPath(pathToCheck)
  .then((existingPath) => 
    console.log(
      `Path "${existingPath}" exists of given path "${pathToCheck}"`));

Output

Path "test" exists of given path "test/some/where/not/there"

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.02latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.02
1.0.60
1.0.51

Package Sidebar

Install

npm i existsofpath

Weekly Downloads

0

Version

1.1.0

License

MIT

Last publish

Collaborators

  • ecman