MCPcopy Create free account
hub / github.com/TruthHun/BookStack / prepareFileAttrs

Function prepareFileAttrs

static/word2md/mammoth.browser.js:12854–12864  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

12852 * @return {Object} the complete set of options.
12853 */
12854var prepareFileAttrs = function(o) {
12855 o = o || {};
12856 if (o.base64 === true && (o.binary === null || o.binary === undefined)) {
12857 o.binary = true;
12858 }
12859 o = extend(o, defaults);
12860 o.date = o.date || new Date();
12861 if (o.compression !== null) o.compression = o.compression.toUpperCase();
12862
12863 return o;
12864};
12865
12866/**
12867 * Add a file in the current folder.

Callers 1

fileAddFunction · 0.70

Calls 1

extendFunction · 0.70

Tested by

no test coverage detected