New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

scaffe

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scaffe - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

lib/eval.js

22

lib/generator.js
const fs = require("fs")
const ejs = require("ejs")
const ncp = require("ncp")
const path = require("path")
const glob = require("glob")
const eval = require("./eval.js")
ncp.limit = 16
const eval = (filepath, newpath, values) => {
const filename = path.basename(filepath)
if(filename[0] == "_"){
const content = fs.readFileSync(filepath)
const eval_content = ejs.render(content.toString(), values)
newpath = path.join(path.dirname(newpath), filename.substr(1))
fs.writeFile(newpath, eval_content, (err) => {
if (err) throw err
})
return false
}
return true
}
module.exports = (templateDir, outDir, values, cb) => {

@@ -30,0 +10,0 @@ fs.mkdir(outDir, (err) => {

{
"name": "scaffe",
"version": "0.1.4",
"version": "0.1.5",
"description": "A Scaffolding Utility",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {

@@ -10,0 +7,0 @@ "type": "git",

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