Socket
Socket
Sign inDemoInstall

cptmpl

Package Overview
Dependencies
45
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

test/fixtures/include.md

4

index.js

@@ -24,3 +24,5 @@ 'use strict'

const content = await fs.readFile(src, { encoding: 'utf8' })
const rendered = ejs.render(content, data)
const rendered = ejs.render(content, data, {
filename: src
})

@@ -27,0 +29,0 @@ // If we are not forcing, check for conflicts

{
"name": "cptmpl",
"version": "0.0.3",
"version": "0.0.4",
"description": "Copy and process a template file",

@@ -5,0 +5,0 @@ "author": "Wes Todd <wes@wesleytodd.com>",

@@ -76,2 +76,10 @@ 'use strict'

})
it('should support ejs includes', async function () {
await cptmpl(path.join(FIX_DIR, 'include.md'), path.join(TMP_DIR, 'include.md'), {
name: 'include'
})
assert(await fs.pathExists(path.join(TMP_DIR, 'include.md')))
assert(await fs.readFileSync(path.join(TMP_DIR, 'include.md')).includes('Hello include!'))
})
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc