Package Exports
- appcd-fs
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 (appcd-fs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
appcd-fs
Library of useful filesystem functions.
Visit https://github.com/appcelerator/appc-daemon for more information.
Report issues to GitHub issues. Official issue tracker in JIRA.
Installation
npm i appcd-fsUsage
Generally you would only import the functions you need.
import {
    existsSync,
    isDir,
    isFile,
    locate
} from 'appcd-fs';
console.log(existsSync('/path/to/something'));
console.log(isDir('/path/to/some/dir'));
console.log(isFile('/path/to/some/file'));
// recursively search a directory for a file up to a specified depth
console.log(locate('/path/to/some/dir', 'somefile', 2));Legal
This project is open source under the Apache Public License v2 and is developed by
Axway, Inc and the community. Please read the LICENSE file included
in this distribution for more information.