Giter VIP home page Giter VIP logo

kpush's Introduction

KPush

定制个人专属的Kindle电子书推送服务

安装

KPush需要安装版本8.0以上的Node环境,相关信息请戳这里

$ npm i -g kpush

当然,也可以直接通过npx安装使用,具体配置看下面使用帮助

$ npx kpush -h localhost -p 8081

使用

帮助:

Usage: kpush [options]

Options:

  -V, --version          output the version number
  -c, --config <string>  set kpush custom config
  -h, --host <string>    set kpush server listening host
  -p, --port <number>    set kpush server listening port
  -s, --smtp <string>    set stmp server of pushing mail
  -u, --user <string>    set user of pushing mail
  -w, --pass <string>    set password of pushing mail
  -k, --kindle <string>  set user of kindle received mail
  -h, --help             output usage information

所有设置都会自动保存,再次使用时无需再进行设置

配置设置并启动:

# 可以只设置其中几项
$ kpush -h localhost -p 8081 -s smtp.163.com -u [email protected] -w test -k [email protected]

以自定义配置启动:

# 请提供配置的绝对路径,以自定义配置启动时将忽略其他设置选项
$ kpush -c /usr/local/kpush/config.json

配置格式如下,字段含义见帮助:

{
  "host": "localhost",
  "port": "8081",
  "smtp": "smtp.163.com",
  "user": "[email protected]",
  "pass": "test",
  "kindle": "[email protected]"
}

启动后,浏览器访问KPush服务器监听端口即可使用,推荐移动端进行访问

mobi源更换

这里默认用了KindleShare电子书搜索引擎作为mobi电子书源,感谢一下。若更换其他mobi源,请自行fork以后重写app/models/index.js中getList方法,约定见注释

kpush's People

Contributors

siubaak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.