bin/play.js
function readCookie (cookiePath) {
  var cookie

  try {
    var c = fs.readFileSync(cookiePath)
    debug('loaded cookie', JSON.parse(c))
    var sid = c['connect-sid']
    debug('serialized', sid)
  } catch (e) {
    debug(e)
  }

  return cookie
}
function readCookie (cookiePath) {
  var cookie

  try {
    var c = fs.readFileSync(cookiePath)
    debug('loaded cookie', JSON.parse(c))
    var sid = c['connect-sid']
    debug('serialized', sid)
  } catch (e) {
    debug(e)
  }

  return cookie
}
function readCookie ( cookiePath ) { var cookie try { var c = fs . readFileSync ( cookiePath ) debug ( 'loaded cookie' , JSON . parse ( c ) ) var sid = c [ 'connect-sid' ] debug ( 'serialized' , sid ) } catch ( e ) { debug ( e ) } return cookie }
Reads a cookie from a file
@param  {string} cookiePath The path to the cookie file.
@return {object}            The cookie object
Reads a cookie from a file