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

icecream

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icecream - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

19

icecream/controller.js

@@ -125,2 +125,21 @@ var utils = require('./utils');

prototype.string = function(file, key){
if(!this.context.getObject("strings", file)){
var stringsDir = this.context.get("appDir")+"/strings/"+file;
var data = fs.readFileSync(stringsDir);
if(data){
var object = {};
var strings = data.toString().split('\n');
for(var i in strings){
var string = strings[i];
var key = string.split('=')[0];
var val = string.split('=')[1];
object[key] = val;
}
this.context.setObject("strings", file, object);
}
}
var strings = this.context.getObject("strings", file);
return strings[key];
}

@@ -127,0 +146,0 @@ prototype.load = function(file, options){

2

package.json
{
"name": "icecream",
"version": "0.2.0",
"version": "0.2.1",
"description": "rapid web framework for nodejs",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/nodengine/icecream",

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