How to use abbrev - 1 common examples

To help you get started, we’ve selected a few abbrev 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 Tencent / feflow / packages / feflow-cli / src / core / commander / index.ts View on Github external
register(name: string, desc: string, fn: Function) {
    this.store[name.toLowerCase()] = fn;
    this.store[name.toLowerCase()].desc = desc;
    this.alias = abbrev(Object.keys(this.store));
  }
};

abbrev

Like ruby's abbrev module, but in js

ISC
Latest version published 3 months ago

Package Health Score

89 / 100
Full package analysis

Popular abbrev functions