Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

content-entry

Package Overview
Dependencies
Maintainers
1
Versions
130
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.2.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.7K
increased by100.66%
Maintainers
1
Weekly downloads
 
Created
Source

npm Greenkeeper semantic-release styled with prettier Build Status codecov.io Known Vulnerabilities GitHub Issues Dependency Status devDependency Status docs downloads Commitizen friendly

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

  • superclass

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
  • other Entry

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

BufferContentEntryMixin

Content entries where a Buffer is the primary data representation

Parameters

  • superclass

Properties

defaultStringOptions

Content entries where a stream is the primary data representation

StringContentEntryMixin

Content entries where a string is the primary data representation

Parameters

  • superclass

Properties

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

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

  • name
  • baseDir

filename

absolute file path

install

With npm do:

npm install content-entry

license

BSD-2-Clause

Keywords

FAQs

Package last updated on 23 Aug 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc