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

frequence

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frequence - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

test/dump.txt

2

index.js

@@ -18,3 +18,3 @@ 'use strict';

if (!keepSpecialChars) {
data = data.replace(/[^0-9a-zA-Z_ ]/g, '');
data = data.replace(/[^0-9a-zA-Z ]/g, '');
}

@@ -21,0 +21,0 @@ if (!caseSensitive) {

{
"name": "frequence",
"description": "frequency finder",
"version": "0.1.0",
"version": "0.1.1",
"author": "@skoranga",

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

@@ -5,2 +5,3 @@ 'use strict';

const Frequence = require('../');
const Fs = require('fs');

@@ -38,2 +39,10 @@ describe('frequence', () => {

});
it('read words from file', () => {
let data = Fs.readFileSync(__dirname + '/dump.txt', {encoding: 'utf-8'});
let result = Frequence.letters(data);
Assert.ok(result);
Assert.equal(Object.keys(result).length, 36);
});
});
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