{"library":"simple-file-bundler","title":"Simple File Bundler","description":"Simple File Bundler is a command-line utility designed to merge multiple files into a single bundle, primarily focused on concatenating CSS or JavaScript files. It operates via a configuration file (`simple-file-bundle.config.js`) located at the project root, which exports an array of bundling instructions. Each instruction specifies an output endpoint, a list of input files, an optional path prefix, and an optional separator. The package is currently at version 1.0.7, indicating a stable but likely feature-complete state with an infrequent release cadence. Its key differentiator is its minimalist approach, requiring minimal setup for basic file concatenation, contrasting with more complex bundlers that offer advanced features like module resolution, tree-shaking, or minification.","language":"javascript","status":"active","last_verified":"Wed Apr 22","install":{"commands":["npm install simple-file-bundler"],"cli":{"name":"simple-file-bundler","version":null}},"imports":["module.exports = [\n    { /* bundle settings */ },\n    { /* bundle settings */ }\n];","{\n    prefix: __dirname,\n    endpoint: 'dist/bundle.css',\n    files: ['src/file1.css', 'src/file2.css'],\n    separator: '\\n'\n}","prefix: __dirname"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm i simple-file-bundler\n\n// simple-file-bundle.config.js\nmodule.exports = [\n    {\n        prefix: __dirname,\n        endpoint: 'dist/style.bundle.css',\n        files: [\n            'src/style1.css',\n            'src/style2.css',\n            'src/style3.css'\n        ]\n    },\n    {\n        prefix: __dirname,\n        endpoint: 'dist/scripts.js',\n        files: [\n            'src/index.js',\n            'src/superScript.js'\n        ],\n        separator: '\\n'\n    }\n];\n\n// Create some dummy files for demonstration\n// src/style1.css\n// body { color: red; }\n// src/style2.css\n// h1 { font-size: 2em; }\n// src/index.js\n// console.log('Hello from index.js');\n// src/superScript.js\n// console.log('Hello from superScript.js');\n\nmkdir -p src dist\necho \"body { color: red; }\" > src/style1.css\necho \"h1 { font-size: 2em; }\" > src/style2.css\necho \"console.log('Hello from index.js');\" > src/index.js\necho \"console.log('Hello from superScript.js');\" > src/superScript.js\n\nnpx create-bundles\n\n// Check outputs:\n// cat dist/style.bundle.css\n// cat dist/scripts.js","lang":"javascript","description":"Demonstrates installation, configuration with `simple-file-bundle.config.js`, and execution of the bundler to concatenate CSS and JS files into specified endpoints.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}