Skip to content

shelfio/is-string-in-quotes

Repository files navigation

is-string-in-quotes CircleCI npm (scoped)

Check if string is inside quotation marks. Supports 22 quotation styles (source)

Install

$ yarn add @shelf/is-string-in-quotes

Usage

const {isStringInQuotes} = require('@shelf/is-string-in-quotes');

isStringInQuotes('«hello»');
isStringInQuotes('„hello”');
isStringInQuotes('"hello"');

License

MIT © Shelf