appcd-fs

Library of useful filesystem functions.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
appcd-fs
2.1.22 years ago6 years agoMinified + gzip package size for appcd-fs in KB

Readme

appcd-fs
Library of useful filesystem functions.
Visit https://github.com/appcelerator/appc-daemon for more information.
Report issues to GitHub issues2. Official issue tracker in JIRA3.

Installation

npm i appcd-fs

Usage

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 v21 and is developed by Axway, Inc and the community. Please read the LICENSE1 file included in this distribution for more information.