# push-to-firekylin

> a package that easy push to firekylin

Latest version **0.2.3** (published 2017-01-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install push-to-firekylin
pnpm add push-to-firekylin
yarn add push-to-firekylin
bun add push-to-firekylin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2017-01-15 |
| First published | 2016-05-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | lizheming |
| Maintainers | lizheming |
| Keywords | firekylin, push, plugin |

## Links

- npm: https://www.npmjs.com/package/push-to-firekylin
- Repository: https://github.com/lizheming/push2firekylin
- Homepage: https://github.com/lizheming/push2firekylin#readme
- Issues: https://github.com/lizheming/push2firekylin/issues
- npm.io page: https://npm.io/package/push-to-firekylin

## Dependencies (2)

- [phpass](https://npm.io/package/phpass.md) ^0.1.1
- [request](https://npm.io/package/request.md) ^2.72.0

## Recent versions

- 0.2.3 (latest) — 2017-01-15
- 0.2.2 — 2016-05-14
- 0.2.1 — 2016-05-14
- 0.1.3 — 2016-05-14
- 0.1.2 — 2016-05-14
- 0.1.1 — 2016-05-14
- 0.1.0 — 2016-05-14

## README

## 简介

简单快捷为网站添加推送到 Firekylin 博客

## 安装

    npm install push-to-firekylin --save


## 使用方法

需要用户输入 Firekylin 博客地址，和 app_key, app_secret 三个参数，代码使用方法如下：

```javascript
var push2Firekylin = require('push-to-firekylin');

var p2fk = new push2Firekylin(url, app_key, app_secret);

//用户输入信息之后先调用认证接口
p2fk.authorize().then(function(result) {
  console.log( !result.errno ? '认证成功' : result.errmsg );
});

//发布文章的时候直接调用 push 接口
var post = {
  title: 'Hello World!',
  pathname: 'hello-world',
  markdown_content: '## 你好世界',
};
p2fk.push(post).then(function(result) {
  console.log( !result.errno ? '推送成功' : result.errmsg );
});
```

---
_Source: https://npm.io/package/push-to-firekylin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
