New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

coffeepipe-bash

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffeepipe-bash

mix bash & coffeescript-fu on the commandline with coffeepipe

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Mashup your bash-fu with coffeescript-fu in the console with coffeepipe

npm install coffeescript coffeepipe-bash -g

How to use

Just fire up a terminal and start hacking away. This turns coffeescript into a nifty awk/swish armyknife-ish tool.

Examples

Simple eval

$ cfp 'new Date().toString()'

search / replace

$ echo "foo"           | cfp '(s) -> s.replace /foo/, "bar"'

process line by line

$ echo -e "foo\nbar"   | cfp '(s) -> ( "output: #{line}" for line in s.split "\n")'

filter by coffeescript file

$ echo -e "foo\nbar"   | cfp ./filter.coffee 

automatically convert array to lines

$ echo "one,two,three" | cfp '(s) -> s.split ","'

detect json / indent json

$ echo "[1,2,3,4]"     | cfp '(s) -> JSON.stringify(s,null,2)'

cherrypick from JSON

$ curl -s https://api.github.com/users/coderofsalvation/repos | cfp 'input[0].name'

print x items from JSON

$ curl -s https://api.github.com/users/coderofsalvation/repos | cfp '(s) -> ( input.data[i].name for i in [0..4] )'

transform json

$ curl -s https://api.github.com/users/coderofsalvation/repos | ./cli.coffee '(s) -> input.data = input.data.slice(0,4) ; return input'

Keywords

FAQs

Package last updated on 18 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc