MCPcopy
hub / github.com/csscomb/csscomb.js / processString

Method processString

src/core.js:241–245  ·  view source on GitHub ↗

* Processes a string. * * @param {String} text * @param {{context: String, filename: String, syntax: String}} options * @returns {Promise } Resolves in processed string

(text, options)

Source from the content-addressed store, hash-verified

239 * @returns {Promise<string>} Resolves in processed string
240 */
241 processString(text, options) {
242 return this._parseString(text, options)
243 .then(this._processTree.bind(this))
244 .then((ast) => ast.toString());
245 }
246
247 /**
248 * Add a plugin.

Callers 15

shouldBeEqualMethod · 0.80
test.jsFile · 0.80
shouldBeEqualMethod · 0.80
test.jsFile · 0.80
test.jsFile · 0.80
test.jsFile · 0.80
test.jsFile · 0.80
processStringAgainFunction · 0.80
test.jsFile · 0.80
test.jsFile · 0.80
test.jsFile · 0.80
test.jsFile · 0.80

Calls 1

_parseStringMethod · 0.95

Tested by

no test coverage detected