[Pkg-javascript-commits] [node-jade] 50/72: Add .outputFormat() documentation

Jelmer Vernooij jelmer at moszumanska.debian.org
Sun Jul 3 18:03:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

jelmer pushed a commit to annotated tag upstream/1.0.0
in repository node-jade.

commit 63d1e8ef512a47ce33c2de542b72ca8c962dd85b
Author: Rob Loach <robloach at gmail.com>
Date:   Thu Jul 9 15:35:19 2015 -0400

    Add .outputFormat() documentation
---
 README.md | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/README.md b/README.md
index f294e79..67d8234 100644
--- a/README.md
+++ b/README.md
@@ -98,6 +98,16 @@ var formats = transformer.inputFormats;
 
 Returns an array of strings representing potential input formats for the transform. If not provided directly by the transform, results in an array containing the name of the transform.
 
+### `.outputFormat`
+
+```js
+var md = require('jstransformer')(require('jstransformer-markdown'))
+var outputFormat = md.outputFormat
+=> 'html'
+```
+
+Returns a string representing the default output format the transform would be expected to return when calling `.render()`.
+
 ## License
 
 MIT

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jade.git



More information about the Pkg-javascript-commits mailing list