panto-transformer
Base transformer for panto.
Transformer can transform the content or anything else of a file or multiple files.It is used to pipe into streams to a chain.
const Transformer = ; { return super; } { return Promise; } { return false; } { return true; } isSkip: '3rd/*.js'
options
- options: Object, options
- options.isSkip: Boolean|Function|String|RegExp, if skip this transformer on the file
- options.isCacheable: Boolean, if is cacheable, used by isCacheable function by default
apis
- transformAll(array): Promise, call transform
- transform(object): Promise, call _transform
- isTorrential(): Boolean, if torrential, default false
- isCacheable(): Boolean, if cacheable, default equals options.isCacheable