# jsmp-infra-utils

> Utils package, that provides simple functions to work with arrays and strings

Latest version **1.0.4** (published 2020-04-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install jsmp-infra-utils
pnpm add jsmp-infra-utils
yarn add jsmp-infra-utils
bun add jsmp-infra-utils
```

## 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.4 |
| Published | 2020-04-02 |
| First published | 2020-04-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.19.0 |
| Dependencies | 1 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nazarii Romankiv |
| Maintainers | ayzrian |
| Keywords | strings, arrays |

## Links

- npm: https://www.npmjs.com/package/jsmp-infra-utils
- npm.io page: https://npm.io/package/jsmp-infra-utils

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2020-04-02
- 1.0.3 — 2020-04-02
- 1.0.2 — 2020-04-02
- 1.0.1 — 2020-04-02
- 1.0.0 — 2020-04-02

## README

## Functions

- replaceElements; Replace all elements of array with provided element
- replaceWords; Replace all words in string with provided string

## Examples

Here is example how to use replaceElements

```
const {replaceElements} = require("jsmp-infra-utils");

const array = [123, 15 ,55];
const newArray = replaceElements(array, "?");

console.log(newArray) // ["?", "?", "?"];

```

Here is example how to use replaceWords

```
const {replaceWords} = require("jsmp-infra-utils");

const string = "adsf, asdf fd";
const newString = replaceWords(string, "?");

console.log(newString) // "? ? ?";

```

---
_Source: https://npm.io/package/jsmp-infra-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
