# x-number

> JsDK of Number Class

Latest version **1.0.1** (published 2016-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install x-number
pnpm add x-number
yarn add x-number
bun add x-number
```

## 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.1 |
| Published | 2016-07-26 |
| First published | 2016-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Abdennour TOUMI |
| Maintainers | abdennour |
| Keywords | meta-class, prototype, jsdk, kit, extends |

## Links

- npm: https://www.npmjs.com/package/x-number
- npm.io page: https://npm.io/package/x-number

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads
- [@modern-js/plugin-swc](https://npm.io/package/@modern-js/plugin-swc.md) — 3.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-07-26
- 1.0.0 — 2016-07-16

## README

# x-number :

 JsDK of Number Class  

# Install :

```bash
npm install x-number --save;
```

# Features :


### 1. isEven :

```js
    var n=122;
    n.isEven(); // true
    (n+1).isEven(); //false
```



### 2. isOdd :    
```js
    var n=123;
    n.isOdd(); // true
    (n+1).isOdd(); //false
```

### 3. `..` :

 Make a range of numbers and out as Array :
  ```js
     (1)['..'](10);
      // [1,2,3,4,5,6,7,8,9,10]
      (3)['..'](5);
      // [3,4,5]
      (10)['..'](120,30) // increment by 30
      // [40,70,100]
  ```

### 4. toRoman :

  ```js
  var n=4;
  n.toRoman();
  //-- IV
  (61).toRoman();
  //--  LXI

  ```
### 5. fromRoman (static):
```js
Number.fromRoman('XXIII');
  // 23
```

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