MCPcopy Index your code
hub / github.com/HenrikJoreteg/html-parse-stringify / attrString

Function attrString

src/stringify.js:1–10  ·  view source on GitHub ↗
(attrs)

Source from the content-addressed store, hash-verified

1function attrString(attrs) {
2 const buff = []
3 for (let key in attrs) {
4 buff.push(key + '="' + attrs[key] + '"')
5 }
6 if (!buff.length) {
7 return ''
8 }
9 return ' ' + buff.join(' ')
10}
11
12function stringify(buff, doc) {
13 switch (doc.type) {

Callers 1

stringifyFunction · 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…