UNPKG

1.94 kBJavaScriptView 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", "bplist-parser", "./parse", "./readFile", "./readFileSync", "./stringify", "./writeBinaryFile", "./writeBinaryFileSync", "./writeFile", "./writeFileSync"], factory);
11 }
12})(function (require, exports) {
13 "use strict";
14 Object.defineProperty(exports, "__esModule", { value: true });
15 var bplist_creator_1 = __importDefault(require("bplist-creator"));
16 var bplist_parser_1 = __importDefault(require("bplist-parser"));
17 var parse_1 = require("./parse");
18 var readFile_1 = require("./readFile");
19 var readFileSync_1 = require("./readFileSync");
20 var stringify_1 = require("./stringify");
21 var writeBinaryFile_1 = require("./writeBinaryFile");
22 var writeBinaryFileSync_1 = require("./writeBinaryFileSync");
23 var writeFile_1 = require("./writeFile");
24 var writeFileSync_1 = require("./writeFileSync");
25 // "modern" named exports
26 var SimplePlist = {
27 bplistCreator: bplist_creator_1.default,
28 bplistParser: bplist_parser_1.default,
29 parse: parse_1.parse,
30 readFile: readFile_1.readFile,
31 readFileSync: readFileSync_1.readFileSync,
32 stringify: stringify_1.stringify,
33 writeBinaryFile: writeBinaryFile_1.writeBinaryFile,
34 writeBinaryFileSync: writeBinaryFileSync_1.writeBinaryFileSync,
35 writeFile: writeFile_1.writeFile,
36 writeFileSync: writeFileSync_1.writeFileSync,
37 };
38 exports.default = SimplePlist;
39 // preserve backwards compatibility
40 module.exports = SimplePlist;
41});