0.0.1 • Published 8 years ago

wh-questions v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

wh-questions

This module allows you to count the number of wh-questions in a given string (text) or array. Here, it specifically count for the key words: (what || where || how || why || who || when).

Installation

  > npm install wh-questions

Usage

import count from 'wh-questions'

console.log(count('how what and where') ); // 3
console.log(count(['how', 'How', 'what', 'where']) ); // 4

spec

No api to mess with. Feed what's intended (string or array) and get your expected output (number).

No dependencies. few lines of codes.

Related

License

MIT © Mohamed Hayibor

0.0.1

8 years ago