content-entry-filesystem
TypeScript icon, indicating that this package has built-in type declarations

9.0.10 • Public • Published

npm License Typed with TypeScript bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

Content entries within the file system

API

Table of Contents

FileSystemEntry

Extends StreamContentEntry

A ContentEntry backed by a file.

Parameters

  • name string of the file
  • options
  • baseDir string directory the file is located in

baseDir

Type: string

filename

Absolute file path.

Returns string

isExistent

Check for presence of the entry.

Returns (Promise<boolean> | boolean)

isEmpty

Check is entry represents an empty file.

Returns (Promise<boolean> | boolean)

mode

Returns (number | Promise<number>)

size

Returns (Promise<number> | number)

atime

Returns Promise<Date>

ctime

Returns Promise<Date>

mtime

Returns Promise<Date>

uid

Returns Promise<number>

gid

Returns Promise<number>

writeStream

Returns WritableStream

toJSON

Returns Object

install

With npm do:

```shell

npm install content-entry-filesystem ```

license

BSD-2-Clause

Readme

Keywords

none

Package Sidebar

Install

npm i content-entry-filesystem

Weekly Downloads

2,299

Version

9.0.10

License

0BSD

Unpacked Size

13.3 kB

Total Files

5

Last publish

Collaborators

  • arlac77