# plp

> ## Create

Latest version **1.0.4** (published 2019-04-04) · 0 weekly downloads

## Install

```sh
npm install plp
pnpm add plp
yarn add plp
bun add plp
```

## 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 | 2019-04-04 |
| First published | 2017-03-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 380 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Denis Ivanov |
| Maintainers | teniryte |

## Links

- npm: https://www.npmjs.com/package/plp
- Repository: git@lab.lpchat.ru:lpchat/plp
- npm.io page: https://npm.io/package/plp

## Recent versions

- 1.0.4 (latest) — 2019-04-04
- 1.0.3 — 2019-04-01
- 1.0.2 — 2018-05-27
- 0.0.27 — 2018-05-27
- 0.0.26 — 2018-01-10
- 0.0.25 — 2017-12-20
- 0.0.24 — 2017-12-20
- 0.0.23 — 2017-12-20
- 0.0.22 — 2017-12-09
- 0.0.21 — 2017-11-18
- 0.0.20 — 2017-11-18
- 0.0.19 — 2017-11-17
- 0.0.17 — 2017-09-23
- 0.0.16 — 2017-09-23
- 0.0.15 — 2017-09-23
- … 6 more at https://npm.io/package/plp/versions

## README

# plp

<hr> <!-- ================================================================== -->

### aliases

Define object's properties aliases.

#### Arguments

- `object`
- `aliases`

#### Example

```js
const aliases = require('plp/aliases');

aliases(data, {
  'getOptions': ['option', 'options'],
});
```

<hr> <!-- ================================================================== -->

### flatten

Flatten array or object.

#### Arguments

- `data`
- `parentName`
- `skipArrays`
- `maxLevel`

#### Example

```js
const flatten = require('plp/flatten');

var data = flatten(d, null, true);
```

<hr> <!-- ================================================================== -->

### rextend

Require `plp` modules and extend given object.

#### Arguments

- `context`
- `requires`

#### Example

```js
const _ = require('lodash');

require('plp/rextend')(_, {
  aliases: 'aliases',
  classMeta: 'class-meta',
});
// or
require('plp/rextend')(_, 'aliases', 'class-meta');

_.aliases(...);

_.classMeta(...);
```

<hr> <!-- ================================================================== -->

### classMeta

Class-oriented meta tools.

#### Example

- ``

```js
const classMeta = require('plp/class-meta');

// Get methods names
var names = classMeta.methodsNames(Class, [exclude]);

// Get static method names
var names = classMeta.staticMethodsNames(Class, [exclude]);

// Get methods object (binded to self)
var methods = classMeta.methods(Class, self, exclude);

// Get static methods object (binded to Class)
var methods = classMeta.staticMethods(Class, exclude);
```

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