tooling/lib/openh264.js
function encode(fp) {
  return new Promise((resolve, reject) => {
    fp.encode((err, encoded) => {
      if (err) {
        reject(err);

        return;
      }
      resolve(encoded);
    });
  });
}
function encode(fp) {
  return new Promise((resolve, reject) => {
    fp.encode((err, encoded) => {
      if (err) {
        reject(err);

        return;
      }
      resolve(encoded);
    });
  });
}
function encode ( fp ) { return new Promise ( ( resolve , reject ) => { fp . encode ( ( err , encoded ) => { if ( err ) { reject ( err ) ; return ; } resolve ( encoded ) ; } ) ; } ) ; }
denodeifies FirefoxProfile.encode
@param {FirefoxProfile} fp
@returns {Promise<string>}
denodeifies FirefoxProfile . encode