# craydent-fs

> Node module to extend fs functionality and simplify code for maintainability and readability

Latest version **1.0.2** (published 2024-09-20) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2024-09-20 |
| First published | 2018-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 36 |
| Unpacked size | 51 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Clark Inada |
| Maintainers | craydent |
| Keywords | craydent, es6, file, fs, jquery, library, require, require directory, sugar, utilities |

## Links

- npm: https://www.npmjs.com/package/craydent-fs
- Repository: https://github.com/craydent/Node-Library
- Homepage: https://github.com/craydent/Node-Library/tree/master/modules/typeof
- Issues: https://github.com/craydent/Node-Library/issues
- npm.io page: https://npm.io/package/craydent-fs

## Dependencies (36)

- [craydent.link](https://npm.io/package/craydent.link.md) 1.0.2
- [craydent.open](https://npm.io/package/craydent.open.md) 1.0.2
- [craydent.read](https://npm.io/package/craydent.read.md) 1.0.2
- [craydent.stat](https://npm.io/package/craydent.stat.md) 1.0.2
- [craydent.chmod](https://npm.io/package/craydent.chmod.md) 1.0.2
- [craydent.chown](https://npm.io/package/craydent.chown.md) 1.0.2
- [craydent.close](https://npm.io/package/craydent.close.md) 1.0.2
- [craydent.fstat](https://npm.io/package/craydent.fstat.md) 1.0.2
- [craydent.fsync](https://npm.io/package/craydent.fsync.md) 1.0.2
- [craydent.lstat](https://npm.io/package/craydent.lstat.md) 1.0.2
- [craydent.mkdir](https://npm.io/package/craydent.mkdir.md) 1.0.2
- [craydent.rmdir](https://npm.io/package/craydent.rmdir.md) 1.0.2
- [craydent.write](https://npm.io/package/craydent.write.md) 1.0.2
- [craydent.access](https://npm.io/package/craydent.access.md) 1.0.2
- [craydent.fchmod](https://npm.io/package/craydent.fchmod.md) 1.0.2
- [craydent.fchown](https://npm.io/package/craydent.fchown.md) 1.0.2
- [craydent.lchmod](https://npm.io/package/craydent.lchmod.md) 1.0.2
- [craydent.lchown](https://npm.io/package/craydent.lchown.md) 1.0.2
- [craydent.rename](https://npm.io/package/craydent.rename.md) 1.0.2
- [craydent.unlink](https://npm.io/package/craydent.unlink.md) 1.0.2
- [craydent.utimes](https://npm.io/package/craydent.utimes.md) 1.0.2
- [craydent.futimes](https://npm.io/package/craydent.futimes.md) 1.0.2
- [craydent.include](https://npm.io/package/craydent.include.md) 1.0.2
- [craydent.mkdtemp](https://npm.io/package/craydent.mkdtemp.md) 1.0.2
- [craydent.readdir](https://npm.io/package/craydent.readdir.md) 1.0.2
- [craydent.symlink](https://npm.io/package/craydent.symlink.md) 1.0.2
- [craydent.copyfile](https://npm.io/package/craydent.copyfile.md) 1.0.2
- [craydent.readfile](https://npm.io/package/craydent.readfile.md) 1.0.2
- [craydent.readlink](https://npm.io/package/craydent.readlink.md) 1.0.2
- [craydent.realpath](https://npm.io/package/craydent.realpath.md) 1.0.2
- [craydent.truncate](https://npm.io/package/craydent.truncate.md) 1.0.2
- [craydent.fdatasync](https://npm.io/package/craydent.fdatasync.md) 1.0.2
- [craydent.ftruncate](https://npm.io/package/craydent.ftruncate.md) 1.0.2
- [craydent.globalize](https://npm.io/package/craydent.globalize.md) 1.0.2
- [craydent.writefile](https://npm.io/package/craydent.writefile.md) 1.0.2
- [craydent.appendfile](https://npm.io/package/craydent.appendfile.md) 1.0.2

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2024-09-20
- 1.0.1 — 2024-08-30
- 1.0.0 — 2024-08-23
- 0.15.2 — 2022-08-19
- 0.15.1 — 2022-08-17
- 0.15.0 — 2022-08-16
- 0.14.0 — 2022-08-15
- 0.13.5 — 2021-09-16
- 0.13.4 — 2021-08-09
- 0.13.3 — 2021-08-08
- 0.13.2 — 2021-08-07
- 0.13.1 — 2021-08-04
- 0.13.0 — 2021-07-15
- 0.12.3 — 2021-07-15
- 0.12.2 — 2021-07-15
- … 22 more at https://npm.io/package/craydent-fs/versions

## README

<img src="http://craydent.com/JsonObjectEditor/img/svgs/craydent-logo.svg" width=75 height=75/>

# Craydent 1.0.2
**by Clark Inada**

Craydent is all inclusive utility library.  There are several ways to use the library in NodeJS.
More detailed documentation on constants can be found at [Craydent Properties](http://www.craydent.com/JsonObjectEditor/docs.html#/property/CraydentNode).
More detailed documentation on methods can be found at [Craydent Methods](http://www.craydent.com/JsonObjectEditor/docs.html#/method/CraydentNode)

```js
// require with prototypes - this require will add prototypes to extend classes and add two constants ($c, $g) to the global space.
// $g is an alias to global and $c is the constant containing all the utility methods and properties.
require('craydent-fs');
$c.logit($c.VERSION);
arr.prototypedMethod(args);
```

```js
// require no conflict - this require is the fully modular version with no global constants, prototypes, or methods.
var $c = require('craydent-fs/noConflict');
$c.logit($c.VERSION);
$c.prototypedMethod(arr, args);
```

```js
// require global - this require constants and methods in the global space and add prototypes to extend classes.
// $g is an alias to global and $c is the constant containing all the utility methods and properties.
require('craydent-fs/global');
logit($c.VERSION);
arr.prototypedMethod(args);
```

## Categories

* [Constants](#markdown-header-constants)
* [FS](#markdown-header-fs)

<a name='markdown-header-constants'></a>
## Constants

| | | |
| ----- | ----- | ----- |
| CONSOLE_COLORS (Object) |LOCAL_IP (String) |TEMPLATE_TAG_CONFIG (Object) |
DEBUG_MODE (Boolean) |MODULES_LOADED (Object) |TEMPLATE_VARS (Array) |
ERROR_TYPES (Array) |PUBLIC_IP (String) |VERSION (String) |
HTTP_STATUS_TEMPLATE (Object) |RESPONSES (Object) |


## Methods

<a name='markdown-header-fs'></a>
## FS

*** 
#### _access_ 
***

**Info:** (Depricated) A promisified version of access.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _appendFile_ 
***

**Info:** (Depricated) A promisified version of appendFile.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _chmod_ 
***

**Info:** (Depricated) A promisified version of chmod.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _chown_ 
***

**Info:** (Depricated) A promisified version of chown.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _close_ 
***

**Info:** (Depricated) A promisified version of close.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _copyFile_ 
***

**Info:** (Depricated) A promisified version of copyFile.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _fchmod_ 
***

**Info:** (Depricated) A promisified version of fchmod.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _fchown_ 
***

**Info:** (Depricated) A promisified version of fchown.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _fdatasync_ 
***

**Info:** (Depricated) A promisified version of fdatasync.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _fstat_ 
***

**Info:** (Depricated) A promisified version of fstat.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | fs.Stats)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _fsync_ 
***

**Info:** (Depricated) A promisified version of fsync.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _ftruncate_ 
***

**Info:** (Depricated) A promisified version of ftruncate.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _futimes_ 
***

**Info:** (Depricated) A promisified version of futimes.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _lchmod_ 
***

**Info:** (Depricated) A promisified version of lchmod.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _lchown_ 
***

**Info:** (Depricated) A promisified version of lchown.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _link_ 
***

**Info:** (Depricated) A promisified version of link.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _lstat_ 
***

**Info:** (Depricated) A promisified version of lstat.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | fs.Stats)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _mkdir_ 
***

**Info:** (Depricated) A promisified version of mkdir.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _mkdtemp_ 
***

**Info:** (Depricated) A promisified version of mkdtemp.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _open_ 
***

**Info:** (Depricated) A promisified version of open.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | number)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _read_ 
***

**Info:** (Depricated) A promisified version of read.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | FSByteData<TBuffer>)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _readFile_ 
***

**Info:** (Depricated) A promisified version of readFile.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | string | Buffer)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _readdir_ 
***

**Info:** (Depricated) A promisified version of readdir.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | string[] | Buffer[] | fs.Dirent[])

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _readlink_ 
***

**Info:** (Depricated) A promisified version of readlink.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | string | Buffer)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _realpath_ 
***

**Info:** (Depricated) A promisified version of realpath.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | string | Buffer)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _rename_ 
***

**Info:** (Depricated) A promisified version of rename.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _rmdir_ 
***

**Info:** (Depricated) A promisified version of rmdir.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _stat_ 
***

**Info:** (Depricated) A promisified version of stat.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | fs.Stats)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _symlink_ 
***

**Info:** (Depricated) A promisified version of symlink.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _truncate_ 
***

**Info:** (Depricated) A promisified version of truncate.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _unlink_ 
***

**Info:** (Depricated)A promisified version of unlink.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _utimes_ 
***

**Info:** (Depricated) A promisified version of utimes.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _write_ 
***

**Info:** (Depricated) A promisified version of write.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None

*** 
#### _writeFile_ 
***

**Info:** (Depricated) A promisified version of writeFile.  The arguments are the same as the native fs methods minus the callback.

**Return:** (NodeJS.ErrnoException | void)

**Parameters:**

>None

**Overloads:**

>None




## Download

 * [GitHub](https://github.com/craydent/node-library/modules/fs)
 * [BitBucket](https://bitbucket.org/craydent/node-library/modules/fs)
 * [GitLab](https://gitlab.com/craydent/node-library/modules/fs)
Craydent is released under the [Dual licensed under the MIT or GPL Version 2 licenses](http://craydent.com/license).<br>

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