Skip to content

Commit f84519c

Browse files
Merge pull request transitive-bullshit#130 from danielsogl/refactor/update_readme
docs(readme): update usage
2 parents 6be5e27 + b127271 commit f84519c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

readme.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,21 @@
3030
- [Chinese docs](./readme.zh-CN.md) by [@monsterooo](https://github.com/monsterooo)
3131

3232

33-
## Install
33+
## Install globally
3434

3535
This package requires `node >= 4`, but we recommend `node >= 8`.
3636

3737
```bash
3838
npm install -g create-react-library
3939
```
4040

41+
## Usage with npx
42+
43+
```bash
44+
npx create-react-library
45+
```
46+
47+
_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_
4148

4249
## Creating a New Module
4350

@@ -81,7 +88,7 @@ Now, anytime you make a change to your library in `src/` or to the example app's
8188
![](https://media.giphy.com/media/12NUbkX6p4xOO4/giphy.gif)
8289

8390

84-
#### Publishing to NPM
91+
#### Publishing to npm
8592

8693
```bash
8794
npm publish

0 commit comments

Comments
 (0)