How to use omelette - 2 common examples

To help you get started, we’ve selected a few omelette examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sezna / nps / src / bin-utils / autocomplete / index.js View on Github external
/* eslint no-invalid-this:"off" */
import omelette from 'omelette'
import {includes, isPlainObject, kebabCase} from 'lodash'

const complete = omelette('nps 
github danibram / time-tracker-cli / src / autocomplete.js View on Github external
const autocomplete = function(config) {
    let taskKeys = Object.keys(config.all.tasks)

    const complete = omelette('timer  ')

    complete.on('action', ({ reply }) => {
        reply([
            'start',
            'pause',
            'unpause',
            'finish',
            'description',
            'add',
            'subtract',
            'report',
            'log',
            'export',
            'delete',
            'configuration',
            'configure'

omelette

Omelette.js Simple Autocompletion Helper for Node

MIT
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis

Popular omelette functions