Skip to content

Commit f1dbe3d

Browse files
authored
Merge pull request #3 from alexanderchan/patch-1
README.md small fixes to yarn global and quotes
2 parents e6f128b + e1c0ffe commit f1dbe3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ npm install flow-to-typescript --save
2424

2525
```sh
2626
# Install globally
27-
yarn add --global flow-to-typescript
27+
yarn global add flow-to-typescript
2828

2929
# Compile a file (all of these are equivalent)
3030
flow2ts my/file.js.flow
@@ -41,7 +41,7 @@ import { compile } from 'flow-to-typescript'
4141
import { readFileSync, writeFileSync } from 'fs'
4242

4343
let path = 'path/to/file.js.flow'
44-
let file = readFileSync(path, 'utf-8)
44+
let file = readFileSync(path, 'utf-8')
4545

4646
compile(file, path).then(ts =>
4747
writeFileSync('path/to/file.ts', ts)

0 commit comments

Comments
 (0)