How to use the istanbul-lib-processinfo.ProcessInfo function in istanbul-lib-processinfo

To help you get started, we’ve selected a few istanbul-lib-processinfo 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 istanbuljs / nyc / index.js View on Github external
})

    // require extensions can be provided as config in package.json.
    this.require = [].concat(config.require || [])

    this.transforms = this.extensions.reduce((transforms, ext) => {
      transforms[ext] = this._createTransform(ext)
      return transforms
    }, {})

    this.hookRequire = config.hookRequire
    this.hookRunInContext = config.hookRunInContext
    this.hookRunInThisContext = config.hookRunInThisContext
    this.fakeRequire = null

    this.processInfo = new ProcessInfo(Object.assign({}, config._processInfo, {
      directory: path.resolve(this.tempDirectory(), 'processinfo')
    }))

    this.hashCache = {}
  }

istanbul-lib-processinfo

A utility for managing the `processinfo` folder that NYC uses.

ISC
Latest version published 3 years ago

Package Health Score

62 / 100
Full package analysis

Similar packages