node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

fs-concatenate

fs-concatenate

Concatenate static content to a common js / node js module

It is a personal module i am using with ngCli to convert static content to a node js module , help me in reducing IO calls using fs.

Download it locally not globally ( otherwise it will use absolute path for keys ) , and run below command to convert your static content inside a directory to a nodejs module.

 
<module_path> -<input_directory> -<output_path>
 

Example

 
./node_modules/fs-concatenate -i content -module.js
 

Ask me personally if you plan to use this module and face any difficulties.