Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
coffee-scrunch
Advanced tools
Assembles coffee-script files.
It's like browserify, but only for coffee-script and doesn't package npm
dependencies (like fs
and http
).
$ sudo npm install -g coffee-scrunch
$ scrunch--help
Usage: scrunch.js [options]
Options:
-h, --help output usage information
-V, --version output the version number
-v, --verbose Detailed logs
-i, --in [file] Input file
-o, --out [file] Write to file
var scrunch = require('coffee-scrunch');
var options = {
input: 'init.coffee',
output: 'app.js', // optional
log: false // optional
};
scrunch(options).then(function () {
console.log('finished');
});
# a.coffee
b = require './b'
console.log('[a] running b...')
b()
# b.coffee
c = require './c'
module.exports = ->
console.log('[b] running c...')
c()
# c.coffee
module.exports = ->
console.log('[c] ...being run')
$ scrunch -i a.coffee -o app.js
(function() {
var _require;
_require = function(index) {
var exports, module;
module = _require.cache[index];
if (!module) {
exports = {};
module = _require.cache[index] = {
id: index,
exports: exports
};
_require.modules[index].call(exports, module, exports);
}
return module.exports;
};
_require.cache = [];
_require.modules = [
function(module, exports) {
var b;
b = _require(1);
console.log('[a] running b...');
return b();
}, function(module, exports) {
var c;
c = _require(2);
return module.exports = function() {
console.log('[b] running c...');
return c();
};
}, function(module, exports) {
return module.exports = function() {
return console.log('[c] ...being run');
};
}
];
_require(0);
}).call(this);
$ coffee app.coffee
[a] running b...
[b] running c...
[c] ...being run
node-resolve
to resolve dependencies.options.log
. If set, it will log what it is doing. Useful for debugging.kew
to bluebird
for promises.FAQs
Concatenate CoffeeScript files with style
The npm package coffee-scrunch receives a total of 23 weekly downloads. As such, coffee-scrunch popularity was classified as not popular.
We found that coffee-scrunch 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.