Socket
Socket
Sign inDemoInstall

node-normalizer

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-normalizer - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

5

lib/normalizer.js

@@ -126,3 +126,8 @@ var fs = require('fs');

msg = msg.replace(/\s+/g, " ");
msg = msg.replace(/(’|‘)/g, "'");
msg = msg.replace(/(“|”)/g, '"');
msg = msg.replace(/(–|—)/g, "—");
msg = msg.replace(/[^\x00-\x7F]/g, "");
var fileItor = function(item1, next1) {

@@ -129,0 +134,0 @@

2

package.json
{
"name": "node-normalizer",
"version": "0.0.8",
"version": "0.0.9",
"description": "Normalize and clean text",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -63,3 +63,11 @@

it("Fix ASCII characters", function() {
norm.clean("What’s up").should.eql("what is up");
norm.clean("What's up").should.eql("what is up");
norm.clean("I said “shut up”").should.eql('I said "shut up"');
norm.clean("œ").should.eql('');
});
});
});
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