Skip to content

Commit f38d717

Browse files
committed
Fix syntax highlighting for README on npm
By using js lang instead of es6
1 parent c2c5ff1 commit f38d717

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@ $ npm install cycle-keys --save
1717

1818
- Import the driver
1919

20-
```es6
20+
```js
2121
import {makeKeysDriver} from 'cycle-keys';
2222
```
2323

2424
- Initialise the driver by calling `makeKeysDriver` in your drivers object
2525

26-
```es6
26+
```js
2727
const drivers = {
2828
Keys: makeKeysDriver()
2929
}
3030
```
3131

3232
- Add it to your main function's sources
3333

34-
```es6
34+
```js
3535
function main({Keys}) { // Your amazing main function }
3636
```
3737
3838
- Call `Keys.presses` with the name of the key for which you'd like a stream of presses. Currently, Cycle Keys supports inputting keys as strings only
3939
40-
```es6```
40+
```js```
4141
const esc$ = Keys.presses('esc');
4242
const shift$ = Keys.presses('shift');
4343
```
@@ -50,7 +50,7 @@ In this example, our user will input a search term. When they hit enter, an aler
5050

5151
[You can try this example out online](http://raquelxmoss.github.io/cycle-keys)
5252

53-
```es6
53+
```js
5454
import {run} from '@cycle/core';
5555
import {makeDOMDriver, input, p, div} from '@cycle/dom';
5656
import {Observable} from 'rx';

0 commit comments

Comments
 (0)