@shelf/is-string-in-quotes

Check if string is inside quotation marks (22 styles)

Usage no npm install needed!

<script type="module">
  import shelfIsStringInQuotes from 'https://cdn.skypack.dev/@shelf/is-string-in-quotes';
</script>

README

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