# virgule

> Virgule (*vir•gule*) is a Javascript plugin that do one thing, set focus on an input field (typically search input) using virgule (/) key.

Latest version **1.0.0** (published 2015-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install virgule
pnpm add virgule
yarn add virgule
bun add virgule
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-10-15 |
| First published | 2015-10-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Brother in Code |
| Maintainers | bobby |
| Keywords | search, focus |

## Links

- npm: https://www.npmjs.com/package/virgule
- Repository: https://github.com/brother-in-code/Virgule
- Issues: https://github.com/brother-in-code/Virgule/issues
- npm.io page: https://npm.io/package/virgule

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-10-15

## README

# Virgule

Virgule (*vir•gule*) is a Javascript plugin that do one thing, set focus on an input field (typically search input) using virgule (/) key.

## Install

bower:
```Bash
bower i virgule --save
```

npm:
```Bash
npm i virgule --save
```

## How to use

Given the markup

```HTML
<input class="search" type="search">

<script src="virgule.js"></script>
```

Quick initialization

```Javascript
virgule.init('.search');
```

Virgule also accept a dom element so the code above can be written to

```Javascript
var input = document.querySelector('.search');
virgule.init(input);
```

Virgule also work well with browserify

```Javascript
var virgule = require('virgule');
virgure.init('.search');
```

## Options

### keycode
* type: **String**
* default: '191' (virgule keycode)
* Description: which key's keycode used to set focus to the input

### Browser support

* IE9 along with other [evergreen browsers](http://eisenbergeffect.bluespire.com/evergreen-browsers/).

---
_Source: https://npm.io/package/virgule · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
