Axer
The spider's sharp ax.:octocat:
Installation
Axer uses the newest ES2015 feature async/await
, requires node v7.6.0 or higher and async function support.
npm install --save axer
Easy to use
const path = ; { const cookieJarPath = path const Request = // You can set proxy and request google in China const request = cookieJarPath proxy: 'http://****:**' await request // login facebook, check result in locals/cookieJar.json const email = 'email' const pass = 'pass' await request await request // or post json await request const youtubeMusicUrl = 'https://www.youtube.com/audiolibrary_download?f=m&vid=2837bb75829ae65a' await request}
We also encapsulate node's filesystem for conveniently maintain filesystem in Unix style.
const file = fileconst path = ; { const dir = path await file const filePath = path await file await file const catContent = await file console const tailContent = await file console}
Documenation(Comming soon)
- 中文 API 文档
- API document
- FAQ
Author
See XueSeason
License
MIT