All Projects → bulkan → co-sh

bulkan / co-sh

Licence: MIT license
Using ES6 Proxies & Generators to run shell commands

Programming Languages

javascript
184084 projects - #8 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to co-sh

ip2proxy-java
IP2Proxy Java Component.It can be used to find the IP addresses which are used as VPN anonymizer, open proxies, web proxies and Tor exits.
Stars: ✭ 16 (-33.33%)
Mutual labels:  proxies
sinator
Sinatra application generator
Stars: ✭ 19 (-20.83%)
Mutual labels:  generators
Pyxell
Multi-paradigm programming language compiled to C++, written in Python.
Stars: ✭ 42 (+75%)
Mutual labels:  generators
titan-starter-website
A Laravel Website and Admin starter project that helps you with the setup.
Stars: ✭ 51 (+112.5%)
Mutual labels:  generators
proxy-rotator
Simple proxy rotation service
Stars: ✭ 28 (+16.67%)
Mutual labels:  proxies
torchestrator
Spin up Tor containers and then proxy HTTP requests via these Tor instances
Stars: ✭ 32 (+33.33%)
Mutual labels:  proxies
ProxyChecker
An easy to use open-source, multithreaded Proxy Checker. Allows you to quickly check HTTP and SOCKS proxies in a user friendly GUI, for Windows, Mac OS, Linux.
Stars: ✭ 113 (+370.83%)
Mutual labels:  proxies
YouTube-Viewer
A multithreaded view bot for YouTube
Stars: ✭ 529 (+2104.17%)
Mutual labels:  proxies
proxy fetcher
💪 Ruby / JRuby / TrufflleRuby gem & CLI for dealing with proxy lists from various sources
Stars: ✭ 119 (+395.83%)
Mutual labels:  proxies
pawxi
Dead simple reverse proxy for all your containerized needss
Stars: ✭ 14 (-41.67%)
Mutual labels:  proxies
ipChecker
Check if a IP is from tor or is a malicious proxy
Stars: ✭ 50 (+108.33%)
Mutual labels:  proxies
Continuables.jl
Extremely fast generator-like alternative to Julia Channels
Stars: ✭ 33 (+37.5%)
Mutual labels:  generators
mapgen
map generator stuff
Stars: ✭ 26 (+8.33%)
Mutual labels:  generators
proxychanger
Go tool to change system and applications proxy
Stars: ✭ 15 (-37.5%)
Mutual labels:  proxies
whatsup
Reactive framework, simple, fast, easy to use!
Stars: ✭ 115 (+379.17%)
Mutual labels:  generators
jducers
A js transducers-like implementation using ES9
Stars: ✭ 25 (+4.17%)
Mutual labels:  generators
stack
🥭 nxpm-stack lets you generate a complete and opinionated full-stack application in a Nx Workspace, ready to extend and deploy!
Stars: ✭ 98 (+308.33%)
Mutual labels:  generators
ineeda
Mocking library for TypeScript and JavaScript using Proxies!
Stars: ✭ 53 (+120.83%)
Mutual labels:  proxies
proxy machine
Parse 30.000 free proxies!
Stars: ✭ 66 (+175%)
Mutual labels:  proxies
lura
Ultra performant API Gateway with middlewares. A project hosted at The Linux Foundation
Stars: ✭ 5,159 (+21395.83%)
Mutual labels:  proxies

sh

Call any shell command like a function using ES 6 Proxies & Generators.

Use node v5.0.x with --harmony-proxies flag, along with

Usage

var co = require('co');
var read = require('co-read');
var sh = require('co-sh');

co(function *(){
  var ls = yield sh.ls();

  var buf;
  while (buf = yield read(ls.stdout)) {
    console.log(buf.toString());
  }

  try {
    yield sh.nonexistingcmd();
  } catch(e){
    console.log(e);
  }
})();

Assuming the above code is in a file called test.js run it using;

node --harmony-proxies test.js

See the examples folder for more

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].