# @phoenix-plugin-registry/technet.coffeescriptcompiler

> This extension will compile CoffeeScript files automatically when file is saved. js file will be created in the given folder

Latest version **0.1.0** (published 2022-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @phoenix-plugin-registry/technet.coffeescriptcompiler
pnpm add @phoenix-plugin-registry/technet.coffeescriptcompiler
yarn add @phoenix-plugin-registry/technet.coffeescriptcompiler
bun add @phoenix-plugin-registry/technet.coffeescriptcompiler
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2022-02-10 |
| First published | 2022-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 214.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Technet |
| Maintainers | ushmajit, core.ai |
| Keywords | coffee-script, coffeescript, coffeescript compier, compiler, coffeescript auto compiler |

## Links

- npm: https://www.npmjs.com/package/@phoenix-plugin-registry/technet.coffeescriptcompiler
- Homepage: https://github.com/technet/brackets.coffeescriptcompiler
- npm.io page: https://npm.io/package/@phoenix-plugin-registry/technet.coffeescriptcompiler

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2022-02-10

## README

Brackets CoffeeScript Auto Compiler
=======================

Another extension from Technet which compiles CoffeeScript files (files with `.coffee` extension) and generate Javascript file automatically when file(s) are modified and saved.

_CoffeeScript file_
![CoffeeScript File](screenshots/screenshot01.png)

_Compiled Javascript file_
![Javascript File](screenshots/screenshot02.png)

#### Usage

Just create CoffeeScript files as usual with the extension of `.coffee` and this extension will monitor any modifications of those files and output compiled Javascript file when you save the original file. By defult javascript file be created at the same location with same name with `.js` extension. If you want to output the file into different location use the comment hint as follows. This should be at top of the file before any non empty line. (Didn't want to parse entire file looking for this option as it is unnecessary). `out` path is always relative to CoffeeScript file.

__Ex 1 (store in one level above)__

    #   cfcoptions : { "out": "../js/"   }    
    
This will generate the javascript file in `js` folder which according to following folder structure.

    project-folder    
        |---coffee
        |   |---test.coffee
        |---js
            |---test.js


__Ex 2 (store in same folder with different name)__

    #   cfcoptions : { "out": "test2.js"   }
    
This will generate the javascript file in `js` folder which according to following folder structure.

    project-folder    
        |---coffee
            |---test.coffee
            |---test2.js


__Ex 3 (store in sub folder)__

    #   cfcoptions : { "out": "js/test2.js"   }
    
This will generate the javascript file in `js` folder which according to following folder structure.

    project-folder    
        |---coffee
            |---test.coffee
            |---js
                |---test2.js

___Note: This will not create folders if they are not exist. So before you save and generate make sure you have the correct folder structure.___

#### Future Improvements

* Automatically create folder structure if not exists.
* Use folder level configuration file in addition to file level comment for compile option which applies to all files in that folder.
* Support other CoffeeScript compile options.


#### Version History

##### 0.1.0

Initial release with basic functionality.

---
_Source: https://npm.io/package/@phoenix-plugin-registry/technet.coffeescriptcompiler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
