Skip to content

Commit

Permalink
✏️Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonBoy committed Jul 23, 2019
1 parent f9d89d0 commit 4daea0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
[![npm](https://img.shields.io/npm/v/china-location.svg)](https://www.npmjs.com/package/china-location)
[![Building Status](https://travis-ci.org/JasonBoy/china-location.svg?branch=master)](https://travis-ci.org/JasonBoy/china-location)

NPM module for [中国行政区划信息](https://github.com/mumuy/data_location#中国行政区划信息)
Simplify the use of chinese administrative division data.
JS Library for [中国行政区划信息](https://github.com/mumuy/data_location#中国行政区划信息)
Simplify the usage of chinese administrative division data.

[An React Component](https://github.com/JasonBoy/react-china-location) For this

Expand Down Expand Up @@ -59,8 +59,8 @@ npm run reformat -- /path/to/data_location/list.json
And in your project, you can:

```javascript
const yourNewLocation = require('path/to/location.json');
const ChinaLocation = require('china-location');
import yourNewLocation from 'path/to/location.json';
import ChinaLocation from 'china-location';
const location = new ChinaLocation(yourNewLocation);
//...
```
Expand Down

0 comments on commit 4daea0b

Please sign in to comment.