# same-names

> Identifying same names

Latest version **0.2.0** (published 2018-07-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install same-names
pnpm add same-names
yarn add same-names
bun add same-names
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2018-07-23 |
| First published | 2018-07-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 0 |
| Unpacked size | 10.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dumitru Cantea |
| Maintainers | mitica |
| Keywords | names, same-names |

## Links

- npm: https://www.npmjs.com/package/same-names
- Repository: https://github.com/Mitica/same-names
- Homepage: https://github.com/Mitica/same-names#readme
- Issues: https://github.com/Mitica/same-names/issues
- npm.io page: https://npm.io/package/same-names

## Recent versions

- 0.2.0 (latest) — 2018-07-23
- 0.1.4 — 2018-07-22
- 0.1.3 — 2018-07-22
- 0.1.2 — 2018-07-10
- 0.1.1 — 2018-07-10
- 0.1.0 — 2018-07-06

## README

# same-names

A nodejs module for identifying same names.

## Usage

```js
import getSameNames from 'same-names'

const putin = 'Владимир Путин';
const putinSameNames = getSameNames(putin, ['Владимира Путина', 'Владимира Путине', 'Владимира Путиным', 'Putin']);
//[
//    { name: 'Владимира Путина', rating: 0.87 },
//    { name: 'Владимира Путине', rating: 0.87 },
//    { name: 'Владимира Путиным', rating: 0.81 },
//]

```

## API

### (name: string, names: string[]): SameName[]

Finds same names in `names` for the given `name`.

```ts
type SameName = {
    name: string
    rating: number
}
```

`rating` is between `0` and `1`.

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