# @types/power-radix

> TypeScript definitions for power-radix

Latest version **2.5.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/power-radix
pnpm add @types/power-radix
yarn add @types/power-radix
bun add @types/power-radix
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.5.2 |
| Published | 2023-11-07 |
| First published | 2020-10-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/power-radix
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/power-radix
- npm.io page: https://npm.io/package/@types/power-radix

## Recent versions

- 2.5.2 (latest) — 2023-11-07
- 2.5.0 (ts3.2) — 2020-10-19
- 2.5.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/power-radix`

# Summary
This package contains type definitions for power-radix (https://github.com/cflynn07/power-radix).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/power-radix.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/power-radix/index.d.ts)
````ts
/**
 * Convert number from source radix to target radix
 * with optional custom character encoding
 * http://www.deimel.org/comp_sci/conversion.htm
 */
declare class PowerRadix {
    /**
     * Creates a new instance of PowerRadix
     */
    constructor(digits: string | number | number[], sourceRadix: number | number[]);

    /**
     * Convert to target radix, return as Array
     * @param targetRadix - target radix / encoding characters
     * @return  source digits converted to target radix presented in format of Array
     */
    toArray(targetRadix: number | string[]): string[];

    /**
     * Convert to target radix, return as String
     *
     * @param targetRadix - target radix / encoding characters
     * @return - source digits converted to target radix presented in format of Array
     */
    toString(targetRadix: number | string[]): string;
}

export = PowerRadix;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Piotr Błażejewicz](https://github.com/peterblazejewicz).

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