# sort-value

> A JavaScript utility library to generate sort values (floating point).

Latest version **0.0.1** (published 2017-10-02) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install sort-value
pnpm add sort-value
yarn add sort-value
bun add sort-value
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-10-02 |
| First published | 2017-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Eric Vera |
| Maintainers | ericvera |
| Keywords | sort, key, float |

## Links

- npm: https://www.npmjs.com/package/sort-value
- Repository: https://github.com/ericvera/sort-value
- Homepage: https://github.com/ericvera/sort-value#readme
- Issues: https://github.com/ericvera/sort-value/issues
- npm.io page: https://npm.io/package/sort-value

## Dependencies (1)

- [decimal.js](https://npm.io/package/decimal.js.md) ^7.2.1

## Recent versions

- 0.0.1 (latest) — 2017-10-02

## README

# sort-value
A JavaScript utility library to generate sort values (floating point).

<p>
  <a href="https://npmjs.org/package/sort-value">
    <img src="https://img.shields.io/npm/v/sort-value.svg?style=flat-square">
  </a>
</p>

# Usage

Install the module:

```sh
npm install sort-value --save
```

### ES6
```js
import nameInitials from 'sort-value';

const initials = nameInitials('John Smith');

console.log(initials);
// Output: JS
```

### Pre-ES6
```js
var nameInitials = require('sort-value');

var initials = nameInitials('John Smith');

console.log(initials);
// Output: JS
```

# Input => Output
* E. => E
* Eric => E
* E. Vera => EV
* Eric V. => EV
* Eric A. E. => EA
* Eric A. E. Vera => EV
* Eric A. Vera => EV
* Eric A. Vera Perez => EV
* Eric Vera-Perez => EV
* Eric A. Vera-Perez => EV
* Eric Vera Perez => EV
* Eric A. de Vera Perez => ED
* Eric A. de Vera-Perez => ED
* Eric A. Perez-de Vera => EP
* Eric A. Perez de Vera => EP
* Eric (Instructor Somewhere) => E
* Éric Vera => ÉV
* Vera-Perez => VP
* Eric "No Nickname" Vera => E

# License
[MIT](https://github.com/ericvera/sort-value/blob/master/LICENSE)

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