Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/component/inject-at-cursor

inject a string or dom node at the cursor
https://github.com/component/inject-at-cursor

Last synced: 13 days ago
JSON representation

inject a string or dom node at the cursor

Awesome Lists containing this project

README

        

# inject-at-cursor

inject a string or dom node at the cursor

## Installation

Install with [component(1)](http://component.io):

$ component install component/inject-at-cursor

## API

### inject(content)

Inject `content` at the cursor. `content` can either be a text string or some html. Returns the `content` node

## Test

Run tests using [component-test](http://github.com/matthewmueller/component-test):

npm install component-test
make test

## License

MIT