@budarin/service-stub
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

service-stub

Proxy wrapper for deferring interactions with uninitialized services until readiness.

Install

yarn add @budarin/service-stub

Usage

import { createServiceStub } from '@budarin/service-stub';

const stub = createServiceStub('Service not initialized');

stub.log('Hi World!'); // => Error: Service not initialized

License

MIT

Package Sidebar

Install

npm i @budarin/service-stub

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

3.08 kB

Total Files

5

Last publish

Collaborators

  • budarin