1.1.1 • Published 7 months ago

@alvarosabu/core-pkg-test v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Core Library

A TypeScript library featuring a functional singleton pattern with configuration options.

Installation

pnpm add @alvarosabu/core-pkg-test

Usage

import { coreLibrary } from '@alvarosabu/core-pkg-test';

// Create the library instance with options
const lib = coreLibrary({
  debug: true,
  onInit: async () => {
    console.log('Custom initialization logic');
  }
});

// Initialize the library
await lib.initialize();

// Check if initialized
console.log(lib.isInitialized()); // true

// Get current options
console.log(lib.getOptions()); // { debug: true, onInit: [Function: onInit] }

Development

# Install dependencies
pnpm install

# Build the library
pnpm build

# Run in development mode with watch
pnpm dev

# Run linting
pnpm lint

# Format code
pnpm format

# Type checking
pnpm typecheck

License

ISC

1.1.1

7 months ago

1.1.0

7 months ago

1.0.0

7 months ago