Skip to content

Easily use CoffeeScript for global ShellJS scripts without .coffee extension.

Notifications You must be signed in to change notification settings

octalmage/shcoffee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

shcoffee

Easily use CoffeeScript for global ShellJS scripts without .coffee extension.

Install

First make sure you have ShellJS installed globally:

npm install -g shelljs

Then install shcoffee:

npm install -g shcoffee

Example

Create a file with the below contents and call it "hello":

#!/usr/bin/env shcoffee
require 'shelljs/global'
echo 'hello'
exit 1

Make it executable:

$ chmod +x hello

Then run it!

$ ./hello
hello

License

MIT

About

Easily use CoffeeScript for global ShellJS scripts without .coffee extension.

Resources

Stars

Watchers

Forks

Packages

No packages published