We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb818d0 commit f368c7dCopy full SHA for f368c7d
1 file changed
lib/index.js
@@ -198,6 +198,18 @@ Metalsmith.prototype.build = unyield(function*(){
198
return files;
199
});
200
201
+/**
202
+ * Process files through plugins without writing out files.
203
+ *
204
+ * @return {Object}
205
+ */
206
+
207
+Metalsmith.prototype.process = unyield(function*(){
208
+ var files = yield this.read();
209
+ files = yield this.run(files);
210
+ return files;
211
+});
212
213
/**
214
* Run a set of `files` through the plugins stack.
215
*
0 commit comments