
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
coffeescript-concat
Advanced tools
A utility for combining coffeescript files and resolving their dependencies.
coffeescript-concat is a utility that preprocesses and concatenates CoffeeScript source files.
It makes it easy to keep your CoffeeScript code in separate units and still run them easily. You can keep your source logically separated without the frustration of putting it all together to run or embed in a web page. Additionally, coffeescript-concat will give you a single sourcefile that will easily compile to a single Javascript file.
Automatically puts parent classes in an inheritance chain in the correct order
Allows you to specify that a class from another file needs to be included before another file.
When a #= require Classname
directive is encountered, coffeescript-concat will find the file containing that class, preprocess it, and put it above the including class.
Allows you to specifiy that a file needs to be included before another file.
When a #= require <FileName>
or #=require <FileName.coffee>
directive is encountered, coffeescript-concat will find the file, preprocess it, and put it above the including class.
Allows you to refer to external classes that will be available at runtime
When a #= extern Classname
directive is encountered, coffeescript-concat
will assume that class exists.
How does coffeescript-concat find the classes and files? By specifying include directories, you can tell coffeescript where to look. If it can't find the needed file in any of the include directories, it will let you know.
Using npm:
$ npm install -g coffeescript-concat
$ coffeescript-concat -I /my/include/directory -I includeDir2 A.coffee B.coffee -o output.coffee
Using CoffeeScript directly:
$ coffee coffeescript-concat.coffee -I /my/include/directory -I includeDir2 A.coffee B.coffee -o output.coffee
This will preprocess and concatenate This.coffee, That.coffee, and TheOther.coffee along with any classes they require and output the resulting code into output.coffee. If you don't specify an output file (-o), coffeescript-concat prints the output to stdout so that you can easily write it to a file or pipe it to another utility for further processing.
Check out grunt-coffeescript-concat
ZLIB, see the LICENSE file
FAQs
A utility for combining coffeescript files and resolving their dependencies.
The npm package coffeescript-concat receives a total of 21 weekly downloads. As such, coffeescript-concat popularity was classified as not popular.
We found that coffeescript-concat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.