'use strict'var helpMe = require('help-me')var path = require('path')var help = helpMe({ dir: path.join(__dirname, 'doc'), // the default ext: '.txt'})help .createStream(['hello']) // can support also strings .pipe(process.stdout)// little helper to do the samehelp.toStdout(['hello'])
Using ESM and top-level await::
import { help } from 'help-me'import { join } from 'desm'await help({ dir: join(import.meta.url, 'doc'), // the default ext: '.txt'}, ['hello'])