Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

is-directory

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Issues
File Explorer

Advanced tools

is-directory

Returns true if a filepath exists on the file system and it's directory.

    0.3.1latest

Version published
Maintainers
1
Weekly downloads
8,127,484
decreased by-9.86%

Weekly downloads

Readme

Source

is-directory NPM version NPM downloads Build Status

Returns true if a filepath exists on the file system and it's directory.

Install

Install with npm:

$ npm install is-directory --save

Usage

var isDirectory = require('is-directory'); isDirectory('node_modules', function(err, dir) { if (err) throw err; console.log(dir); //=> true }); isDirectory.sync('README.md'); //=> false

You might also be interested in these projects:

  • is-absolute: Polyfill for node.js path.isAbolute. Returns true if a file path is absolute. | homepage
  • is-glob: Returns true if the given string looks like a glob pattern or an extglob pattern.… more | homepage
  • is-relative: Returns true if the path appears to be relative. | homepage

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

Generate readme and API documentation with verb:

$ npm install verb && npm run docs

Or, if verb is installed globally:

$ verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb, v0.9.0, on May 21, 2016.

Keywords

FAQs

What is is-directory?

Returns true if a filepath exists on the file system and it's directory.

Is is-directory popular?

The npm package is-directory receives a total of 7,763,556 weekly downloads. As such, is-directory popularity was classified as popular.

Is is-directory well maintained?

We found that is-directory demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 21 May 2016

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc