Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/octalmage/shcoffee
- Owner: octalmage
- Created: 2015-08-21T07:34:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-21T07:58:37.000Z (about 9 years ago)
- Last Synced: 2024-04-23T22:20:06.966Z (7 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
## InstallFirst 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