You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

content-entry

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

content-entry

content entries for content containers (aka files)

2.6.6
Source
npmnpm
Version published
Weekly downloads
4.1K
-49.34%
Maintainers
1
Weekly downloads
 
Created
Source

npm License minified size downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

content-entry

content entries for content containers (aka files)

API

Table of Contents

CollectionEntryMixin

Brings directory attributes to entries.

Parameters

  • superclass

BaseEntry

Representation of one file or directory entry. All names are absolute (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

unixMode

Default unix mode for files

Returns number 0644

isEmpty

Returns boolean true if there is no content

isDeleted

Returns any true if we represent a deleted entry

BufferContentEntryMixin

Content entries where a Buffer is the primary data representation.

Parameters

  • superclass

Properties

BufferContentEntry

Extends BufferContentEntryMixin(ContentEntry)

Parameters

ContentEntry

Extends BaseEntry

General content access entries.

equalsContent

Compare content against other entry.

Parameters

  • other Entry

Returns boolean true if other has the same content (bitwise)

DeletedContentEntry

Extends EmptyContentEntry

Represents a deleted entry.

isDeleted

We are always deleted.

Returns boolean true

EmptyContentEntry

Extends ContentEntry

Represents a entry without content (content length = 0).

getBuffer

Returns Buffer zero length buffer

getReadStream

Returns Readable zero length stream.

ReadableStreamContentEntry

Extends StreamContentEntryMixin(ContentEntry)

Content entries where a readable stream is the primary data representation.

Parameters

  • name string
  • readStream ReadableStream

Properties

  • name string
  • readStream ReadableStream

StreamContentEntryMixin

Content entries where a stream is the primary data representation.

Parameters

  • superclass

StringContentEntryMixin

Content entries where a string is the primary data representation.

Parameters

  • superclass

Properties

StringContentEntry

Extends StringContentEntryMixin(ContentEntry)

Content entries where a string is the primary data representation.

Parameters

Properties

install

With npm do:

npm install content-entry

license

BSD-2-Clause

Keywords

content

FAQs

Package last updated on 24 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts