Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

backOpen Source→object-flatten-referencing→Examples

Permalink to Table of ContentsTable of Contents

  • Quick Take
  • Wrap an already wrapped value when prevention is disabled
  • Insert a break even when the previous line already contains one
  • Normalise a string setting to an array
  • Avoid adding a break after a line that already ends with one
  • Wrap flattened string values with custom markers
  • Inspect the exported flattening defaults
  • Disable wrapping across the complete input tree
  • Skip wrapping for keys that match a glob
  • Skip wrapping only at an exact nested path
  • Flatten an array with line breaks between rows
  • Flatten an object's keys and values to strings
  • Use HTML rather than XHTML line-break syntax
  • Leave an ignored key and its nested value unchanged
  • Merge array rows without inserting line breaks
  • Flatten input keys even when the reference has no matching key
  • Leave an unmatched input key unchanged
  • Throw when an input key is absent from the reference
  • Set the separator used by flattenObject
  • Keep values that already contain the wrapping markers
  • Leave templating statements unwrapped
↑ back to top

Permalink to Quick TakeQuick Take

↑ back to top

Permalink to Wrap an already wrapped value when prevention is disabledWrap an already wrapped value when prevention is disabled

↑ back to top

Permalink to Insert a break even when the previous line already contains oneInsert a break even when the previous line already contains one

↑ back to top

Permalink to Normalise a string setting to an arrayNormalise a string setting to an array

↑ back to top

Permalink to Avoid adding a break after a line that already ends with oneAvoid adding a break after a line that already ends with one

↑ back to top

Permalink to Wrap flattened string values with custom markersWrap flattened string values with custom markers

↑ back to top

Permalink to Inspect the exported flattening defaultsInspect the exported flattening defaults

↑ back to top

Permalink to Disable wrapping across the complete input treeDisable wrapping across the complete input tree

↑ back to top

Permalink to Skip wrapping for keys that match a globSkip wrapping for keys that match a glob

↑ back to top

Permalink to Skip wrapping only at an exact nested pathSkip wrapping only at an exact nested path

↑ back to top

Permalink to Flatten an array with line breaks between rowsFlatten an array with line breaks between rows

↑ back to top

Permalink to Flatten an object's keys and values to stringsFlatten an object's keys and values to strings

↑ back to top

Permalink to Use HTML rather than XHTML line-break syntaxUse HTML rather than XHTML line-break syntax

↑ back to top

Permalink to Leave an ignored key and its nested value unchangedLeave an ignored key and its nested value unchanged

↑ back to top

Permalink to Merge array rows without inserting line breaksMerge array rows without inserting line breaks

↑ back to top

Permalink to Flatten input keys even when the reference has no matching keyFlatten input keys even when the reference has no matching key

↑ back to top

Permalink to Leave an unmatched input key unchangedLeave an unmatched input key unchanged

↑ back to top

Permalink to Throw when an input key is absent from the referenceThrow when an input key is absent from the reference

↑ back to top

Permalink to Set the separator used by flattenObjectSet the separator used by flattenObject

↑ back to top

Permalink to Keep values that already contain the wrapping markersKeep values that already contain the wrapping markers

↑ back to top

Permalink to Leave templating statements unwrappedLeave templating statements unwrapped

↑ back to top
back 

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab