1.0.0 • Published 4 years ago

ssr_install v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

ssr_install

use ssr python version.

install

npm i --save ssr_install

Use

const ssr = require('ssr_install')

;(async ()=> {
  const options = {
    path: process.cwd(),
    dirname: `ssr`
  }
  const ssrClient = new ssr(options)

  // install
  ssrClient.install()
  // check
  ssrClient.check()

  // static install
  ssr.install(options)
  // static check
  ssr.check(options)
})()

the default mirror repo by: shadowsocksrr/shadowsocksr#akkariiin/master

If the download fails, try another repository

const ssr = require('ssr_install')

;(async ()=> {
  const options = {
    path: process.cwd(),
    dirname: `ssr`
  }
  const ssrClient = new ssr(options)
  ssrClient.mirror = [
    // The default is to [0]
  ]
  await ssrClient.install()
})
1.0.0

4 years ago