Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

contemplate

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contemplate - npm Package Compare versions

Comparing version 0.0.3 to 0.0.5

20

contemplate.js
/*!
/*!
* contemplate

@@ -14,13 +14,13 @@ * JavaScript pico template engine

/**
* Contemplate
* Contemplate,
*
* @param {String} template template
* @param {Object} data data
* @return {String}
* @return {String}
* @api private
*/
exports.contemplate = function (template, data) {
return template.replace(regexp, function (tag, key) {
return contemplate.find(data, key);
var contemplate = exports.contemplate = function (template, data) {
return template.replace(regexp, function (tag, key) {
return contemplate.find(data, key);
});

@@ -37,7 +37,7 @@ };

/**
* Find the property of 'data' located in 'path'
* Find the property of 'data' located in 'path'.
*
* @param {Object} data data
* @param {String} path path of the property to find
* @return the property of 'data' located in 'path'
* @return the property of 'data' located in 'path'
* @api private

@@ -49,4 +49,4 @@ */

path.split('.').forEach(function (part) {
temp = temp[part];
path.split('.').forEach(function (part) {
temp = temp[part];
});

@@ -53,0 +53,0 @@

{
"author": "Enrico Marino <enrico.marino@email.com> (http://onirame.no.de)",
"name": "contemplate",
"description": "JavaScript pico small peta fast template engine",
"version": "0.0.3",
"description": "JavaScript pico template engine",
"version": "0.0.5",
"homepage": "https://github.com/onirame/contemplate",

@@ -7,0 +7,0 @@ "repository": {

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