autosuggestion
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

autosuggestion

test coverage npm version

Generates suggestions for text completion.

Install

autosuggestion can be used in Node.js and browsers.

npm install autosuggestion

Import

// ES Module (ESM)
import { Dictionary } from 'autosuggestion'
// CommonJS (CJS)
const autosuggestion = require('autosuggestion')
<!-- HTML Script Tag  -->
<script type='text/javascript' src='https://unpkg.com/autosuggestion'></script>

Examples

list of live example pages brief section descriptions of each feature

Releasing

  1. run npm version major|minor|patch
  2. create release on github manually (triggers a github workflow to publish tp npm)

eventually, consider using semantic-release

Todo

General

  • [x] automate test coverage reporting
  • [ ] get 100% test coverage
  • [ ] clean up and restructure code
  • [ ] setup ci for coverage report + doc generation + npm publishing (look into tags as a mechanism for publishing)
  • [x] generate badges with shields.io
  • [ ] include doc comments for typedoc
  • [ ] fill out readme
  • [ ] update package.json
  • [x] update github
  • [ ] update package (use latest package from unpkg.org in browser examples)
  • [ ] host documentation

Features

  • [ ] suggestion token annotations (context, etc.)
  • [ ] configuration (lookup brackets, etc.)

Examples

  • [ ] examples landing page (browser) (or link in docs)
  • [ ] simple, dynamic dictionary (browser)
  • [ ] complex, dynamic CFG (browser)
  • [ ] lookahead configuration (browser)
  • [ ] large dictionary (browser)
  • [ ] deeply nested contexts (browser)
  • [ ] basic (nodejs)

Dependents (0)

Package Sidebar

Install

npm i autosuggestion

Weekly Downloads

3

Version

1.1.5

License

GPLV3

Unpacked Size

212 kB

Total Files

58

Last publish

Collaborators

  • asmr.hex