Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including metalsmith-concat-convention with all npm packages installed. Try it out:

var metalsmithConcatConvention = require("metalsmith-concat-convention")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

metalsmith-concat-convention v1.2.1

Metalsmith Concat Convention Plugin

Metalsmith Concat Convention Plugin NPM version

Build Status Dependency Status Greenkeeper badge

Metalsmith plugin to concatenate files through file conventions.


npm install --save metalsmith-concat-convention


If you are using the command-line version of Metalsmith, you can install via npm, and then add the metalsmith-concat-convention key to your metalsmith.json file:

  "plugins": {
    "metalsmith-concat-convention": {
      "extname": ".concat"


If you are using the JS Api for Metalsmith, then you can require the module and add it to your .use() directives:

var concat = require('metalsmith-concat-convention');

  extname: '.concat'


Each concatenation is handled through naming the destination file <name>.concat. The file's metadata options are passed off to metalsmith-concat to output the concatenated files. All metalsmith-concat options apply, aside from output, which is provided by the filename itself.



- script1.js
- script2.js
insertNewLine: false
// This is the collection of all scripts.

The above will result in scripts.js being script1.js, script2.js, along with the ending content comment.



RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free