Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/octalmage/shcoffee

Easily use CoffeeScript for global ShellJS scripts without .coffee extension.
https://github.com/octalmage/shcoffee

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# shcoffee [![](https://img.shields.io/npm/v/shcoffee.png)](https://www.npmjs.com/package/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":

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

Make it executable:

```
$ chmod +x hello
```

Then run it!

```
$ ./hello
hello
```

## License

MIT