Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fuse

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fuse

Command line combiner for fusing mutliple JavaScript files into one

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.6K
increased by50.59%
Maintainers
1
Weekly downloads
 
Created
Source

Fuse

Fuse is a command line tool to fuse multiple JavaScript files into one.

Introduction

Fuse is very, very new! At the moment all it does is combine multiple JavaScript files into one. It doesn't do anything else (yet) in terms of minification, etc.

Installation (via NPM)

[sudo] npm install fuse -g

You need to install it globally, because it's nothing something that you can require in your nodejs code. It's only a command line program.

Usage

In your JavaScript file

Fuse uses inline comment-based directives to determine which JavaScript files you'd like to determine. Use the following syntax in your main JavaScript file to inform Fuse about which JavaScript file you'd like to fuse and where.

// @depends path/to/javascript/file.js

Passing a file with the line above to Fuse, will produce a file containing the original JavaScript and the content of path/to/javascript/file.js in the exact position of the depends statement.

On the command line

To run just once:

fuse.js -i path/to/main.js -o path/to/output.js

To watch a file for changes:

fuse.js -i path/to/main.js -o path/to/output.js -w

Fuse will automatically watch any referenced files for changes too, and recompile the output file upon any changes.

Keywords

FAQs

Package last updated on 19 Oct 2012

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc