ezseed-rtorrent
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,1 +0,6 @@ | ||
module.exports = __dirname | ||
module.exports = function(shell) { | ||
if(['install', 'useradd', 'userdel', 'daemon'].indexOf(shell) !== -1) | ||
return p.join(__dirname, shell) + '.sh' | ||
else | ||
throw new Error('Shell %s does not exists', shell) | ||
} |
{ | ||
"name": "ezseed-rtorrent", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "ezseed rtorrent shell binding", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# Ezseed rtorrent shell bindings | ||
Structure: | ||
## API: | ||
- `install.sh` - installs rtorrent and libtorrent | ||
@@ -10,1 +10,14 @@ - `useradd.sh username password` - creates a rtorrent user, system user should exists | ||
For a more powerful usage see [ezseed](https://github.com/ezseed/ezseed) | ||
## Nodejs | ||
This module is there to be used without [ezseed](https://github.com/ezseed/ezseed) whole package. If you need to require this in a module: | ||
```javascript | ||
var i = require('ezseed-rtorrent')('install') | ||
console.log(i) | ||
//will output | ||
// /path/to/the/node_modules/ezseed-rtorrent/install.sh | ||
``` |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
14878
6
23