MCPcopy Index your code
hub / github.com/lovell/sharp / finished

Function finished

lib/input.mjs:668–677  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

666 if (this._isStreamInput()) {
667 return new Promise((resolve, reject) => {
668 const finished = () => {
669 this._flattenBufferIn();
670 sharp.metadata(this.options, (err, metadata) => {
671 if (err) {
672 reject(is.nativeError(err, stack));
673 } else {
674 resolve(metadata);
675 }
676 });
677 };
678 if (this.writableFinished) {
679 finished();
680 } else {

Callers 1

metadataFunction · 0.85

Calls 1

metadataMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…