# add-non-breaking-spaces

> Useful helpers to add needed non-breaking spaces on string

Latest version **1.0.0** (published 2020-04-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install add-non-breaking-spaces
pnpm add add-non-breaking-spaces
yarn add add-non-breaking-spaces
bun add add-non-breaking-spaces
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-04-03 |
| First published | 2020-04-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Antoine Demailly |
| Maintainers | antoinedemailly |
| Keywords | helper, util, non-breaking, punctuation, spaces, string |

## Links

- npm: https://www.npmjs.com/package/add-non-breaking-spaces
- Repository: https://github.com/Antoine-Demailly/add-non-breaking-spaces
- Homepage: https://github.com/Antoine-Demailly/add-non-breaking-spaces#readme
- Issues: https://github.com/Antoine-Demailly/add-non-breaking-spaces/issues
- npm.io page: https://npm.io/package/add-non-breaking-spaces

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-04-03

## README

# Add non-breaking spaces

> Set of useful functions to handle non-breaking spaces in character strings


## Available languages

- FR (French/France)
- EN (English) **TODO**

## FR (French/France)

### Import/require the method

``` javascript
// ES6 modules
import addNonBreakingSpaces from 'add-non-breaking-spaces/fr';

// node.js way
const addNonBreakingSpaces = require('add-non-breaking-spaces/fr');
```

### Usage

``` javascript
const str = `
  Caius : Hé les connards ! Vous pouvez faire griller un porcelet s’il vous plaît ?
  Arthur : Les connards ?
  Léodagan : S’il vous plaît ?
`;

addNonBreakingSpaces(str);
// will return:
/*
  Caius&nbsp;: Hé les connards&nbsp;! Vous pouvez faire griller un porcelet s’il vous plaît&nbsp;?
  Arthur&nbsp;: Les connards&nbsp;?
  Léodagan&nbsp;: S’il vous plaît&nbsp;?
*/
```

## License

[MIT](http://opensource.org/licenses/MIT)

**Copyright (c) 2020-present — Antoine Demailly**

---
_Source: https://npm.io/package/add-non-breaking-spaces · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
