UNPKG

@thinql/parse

Version:
14 lines (12 loc) 411 B
import jju from 'jju/index.js'; import unquotedString from '../tokens/unquotedString.js'; const unquotedStringRegExp = new RegExp(`^${unquotedString.match.source}$`); const stringify = (content, literal = false) => { if (!literal && unquotedStringRegExp.test(content)) { return content; } else { return jju.stringify(content); } }; export default stringify; //# sourceMappingURL=stringify.js.map