letter-press
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -24,3 +24,3 @@ // based on 1000ch/node-github-markdown | ||
return pug.renderFile(path.resolve(__dirname, './ghmd.pug'), { | ||
return pug.renderFile(path.join(__dirname, 'ghmd.pug'), { | ||
pretty: true, | ||
@@ -27,0 +27,0 @@ title: title, |
@@ -6,3 +6,3 @@ const fs = require('fs') | ||
module.exports = (id, md, opts) => { | ||
const dist = opts.dist ? opts.dist : path.join(__dirname, 'dist') | ||
const dist = opts.dist ? opts.dist : path.resolve('dist') | ||
if (!fs.existsSync(dist)) fs.mkdirSync(dist) | ||
@@ -9,0 +9,0 @@ write(path.join(dist, id + '.md'), md) |
{ | ||
"name": "letter-press", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -11,3 +11,3 @@ { | ||
"github": "dapibus", | ||
"intro": "Dear Sir/Madam" | ||
"salutation": "Dear Sir/Madam" | ||
}, | ||
@@ -22,3 +22,3 @@ { | ||
"github": "parturient", | ||
"intro": "To whom it may concern" | ||
"salutation": "To whom it may concern" | ||
} | ||
@@ -25,0 +25,0 @@ ], |
module.exports = (date, from, to) => | ||
`<p style="text-align: right">${date}</p> | ||
${from.intro}, | ||
${from.salutation}, | ||
@@ -6,0 +6,0 @@ Nullam quis risus eget urna mollis ornare vel eu leo the ${to.position} position at ${to.company}. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4869