@shelf/is-string-in-quotes
Version:
Check if string is inside quotation marks (22 styles)
24 lines (15 loc) • 814 B
Markdown
is-string-in-quotes [](https://circleci.com/gh/shelfio/is-string-in-quotes/tree/master)  [](https://www.npmjs.com/package/@shelf/is-string-in-quotes)
Check if string is inside quotation marks. Supports 22 quotation styles ([source](https://en.wikipedia.org/wiki/Quotation_mark#Summary_table))
# Install
```
yarn add @shelf/is-string-in-quotes
```
# Usage
```js
const {isStringInQuotes} = require('@shelf/is-string-in-quotes');
isStringInQuotes('«hello»');
isStringInQuotes('„hello”');
isStringInQuotes('"hello"');
```
# License
MIT © [Shelf](https://shelf.io)