How to use bplist-creator - 10 common examples

To help you get started, we’ve selected a few bplist-creator 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 appium / appium-remote-debugger / test / helpers / remote-debugger-server.js View on Github external
send (data) {
    let buf = bplistCreate(data);
    let length = bufferpack.pack('L', [buf.length]);
    this.client.write(Buffer.concat([length, buf]));
  }
}
github LinusU / node-ds-store / lib / entry.js View on Github external
})

      break
    case 'icvp':

      var plistObj = {
        backgroundType: 1,
        backgroundColorRed: new bplist.Real(1),
        backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
      }

      if (opts.rawAlias) {
        plistObj.backgroundType = 2
        plistObj.backgroundImageAlias = opts.rawAlias
      }
github LinusU / node-ds-store / lib / entry.js View on Github external
backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
      }

      if (opts.rawAlias) {
        plistObj.backgroundType = 2
        plistObj.backgroundImageAlias = opts.rawAlias
      }

      dataType = 'bplist'
      blob = bplist(plistObj)

      break
    case 'vSrn':

      dataType = 'long'
github LinusU / node-ds-store / lib / entry.js View on Github external
ShowSidebar: true,
        ShowStatusBar: false,
        ShowTabView: false,
        ShowToolbar: false,
        SidebarWidth: 0,
        WindowBounds:
          '{{' + opt('x') + ', ' + opt('y') + '},' +
          ' {' + opt('width') + ', ' + opt('height') + '}}'
      })

      break
    case 'icvp':

      var plistObj = {
        backgroundType: 1,
        backgroundColorRed: new bplist.Real(1),
        backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
github LinusU / node-ds-store / lib / entry.js View on Github external
WindowBounds:
          '{{' + opt('x') + ', ' + opt('y') + '},' +
          ' {' + opt('width') + ', ' + opt('height') + '}}'
      })

      break
    case 'icvp':

      var plistObj = {
        backgroundType: 1,
        backgroundColorRed: new bplist.Real(1),
        backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
      }

      if (opts.rawAlias) {
github LinusU / node-ds-store / lib / entry.js View on Github external
ShowStatusBar: false,
        ShowTabView: false,
        ShowToolbar: false,
        SidebarWidth: 0,
        WindowBounds:
          '{{' + opt('x') + ', ' + opt('y') + '},' +
          ' {' + opt('width') + ', ' + opt('height') + '}}'
      })

      break
    case 'icvp':

      var plistObj = {
        backgroundType: 1,
        backgroundColorRed: new bplist.Real(1),
        backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
github LinusU / node-ds-store / lib / entry.js View on Github external
ShowTabView: false,
        ShowToolbar: false,
        SidebarWidth: 0,
        WindowBounds:
          '{{' + opt('x') + ', ' + opt('y') + '},' +
          ' {' + opt('width') + ', ' + opt('height') + '}}'
      })

      break
    case 'icvp':

      var plistObj = {
        backgroundType: 1,
        backgroundColorRed: new bplist.Real(1),
        backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
github LinusU / node-ds-store / lib / entry.js View on Github external
backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
      }

      if (opts.rawAlias) {
        plistObj.backgroundType = 2
        plistObj.backgroundImageAlias = opts.rawAlias
      }

      dataType = 'bplist'
      blob = bplist(plistObj)

      break
    case 'vSrn':

      dataType = 'long'
      blob = new Buffer(4)
github LinusU / node-ds-store / lib / entry.js View on Github external
showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
      }

      if (opts.rawAlias) {
        plistObj.backgroundType = 2
        plistObj.backgroundImageAlias = opts.rawAlias
      }

      dataType = 'bplist'
      blob = bplist(plistObj)

      break
    case 'vSrn':

      dataType = 'long'
      blob = new Buffer(4)
github LinusU / node-ds-store / lib / entry.js View on Github external
break
    case 'icvp':

      var plistObj = {
        backgroundType: 1,
        backgroundColorRed: new bplist.Real(1),
        backgroundColorGreen: new bplist.Real(1),
        backgroundColorBlue: new bplist.Real(1),
        showIconPreview: true,
        showItemInfo: false,
        textSize: new bplist.Real(12),
        iconSize: new bplist.Real(opt('iconSize')),
        viewOptionsVersion: 1,
        gridSpacing: new bplist.Real(100),
        gridOffsetX: new bplist.Real(0),
        gridOffsetY: new bplist.Real(0),
        labelOnBottom: true,
        arrangeBy: 'none'
      }

      if (opts.colorComponents) {
        plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
        plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
        plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
      }

      if (opts.rawAlias) {
        plistObj.backgroundType = 2
        plistObj.backgroundImageAlias = opts.rawAlias
      }

      dataType = 'bplist'

bplist-creator

Binary Mac OS X Plist (property list) creator.

MIT
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis

Popular bplist-creator functions