content-entry
content entries for content containers (aka files)
API
Table of Contents
BaseEntry
Representation of one file or directory entry
All names are asolute (no leading '/') the group seperator is '/'
Parameters
name
string name inside of the container
Properties
name
string name inside of the container
getTypes
Returns Array<string> UTI types
CollectionEntryMixin
brings directory attributes to entries
Parameters
EmptyContentEntry
Extends ContentEntry
represents a entry without content (content length = 0)
ContentEntry
Extends BaseEntry
general content access entries
equalsContent
compare content against other entry
Parameters
Returns boolean true if other has the same content (bitwise)
BufferContentEntryMixin
Content entries where a Buffer is the primary data representation
Parameters
Properties
defaultStringOptions
Content entries where a stream is the primary data representation
StringContentEntryMixin
Content entries where a string is the primary data representation
Parameters
Properties
ReadableStreamContentEntry
Extends StreamContentEntryMixin(ContentEntry)
Content entries where a readable stream is the primary data representation
Parameters
name
stringreadStream
ReadableStream
Properties
name
stringreadStream
ReadableStream
StringContentEntry
Extends StringContentEntryMixin(ContentEntry)
Content entries where a string is the primary data representation
Parameters
Properties
FileSystemEntry
Extends StreamContentEntryMixin(ContentEntry)
A content entry backed by a file
Parameters
filename
absolute file path
install
With npm do:
npm install content-entry
license
BSD-2-Clause