JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6744023
  • Score
    100M100P100Q206393F

Extends `stats.isDirectory()`, returns `true` if a filepath is a directory.

Package Exports

  • is-directory

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-directory) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-directory NPM version

Extends stats.isDirectory(), returns true if a filepath is a directory.

Install

Install with npm:

npm i is-directory --save-dev

Run tests

npm test

Usage

var isDir = require('is-directory');

isDir('README.md');
//=> 'false'
isDir('test');
//=> 'true'


function isFile(filepath) {
  return !isDir(filepath);
}
isFile('README.md');
//=> true

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert
Released under the MIT license


This file was generated by verb on November 17, 2014.