1.0.0 • Published 7 years ago

mkonion v1.0.0

Weekly downloads
4
License
AGPL-3.0
Repository
github
Last release
7 years ago

mkonion

spin up tor hidden services from the command line or node.js

install

npm install -g mkonion

use

  Usage: mkonion [options] <target port>

  spin up tor hidden services with ease


  Options:

    -V, --version              output the version number
    --tls                      target port uses secure sockets layer
    -p, --virtual-port <port>  virtual port for hidden service
    -k, --key-blob <blob>      rsa 1024 onion key
    -h, --help                 output usage information

example

if running a cleartext http server locally on port 8080

mkonion 8080

if running a https server locally on port 8443

mkonion --tls 8443

if using in another node.js program

const mkonion = require('mkonion');

mkonion('http://127.0.0.1:8080', (err, service) => {
  console.info(service.href); // http://asdfasdf.onion:80
  // service.destroy(); // take offline
});

license

gnu affero general public license version 3.0

1.0.0

7 years ago