All Projects → jonschlinkert → is-directory

jonschlinkert / is-directory

Licence: MIT license
Extends `stats.isDirectory()`, returns `true` if a filepath is a directory.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to is-directory

Fdir
⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s
Stars: ✭ 777 (+2675%)
Mutual labels:  directory, fs
readdir
Recursively read a directory, blazing fast. Use with picomatch or micromatch to match globs.
Stars: ✭ 37 (+32.14%)
Mutual labels:  directory, fs
unionfs
Use multiple fs modules at once
Stars: ✭ 170 (+507.14%)
Mutual labels:  fs
webpack-bundle-delta
Get insights into your webpack v4 bundles as early as possible.
Stars: ✭ 17 (-39.29%)
Mutual labels:  stats
cli-corona
📈 Track COVID-19 (2019 novel Coronavirus) statistics via the command line.
Stars: ✭ 14 (-50%)
Mutual labels:  stats
webpack-shower
🚿 Clean up, Arrange, Filter Webpack Stats
Stars: ✭ 12 (-57.14%)
Mutual labels:  stats
glob-fs
file globbing for node.js. speedy and powerful alternative to node-glob. This library is experimental and does not work on windows!
Stars: ✭ 54 (+92.86%)
Mutual labels:  fs
ovrstat
🎮 An Unofficial Overwatch Stats API
Stars: ✭ 96 (+242.86%)
Mutual labels:  stats
node-fs
node-fs
Stars: ✭ 55 (+96.43%)
Mutual labels:  fs
MeowDB.js
Database in JSON (Node.JS Library)
Stars: ✭ 12 (-57.14%)
Mutual labels:  fs
odcrawler-frontend
A frontend for ODCrawler, an Open Directory search engine.
Stars: ✭ 20 (-28.57%)
Mutual labels:  directory
probes-rs
Rust library to read out system stats from a machine running Unix
Stars: ✭ 14 (-50%)
Mutual labels:  stats
upmail
Email notification hook for https://github.com/sourcegraph/checkup.
Stars: ✭ 62 (+121.43%)
Mutual labels:  stats
sharannyobasu
Sharannyo Basu's profile
Stars: ✭ 13 (-53.57%)
Mutual labels:  stats
go-storage
A vendor-neutral storage library for Golang: Write once, run on every storage service.
Stars: ✭ 387 (+1282.14%)
Mutual labels:  fs
sandboxed-fs
Sandboxed Wrapper for Node.js File System API
Stars: ✭ 41 (+46.43%)
Mutual labels:  fs
framestack
Tools, Frameworks & Libraries to help you build your projects ✨
Stars: ✭ 27 (-3.57%)
Mutual labels:  directory
about-time
A cool helper for tracking time and throughput of code blocks, with beautiful human friendly renditions.
Stars: ✭ 36 (+28.57%)
Mutual labels:  stats
trezorLuks
A wrapper around "cryptsetup" to use a key from a Trezor device instead of a password
Stars: ✭ 20 (-28.57%)
Mutual labels:  fs
org-stats
Get the contributor stats summary from all repos of any given organization
Stars: ✭ 151 (+439.29%)
Mutual labels:  stats

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

Related projects

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].