{"id":16698168,"url":"https://github.com/arlac77/content-entry","last_synced_at":"2025-04-10T02:56:19.243Z","repository":{"id":33774396,"uuid":"161622010","full_name":"arlac77/content-entry","owner":"arlac77","description":"Content entries am files","archived":false,"fork":false,"pushed_at":"2025-04-07T21:28:43.000Z","size":2955,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T21:40:02.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arlac77.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-13T10:22:44.000Z","updated_at":"2025-04-07T21:28:46.000Z","dependencies_parsed_at":"2023-10-14T20:07:39.316Z","dependency_job_id":"e1168145-9cd6-469e-8ac9-32a7f67b0e24","html_url":"https://github.com/arlac77/content-entry","commit_stats":{"total_commits":1270,"total_committers":8,"mean_commits":158.75,"dds":0.2590551181102362,"last_synced_commit":"4689fbc839830b05932f77ee55204c4798277393"},"previous_names":[],"tags_count":131,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Fcontent-entry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Fcontent-entry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Fcontent-entry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Fcontent-entry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arlac77","download_url":"https://codeload.github.com/arlac77/content-entry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247737114,"owners_count":20987713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T17:51:02.628Z","updated_at":"2025-04-10T02:56:19.186Z","avatar_url":"https://github.com/arlac77.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/content-entry.svg)](https://www.npmjs.com/package/content-entry)\n[![License](https://img.shields.io/badge/License-0BSD-blue.svg)](https://spdx.org/licenses/0BSD.html)\n[![Typed with TypeScript](https://flat.badgen.net/badge/icon/Typed?icon=typescript\\\u0026label\\\u0026labelColor=blue\\\u0026color=555555)](https://typescriptlang.org)\n[![bundlejs](https://deno.bundlejs.com/?q=content-entry\\\u0026badge=detailed)](https://bundlejs.com/?q=content-entry)\n[![downloads](http://img.shields.io/npm/dm/content-entry.svg?style=flat-square)](https://npmjs.org/package/content-entry)\n[![GitHub Issues](https://img.shields.io/github/issues/arlac77/content-entry.svg?style=flat-square)](https://github.com/arlac77/content-entry/issues)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Farlac77%2Fcontent-entry%2Fbadge\\\u0026style=flat)](https://actions-badge.atrox.dev/arlac77/content-entry/goto)\n[![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![Known Vulnerabilities](https://snyk.io/test/github/arlac77/content-entry/badge.svg)](https://snyk.io/test/github/arlac77/content-entry)\n[![Coverage Status](https://coveralls.io/repos/arlac77/content-entry/badge.svg)](https://coveralls.io/github/arlac77/content-entry)\n\n## content-entrycontent entries for content containers (aka files)\n\n# API\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n### Table of Contents*   [CollectionEntryMixin](#collectionentrymixin)\n    *   [Parameters](#parameters)\n*   [BaseEntry](#baseentry)\n    *   [Parameters](#parameters-1)\n    *   [Properties](#properties)\n    *   [types](#types)\n    *   [isCollection](#iscollection)\n    *   [isBlob](#isblob)\n    *   [mode](#mode)\n    *   [isEmpty](#isempty)\n    *   [isDeleted](#isdeleted)\n    *   [isExistent](#isexistent)\n    *   [equals](#equals)\n        *   [Parameters](#parameters-2)\n*   [BufferContentEntryMixin](#buffercontententrymixin)\n    *   [Parameters](#parameters-3)\n    *   [Properties](#properties-1)\n*   [BufferContentEntry](#buffercontententry)\n    *   [Parameters](#parameters-4)\n    *   [isEmpty](#isempty-1)\n    *   [size](#size)\n*   [ContentEntry](#contententry)\n    *   [isBlob](#isblob-1)\n    *   [types](#types-1)\n    *   [readStream](#readstream)\n    *   [string](#string)\n    *   [buffer](#buffer)\n    *   [encoding](#encoding)\n    *   [equalsContent](#equalscontent)\n        *   [Parameters](#parameters-5)\n    *   [getReadStream](#getreadstream)\n*   [DeletedContentEntry](#deletedcontententry)\n    *   [isDeleted](#isdeleted-1)\n    *   [isExistent](#isexistent-1)\n*   [EmptyContentEntry](#emptycontententry)\n    *   [string](#string-1)\n    *   [buffer](#buffer-1)\n    *   [readStream](#readstream-1)\n*   [toReadableStream](#toreadablestream)\n    *   [Parameters](#parameters-6)\n*   [ReadableStreamContentEntry](#readablestreamcontententry)\n    *   [Parameters](#parameters-7)\n    *   [Properties](#properties-2)\n*   [StreamContentEntryMixin](#streamcontententrymixin)\n    *   [Parameters](#parameters-8)\n*   [StringContentEntryMixin](#stringcontententrymixin)\n    *   [Parameters](#parameters-9)\n    *   [Properties](#properties-3)\n*   [StringContentEntry](#stringcontententry)\n    *   [Parameters](#parameters-10)\n    *   [Properties](#properties-4)\n    *   [isEmpty](#isempty-2)\n*   [equalsUint8Arrays](#equalsuint8arrays)\n    *   [Parameters](#parameters-11)## CollectionEntryMixinBrings directory attributes to entries.### Parameters*   `superclass` \u0026#x20;## BaseEntryRepresentation of one file or directory entry.\nAll names are absolute (no leading '/') the group seperator is '/'.### Parameters*   `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name inside of the container### Properties*   `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name inside of the container### typesReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\u003c[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\u003e** UTI types### isCollectionReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** false### isBlobReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** false### modeDefault unix mode for files.Returns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 0644### isEmptyReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if there is no content (length := 0).### isDeletedReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if we represent a deleted entry### isExistentReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if we exist### equals#### Parameters*   `other` \u0026#x20;Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\u003c[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)\u003e** true if name, isBlob and isCollection are the same## BufferContentEntryMixinContent entries where a Uint8Array is the primary data representation.### Parameters*   `superclass` \u0026#x20;### Properties*   `buffer` **[Uint8Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)**\u0026#x20;## BufferContentEntry**Extends BufferContentEntryMixin(ContentEntry)**ConentEntry with a Uint8Array as content store.### Parameters*   `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\u0026#x20;\n*   `buffer` **[Uint8Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)**\u0026#x20;### isEmptyReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if buffer length is zero### sizeReturns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** size in bytes## ContentEntry**Extends BaseEntry**General content access entries.### isBlobReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true### typesUTI types for this entry.\ndefaults to \"public.content\".Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\u003c[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\u003e** ### readStreamReturns **any** undefined### stringReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** ### bufferreturn {Uint8Array}### encodingThe default encoding used to convert content to strings.Returns **BufferEncoding** ### equalsContentCompare content against other entry.#### Parameters*   `other` **[ContentEntry](#contententry)**\u0026#x20;Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\u003c[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)\u003e** true if other has the same content (bitwise)### getReadStream**Meta***   **deprecated**: This is deprecated.## DeletedContentEntry**Extends EmptyContentEntry**Represents a deleted entry.### isDeletedWe are always deleted.Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true### isExistentNothing there any more.Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** false## EmptyContentEntry**Extends ContentEntry**Represents a entry without content (content length = 0).### stringReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** ### bufferReturns **[Uint8Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)** zero length buffer### readStreamReturns **ReadableStream** zero length stream.## toReadableStream### Parameters*   `input` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\u0026#x20;Returns **Readable** ## ReadableStreamContentEntry**Extends StreamContentEntryMixin(ContentEntry)**Content entries where a readable stream is the primary data representation.### Parameters*   `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\u0026#x20;\n*   `readStream` **ReadableStream**\u0026#x20;### Properties*   `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\u0026#x20;\n*   `readStream` **ReadableStream**\u0026#x20;## StreamContentEntryMixinContent entries where a stream is the primary data representation.### Parameters*   `superclass` \u0026#x20;## StringContentEntryMixinContent entries where a string is the primary data representation.### Parameters*   `superclass` \u0026#x20;### Properties*   `string` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\u0026#x20;## StringContentEntry**Extends StringContentEntryMixin(ContentEntry)**Content entries where a string is the primary data representation.### Parameters*   `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\u0026#x20;\n*   `value` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\u0026#x20;### Properties*   `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\u0026#x20;\n*   `string` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\u0026#x20;### isEmptyReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if string length is zero## equalsUint8ArraysReturns true if the two passed Uint8Arrays have the same content### Parameters*   `a` **[Uint8Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)**\u0026#x20;\n*   `b` **[Uint8Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)**\u0026#x20;Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if content of a equals b\n\n# install\n\nWith [npm](http://npmjs.org) do:\n\n    ```shell\nnpm install content-entry\n    ```\n\n# license\n\nBSD-2-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farlac77%2Fcontent-entry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farlac77%2Fcontent-entry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farlac77%2Fcontent-entry/lists"}