github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/test/integration/test-fixtures/npm-lock/node_modules/collapse-white-space/readme.md (about)

     1  # collapse-white-space
     2  
     3  [![Build][build-badge]][build]
     4  [![Coverage][coverage-badge]][coverage]
     5  [![Downloads][downloads-badge]][downloads]
     6  [![Size][size-badge]][size]
     7  
     8  Replace multiple whitespace characters with a single space.
     9  
    10  ## Install
    11  
    12  This package is ESM only: Node 12+ is needed to use it and it must be `import`ed
    13  instead of `require`d.
    14  
    15  [npm][]:
    16  
    17  ```sh
    18  npm install collapse-white-space
    19  ```
    20  
    21  ## Use
    22  
    23  ```js
    24  import {collapseWhiteSpace} from 'collapse-white-space'
    25  
    26  collapseWhiteSpace('\tfoo \n\tbar  \t\r\nbaz') //=> ' foo bar baz'
    27  ```
    28  
    29  ## API
    30  
    31  This package exports the following identifiers: `collapseWhiteSpace`.
    32  There is no default export.
    33  
    34  ### `collapseWhiteSpace(value)`
    35  
    36  Replace multiple whitespace characters in `value` (`string`) with a single
    37  space.
    38  
    39  ## License
    40  
    41  [MIT][license] © [Titus Wormer][author]
    42  
    43  <!-- Definitions -->
    44  
    45  [build-badge]: https://github.com/wooorm/collapse-white-space/workflows/main/badge.svg
    46  
    47  [build]: https://github.com/wooorm/collapse-white-space/actions
    48  
    49  [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/collapse-white-space.svg
    50  
    51  [coverage]: https://codecov.io/github/wooorm/collapse-white-space
    52  
    53  [downloads-badge]: https://img.shields.io/npm/dm/collapse-white-space.svg
    54  
    55  [downloads]: https://www.npmjs.com/package/collapse-white-space
    56  
    57  [size-badge]: https://img.shields.io/bundlephobia/minzip/collapse-white-space.svg
    58  
    59  [size]: https://bundlephobia.com/result?p=collapse-white-space
    60  
    61  [npm]: https://docs.npmjs.com/cli/install
    62  
    63  [license]: license
    64  
    65  [author]: https://wooorm.com