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

gettext-parser

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gettext-parser - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

2

lib/poparser.js

@@ -30,3 +30,3 @@ var encoding = require("encoding"),

this._charset = "utf-8";
this._file = fileContents;
this._fileContents = fileContents;
}else{

@@ -33,0 +33,0 @@ this._handleCharset(fileContents);

{
"name": "gettext-parser",
"description": "Parse and compile gettext po and mo files to/from json, nothing more, nothing less",
"version": "0.1.8",
"version": "0.1.9",
"author" : "Andris Reinman",

@@ -6,0 +6,0 @@ "homepage": "http://github.com/andris9/gettext-parser",

@@ -77,3 +77,3 @@ gettext-parser

"another context":{
"example":{
"%s example":{
"msgctx": "another context",

@@ -80,0 +80,0 @@ "msgid": "%s example",

@@ -18,2 +18,16 @@ var gettextParser = require(".."),

module.exports["UTF-8 as string"] = {
setUp: function(callback){
this.po = fs.readFileSync(__dirname + "/fixtures/utf8.po", 'utf-8');
this.json = JSON.parse(fs.readFileSync(__dirname + "/fixtures/utf8-po.json", "utf-8"));
callback();
},
parse: function(test){
var parsed = gettextParser.po.parse(this.po);
test.deepEqual(parsed, this.json);
test.done();
}
}
module.exports["Latin-13"] = {

@@ -20,0 +34,0 @@ setUp: function(callback){

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