UNPKG

977 BJavaScriptView Raw
1var __importDefault = (this && this.__importDefault) || function (mod) {
2 return (mod && mod.__esModule) ? mod : { "default": mod };
3};
4(function (factory) {
5 if (typeof module === "object" && typeof module.exports === "object") {
6 var v = factory(require, exports);
7 if (v !== undefined) module.exports = v;
8 }
9 else if (typeof define === "function" && define.amd) {
10 define(["require", "exports", "bplist-creator", "fs"], factory);
11 }
12})(function (require, exports) {
13 "use strict";
14 Object.defineProperty(exports, "__esModule", { value: true });
15 exports.writeBinaryFileSync = void 0;
16 var bplist_creator_1 = __importDefault(require("bplist-creator"));
17 var fs_1 = __importDefault(require("fs"));
18 function writeBinaryFileSync(aFile, anObject, options) {
19 return fs_1.default.writeFileSync(aFile, (0, bplist_creator_1.default)(anObject), options);
20 }
21 exports.writeBinaryFileSync = writeBinaryFileSync;
22});