import { Plugin , Transformer } from 'unified' ; import { Node } from 'unist' ; import { VFile } from 'vfile' ; import Options from './options' ; import Walker from './walker' ; function attacher ( options ) { async function transform ( node , file ) { return new Walker ( options , file ) . walk ( node ) ; } return transform ; } const plugin = attacher ; export default plugin ;