How to use the simple-plist.readFile function in simple-plist

To help you get started, we’ve selected a few simple-plist examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cocoadialog / cocoadialog / Scripts / lib / plist.js View on Github external
exports.read = file => new Promise((resolve, reject) => {
  simplePlist.readFile(file, (err, data) => {
    if (err) return reject(err);
    resolve(data);
  });
});
github bytedance / debugtron / src / main / utils.ts View on Github external
return new Promise((resolve, reject) => {
    readPlist(path, (error: any, data: MacosAppInfo) => {
      if (error) {
        reject(error)
      } else {
        resolve(data)
      }
    })
  })
}
github oliverschwendener / ueli / src / main / plugins / application-search-plugin / mac-os-app-icon-generator.ts View on Github external
return new Promise((resolve, reject) => {
        plist.readFile(join(applicationFilePath, "Contents", "Info.plist"), (err: string, data: any) => {
            if (err) {
                reject(err);
            } else {
                resolve(data);
            }
        });
    });
}

simple-plist

A wrapper utility for interacting with plist data.

MIT
Latest version published 3 years ago

Package Health Score

65 / 100
Full package analysis