Huge News!Announcing our $40M Series B led by Abstract Ventures.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

frequency finder

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

frequence

Finds frequency of words/letters in a given string

const Frequence = require('frequence');

let freq = Frequence.words('hello world');
console.log(freq);
//{ HELLO: 1, WORLD: 1 }

freq = Frequence.letters('hello world');
console.log(freq);
//{ H: 1, E: 1, L: 3, O: 2, W: 1, R: 1, D: 1 }

API takes options as an optional 2nd argument.

options = {
    caseSensitive: false|true,      //default false
    keepSpecialChars: false|true    //default false
}

FAQs

Package last updated on 24 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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