0.2.0 • Published 7 years ago

kap-plugin-mock-context v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

kap-plugin-mock-context Build Status

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

License

MIT © Sam Verschueren