node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »



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>


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

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