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

metalsmith

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

4

History.md
0.4.0 - March 14, 2013
----------------------
* change #metadata to set a clone
0.3.0 - March 8, 2013

@@ -3,0 +7,0 @@ ---------------------

3

lib/index.js
var clone = require('clone');
var defaults = require('defaults');

@@ -54,3 +55,3 @@ var each = require('async').each;

if (!arguments.length) return this.data;
this.data = metadata;
this.data = clone(metadata);
return this;

@@ -57,0 +58,0 @@ };

{
"name": "metalsmith",
"repository": "git://github.com/segmentio/metalsmith.git",
"version": "0.3.0",
"version": "0.4.0",
"license": "MIT",

@@ -34,3 +34,4 @@ "description": "An extremely simple, pluggable static site generator.",

"is-utf8": "~0.2.0",
"chalk": "^0.4.0"
"chalk": "^0.4.0",
"clone": "^0.1.11"
},

@@ -44,2 +45,2 @@ "devDependencies": {

}
}
}

@@ -9,3 +9,3 @@ # Metalsmith

Metalsmith(__dirname)
.use(markdown)
.use(markdown())
.use(templates('handlebars'))

@@ -19,4 +19,4 @@ .build();

Metalsmith(__dirname)
.use(drafts)
.use(markdown)
.use(drafts())
.use(markdown())
.use(permalinks('posts/:title'))

@@ -79,8 +79,8 @@ .use(templates('handlebars'))

- [A simple static site generator.](examples/static-site)
- [An Jekyll-like static site generator.](examples/jekyll)
- [An Wintersmith-like static site generator.](examples/wintersmith)
- [A Jekyll-like static site generator.](examples/jekyll)
- [A Wintersmith-like static site generator.](examples/wintersmith)
## CLI
In addition to a simple [Javascript API](#api), the Metalsmith CLI can read configuration from a `metalsmith.json` file, so that you can build static-site generators similar to [Jekyll](jekyllrb.com) or [Wintersmith](wintersmith.io) easily. The example blog above would be configured like this:
In addition to a simple [Javascript API](#api), the Metalsmith CLI can read configuration from a `metalsmith.json` file, so that you can build static-site generators similar to [Jekyll](http://jekyllrb.com) or [Wintersmith](http://wintersmith.io) easily. The example blog above would be configured like this:

@@ -100,4 +100,11 @@ ```json

And then from the CLI, simply run...
And then just install `metalsmith` and the plugins and run the metalsmith CLI...
$ node_modules/.bin/metalsmith
Metalsmith · reading configuration from: /path/to/metalsmith.json
Metalsmith · successfully built to: /path/to/build
Or if you install them globally, you can just use:
$ metalsmith

@@ -108,4 +115,8 @@

Checkout the [static site](examples/static-site), [Jekyll](examples/jekyll) or [Wintersmith](examples/wintersmith) examples to see the CLI in action.
## API
Checkout the [project scaffolder](examples/project-scaffolder) or [build tool](examples/build-tool) examples to see a real example of the Javascript API in use.
#### new Metalsmith(dir)

@@ -143,3 +154,3 @@

Copyright &copy; 2013, Segment.io \<friends@segment.io\>
Copyright &copy; 2014, Segment.io \<friends@segment.io\>

@@ -146,0 +157,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

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