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

eontententries for content conainers (aka files)

  • 1.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.4K
decreased by-13.12%
Maintainers
1
Weekly downloads
 
Created
Source

npm Greenkeeper semantic-release styled with prettier Build Status codecov.io Coverage Status Known Vulnerabilities GitHub Issues Stories in Ready Dependency Status devDependency Status docs XO code style downloads Commitizen friendly

API

Table of Contents

Entry

Extends BaseEntry

Representation of one file or directory entry All names are asolute (no leading '/') and build with '/'

Parameters

  • name string file name inside of the repository
  • content (string | Buffer | Stream) (optional, default undefined)
  • type string type of the content (optional, default Entry.TYPE_BLOB)
  • mode string file permissions (optional, default "100644")
  • sha string sha of the content

Properties

getString

Deliver content as string

Returns string content

getReadStream

Deliver content as read stream

Returns ReadableStream content

equalsMeta

compare meta info against other entry

Parameters

Returns boolean true if other has the same meta information (name...)

equalsContent

compare content against other entry

Parameters

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

equals

compare against other entry

Parameters

Returns boolean true if other describes the same content

BaseEntry

Representation of one file or directory entry All names are asolute (no leading '/') and build with '/'

Parameters

  • name string file name inside of the repository

Properties

  • name string file name inside of the repository

getTypes

Returns Array<string> UTI types

CollectionEntryMixin

brings Directory attributes to entries

Parameters

  • superclass

EmptyContentEntry

Extends ContentEntryMixin(BaseEntry)

represents a entry without content (content length = 0)

ContentEntryMixin

general content access entries

Parameters

  • superclass

Keywords

FAQs

Package last updated on 17 Dec 2018

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