nl_tokens: create a new Publisher
pl_tokens: function Publisher ( AWSConfig , cacheOptions ) { this . config = AWSConfig ; this . <mask> = new AWS . S3 ( AWSConfig ) ; var bucket = this . config . params . Bucket ; if ( ! bucket ) { throw new Error ( 'Missing `params.Bucket` config value.' ) ; } // init Cache file this . _cacheFile = cacheOptions && cacheOptions . cacheFileName ? cacheOptions . cacheFileName : '.awspublish-' + bucket ; // load cache try { this . _cache = JSON . parse ( fs . readFileSync ( this . getCacheFilename ( ) , 'utf8' ) ) ; } catch ( err ) { this . _cache = { } ; } }