# @js-dot/frame

> Micro-Framework Utilities

Latest version **38.4.1** (published 2025-04-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install @js-dot/frame
pnpm add @js-dot/frame
yarn add @js-dot/frame
bun add @js-dot/frame
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 38.4.1 |
| Published | 2025-04-30 |
| First published | 2022-06-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 126.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | protyliss@gmail.com |
| Maintainers | protyliss |

## Links

- npm: https://www.npmjs.com/package/@js-dot/frame
- Homepage: https://protyliss.github.io/js-dot
- npm.io page: https://npm.io/package/@js-dot/frame

## Recent versions

- 38.4.1 (latest) — 2025-04-30
- 38.4.0 — 2025-04-23
- 38.2.3 — 2025-02-20
- 38.2.0 — 2025-02-12
- 24.127.4 — 2024-05-08
- 24.127.3 — 2024-05-08
- 24.127.0 — 2024-05-08
- 24.123.3 — 2024-05-07
- 24.123.1 — 2024-05-03
- 24.123.0 — 2024-05-03
- 24.114.0 — 2024-04-24
- 24.98.0 — 2024-04-08
- 24.46.2 — 2024-02-16
- 24.46.1 — 2024-02-16
- 24.46.0 — 2024-02-15
- … 43 more at https://npm.io/package/@js-dot/frame/versions

## README

# @js-dot/frame

| Name                                                            | Version                                        | Downloads                                        |
|-----------------------------------------------------------------|------------------------------------------------|--------------------------------------------------|
| [@js-dot/__frame__   ](https://npmjs.com/package/@js-dot/frame) | ![](https://img.shields.io/npm/v/@js-dot/core) | ![](https://img.shields.io/npm/dm/@js-dot/frame) |

Makes Framework

## Submodules

* @js-dot/frame/__template__

---

## rely

`rely` is dependency injection like `inject` as commonly in other module.
Makes easy singleton patterns without change original source as simply explain.

```js
class Foo {}

const a = rely(Foo);
const b = rely(Foo);

console.assert(a === b, 'a and b is not a same instance');
```

`relyify` and `relify` are compound word of `rely` + `-ify`,  mean to make something available to `rely` function.

```js
class Foo {}
class Bar {}

// make Foo `rely-ify` as Bar
relyify({token: Foo, class: Bar});

const a = rely(Foo);
const b = rely(Bar);

console.assert(a === b, 'a and b is not a same instance')
```

Use `relyify` to `rely` anything.

```js
relyify({
    token: 'foo',
    value: 1,
    // this option makes token 'foo' as available to re-rely-ify
    override: true
});

// Returns 1
let foo = rely('foo');

relyify({
    token: 'foo',
    value: 2
});

// Returns 2
foo = rely('foo');
```

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