# tower-fs

> ## Install

Latest version **0.5.0-pre2** (published 2013-06-02) · 0 weekly downloads

## Install

```sh
npm install tower-fs
pnpm add tower-fs
yarn add tower-fs
bun add tower-fs
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.0-pre2 |
| Published | 2013-06-02 |
| First published | 2013-03-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | viatropos |

## Links

- npm: https://www.npmjs.com/package/tower-fs
- npm.io page: https://npm.io/package/tower-fs

## Dependencies (3)

- [gaze](https://npm.io/package/gaze.md) ~0.3.2
- [glob](https://npm.io/package/glob.md) ~3.1.13
- [wrench](https://npm.io/package/wrench.md) ~1.4.4

## Recent versions

- 0.5.0-pre2 (latest) — 2013-06-02
- 0.5.0-pre — 2013-03-05

## README

# Node.js File System Helpers

## Install

Node:

```
npm install tower-fs
```

## Quick Start

``` javascript
var tfs = require('tower-fs');

// general
tfs.glob
tfs.globSync
tfs.absolutePath
tfs.relativePath
tfs.dirname
tfs.basename
tfs.exists
tfs.existsSync
tfs.isFile
tfs.isFileSync
tfs.isDirectory
tfs.isDirectorySync
tfs.chmod
tfs.chmodSync
tfs.join
tfs.watch
tfs.stat
tfs.statSync
tfs.createReadStream
tfs.createWriteStream
tfs.pathSeparator
tfs.pathSeparatorPattern
// files
tfs.readFile // tfs.createFile
tfs.readFileSync // tfs.createFileSync
tfs.writeFile
tfs.writeFileSync
tfs.removeFile
tfs.removeFileSync
tfs.copyFile
tfs.copyFileSync
// directories (will fail if trying to create nested directories)
tfs.createDirectory
tfs.createDirectorySync
tfs.removeDirectory
tfs.removeDirectorySync
// use this to create nested directories
tfs.createDirectoryRecursive
tfs.createDirectoryRecursiveSync
tfs.copyDirectoryRecursive
tfs.copyDirectoryRecursiveSync
tfs.removeDirectoryRecursive
tfs.removeDirectoryRecursiveSync
tfs.readDirectoryRecursive
tfs.readDirectoryRecursiveSync
// checksum
tfs.fileDigest
tfs.pathWithDigest
tfs.pathWithoutDigest
```

TODO: symlinks

## Why?

Because the Node.js `fs` is incomplete and requires piecing together several libraries to get full functionality. This module encapsulates complete `fs` functionality.

## Licence

MIT

---
_Source: https://npm.io/package/tower-fs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
