MCPcopy
hub / github.com/exceljs/exceljs / pushAttribute

Function pushAttribute

lib/utils/xml-stream.js:11–13  ·  view source on GitHub ↗
(xml, name, value)

Source from the content-addressed store, hash-verified

9const CLOSE_SLASH_ANGLE = '/>';
10
11function pushAttribute(xml, name, value) {
12 xml.push(` ${name}="${utils.xmlEncode(value.toString())}"`);
13}
14function pushAttributes(xml, attributes) {
15 if (attributes) {
16 const tmp = [];

Callers 2

pushAttributesFunction · 0.85
addAttributeMethod · 0.85

Calls 2

toStringMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…