kap-plugin-mock-context
v0.2.0
Published
Kap plugin mock context
Downloads
22
Maintainers
Readme
kap-plugin-mock-context
Kap plugin mock context
Install
$ npm install --save-dev kap-plugin-mock-context
Usage
const context = require('kap-plugin-mock-context');
const ctx = context({
file: 'Kapture 2017-05-30 at 1.03.49.gif',
config: {
apiKey: 'a3b78f9ce6'
}
});
API
context(options)
Returns a mock context object.
options
Type: object
file
Type: string
Path to the file that is being processed.
config
Type: object
Default: {}
Plugin configuration object.
Related
- kap-plugin-test - Test your Kap plugins
License
MIT © Sam Verschueren