MCPcopy
hub / github.com/css/csso / encodeString

Function encodeString

lib/syntax.js:5–12  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

3import specificity from './restructure/prepare/specificity.js';
4
5function encodeString(value) {
6 const stringApostrophe = string.encode(value, true);
7 const stringQuote = string.encode(value);
8
9 return stringApostrophe.length < stringQuote.length
10 ? stringApostrophe
11 : stringQuote;
12}
13
14const {
15 lexer,

Callers 1

generateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…