https://github.com/k4m4/active-onions
Filter out inactive onions from an array of onion URLs.
https://github.com/k4m4/active-onions
active-onions links onion tor urls
Last synced: 6 months ago
JSON representation
Filter out inactive onions from an array of onion URLs.
- Host: GitHub
- URL: https://github.com/k4m4/active-onions
- Owner: k4m4
- License: mit
- Created: 2019-05-29T21:37:38.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T16:16:47.000Z (over 2 years ago)
- Last Synced: 2024-10-31T17:37:07.495Z (6 months ago)
- Topics: active-onions, links, onion, tor, urls
- Language: JavaScript
- Size: 638 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# active-onions [](https://travis-ci.org/k4m4/active-onions)
> Filter out inactive onion URLs from an array.
## Install
```
~ ❯❯❯ npm install active-onions
```## Usage
```js
const activeOnions = require('active-onions');activeOnions(['https://abcdefghijklmnop.onion/', 'http://xmh57jrzrnw6insl.onion/', 'https://facebookcorewwwi.onion/'])
//=> ['http://xmh57jrzrnw6insl.onion/', 'https://facebookcorewwwi.onion/']
```**Note**: *Ensure that a `Tor` client is running in the background*. You can do so by running `apt install tor` on Linux and `brew install tor && tor` on macOS.
## API
### activeOnions([array])
Filters out inactive onion URLs from an array.
## License
MIT © [Nikolaos Kamarinakis](https://nikolaskama.me)