https://github.com/gavinning/source
查询来源
https://github.com/gavinning/source
Last synced: 10 months ago
JSON representation
查询来源
- Host: GitHub
- URL: https://github.com/gavinning/source
- Owner: gavinning
- License: mit
- Created: 2020-08-12T07:56:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-12T11:01:18.000Z (over 5 years ago)
- Last Synced: 2025-03-17T19:45:02.667Z (10 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Source
### Install
```
npm i @4a/source
```
### Usage
```js
import source from '@4a/source'
// 查找来源
source.getFrom()
// 查找特定字段
source.get('field')
// 查找search对象
source.query()
// 查找referrer对象
source.referrerQuery()
// 查找百度搜索关键字
source.getBaiduKeyword()
// 查找搜狗搜索关键字
source.getSogouKeyword()
```
### Example
```sh
npm run dev
```