# jsmp-infra-art-test-publish

> This module is used for studying purposes

Latest version **1.0.2** (published 2018-04-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install jsmp-infra-art-test-publish
pnpm add jsmp-infra-art-test-publish
yarn add jsmp-infra-art-test-publish
bun add jsmp-infra-art-test-publish
```

## 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.2 |
| Published | 2018-04-08 |
| First published | 2018-04-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 96.8 KB |
| Known vulnerabilities | 0 (+9 in 1 direct dependencies) |
| Install scripts | no |
| Author | Artem Chetverikov |
| Maintainers | art_chetya |
| Keywords | jsmp, multiply, greeting |

## Links

- npm: https://www.npmjs.com/package/jsmp-infra-art-test-publish
- npm.io page: https://npm.io/package/jsmp-infra-art-test-publish

## Dependencies (1)

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

## Recent versions

- 1.0.2 (latest) — 2018-04-08
- 1.0.1 — 2018-04-08
- 1.0.0 — 2018-04-08

## README

# **JSMP INFRA TEST**

## Description

It is just a package created for test purposes.

## Install

#### Browser

```
<script src='path/to/jsmp-infra-art-test-publish'></script>
```
#### NPM

```
npm install --save jsmp-infra-art-test-publish
```

## Usage

### Require
Function that accepts array and number multiply elements of this array by this number and returns modified array
```javascript
const { multiplyArray } = require('jsmp-infra-art-test-publish');

multiplyArray([1, 2, 3], 3); 
// => [3, 6, 9]

multiplyArray([1, 'a', 2, 'b', 3], 3); 
// => [3, 6, 9], all non-numeric elements were removed

multiplyArray([1, 2, 3]);
 // => [2, 4, 6], default multiplier is 2
```

Function that accept string and returns greeting

```javascript
const { greeting } =  require('jsmp-infra-art-test-publish');

greeting('Mike'); // => 'Hello, Mike!'
greeting(); // => 'Hello, Artem!' => 'Artem' is a default value
greeting(123); // => 'Hello, Artem!' => 'Artem' is a default value
```

### ES6 import
Function that accepts array and number multiply elements of this array by this number and returns modified array
```javascript
import { multiplyArray } from 'jsmp-infra-art-test-publish';

multiplyArray([1, 2, 3], 3); 
// => [3, 6, 9]

multiplyArray([1, 'a', 2, 'b', 3], 3); 
// => [3, 6, 9], all non-numeric elements were removed

multiplyArray([1, 2, 3]);
 // => [2, 4, 6], default multiplier is 2
```

Function that accept string and returns greeting

```javascript
import { greeting } from 'jsmp-infra-art-test-publish';

greeting('Mike'); // => 'Hello, Mike!'
greeting(); // => 'Hello, Artem!' => 'Artem' is a default value
greeting(123); // => 'Hello, Artem!' => 'Artem' is a default value
```

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