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

metalsmith

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith

An extremely simple, pluggable static site generator.

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
29K
increased by20.45%
Maintainers
1
Weekly downloads
 
Created
Source

metalsmith

An extremely simple, pluggable static site generator.

Installation

$ npm install metalsmith

Example

With a directory structure like this ...

/blog
  /src
    /a-post.md
    /another-post.md

... running Metalsmith ...

$ metalsmith

... will create:

/blog
  /build
    /a-post.html
    /another-post.html

CLI

  Usage: metalsmith [options]

  Options:
  
    -h, --help         output usage information
    -c, --config       set a config file
    -d, --destination  set the destination directory
    -s, --source       set the source directory

Javascript API

new Metalsmith(dir)

Create a new Metalsmith instance for a working dir.

#use(plugin)

Add the given plugin function to the middleware stack.

#source(path)

Set the relative path to the source directory, or get the full one if no path is provided. The source directory defaults to ./src.

#destination(path)

Set the relative path to the destination directory, or get the full one if no path is provided. The destination directory defaults to ./build.

#metadata(json)

Set global metadata that should be applied to each file, in addition to any YAML front-matter.

#join(paths...)

Join any amount of paths... to the working directory.

#build(fn)

Build with the given settings and plugins, and call fn(err).

License

MIT

Keywords

FAQs

Package last updated on 06 Feb 2014

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