open-index/open-npm huggingface dataset:
npm package: @rezwanul7/boilerplate-js
Description: > A framework-agnostic JavaScript/TypeScript package boilerplate. > Use this as a starting point to build and publish reusable packages quickly. > > 👉 See **[TEMPLATE.md](./TEMPLATE.md)** for the copy-paste guide.
Latest version: 1.1.0

# @rezwanul7/boilerplate-js

> A framework-agnostic JavaScript/TypeScript package boilerplate.
> Use this as a starting point to build and publish reusable packages quickly.
>
> 👉 See **[TEMPLATE.md](./TEMPLATE.md)** for the copy-paste guide.

## Features

- Framework-agnostic (works with Node.js, browsers, and most bundlers)
- TypeScript-friendly with bundled type definitions
- Multiple entry points via subpath exports
- Tree-shakable utilities
- Ready for monorepos and standalone npm publishing

---

## Installation

### From npm registry

```bash
npm install @rezwanul7/boilerplate-js
# or
pnpm add @rezwanul7/boilerplate-js
```

### Inside a monorepo (workspace)

Add the dependency in your app's `package.json`:

```json
{
  "dependencies": {
    "@rezwanul7/boilerplate-js": "workspace:*"
  }
}
```

Then run from the monorepo root:

```bash
pnpm install
```

---

## Entry Points

| Import path                          | Description                                    |
| ------------------------------------ | ---------------------------------------------- |
| `@rezwanul7/boilerplate-js`          | Main entry — core utilities                    |
| `@rezwanul7/boilerplate-js/slugify`  | Convert a string to a URL-safe slug            |
| `@rezwanul7/boilerplate-js/currency` | Format a number as a localized currency string |

---

## Usage

### Core utility

```ts
import { log } from "@rezwanul7/boilerplate-js";

log("Hello from the boilerplate");
```

### Slugify

```ts
import { slugify } from "@rezwanul7/boilerplate-js/slugify";

slugify("Hello World!");
// "hello-world"
```

### Currency formatting

```ts
import { formatCurrency } from "@rezwanul7/boilerplate-js/currency";

formatCurrency(1234.5, "en-US", "USD");
// "$1,234.50"
```

---

## API Overview

### `slugify`

```ts
slugify(input: string): string
```

Converts a string into a URL-safe slug.

Example:

```ts
slugify("Hello World!");
// hello-world
```

---

### `formatCurrency`

```ts
formatCurrency(amount: number, locale?: string, currency?: string): string
```

Formats a number into a localized currency string using `Intl.NumberFormat`.

Example:

```ts
formatCurrency(1000, "en-US", "USD");
// "$1,000.00"
```

---

## Compatibility

- **Node.js:** >= 18
- **TypeScript:** >= 5.x (optional for runtime)
- Works in **Node.js**, **modern browsers**, and **bundlers**

---

## License

MIT License. See [LICENSE](./LICENSE) for details.
npm package: @rezza.io/workflow
Description: Durable Workflow Engine from rezza.io
Latest version: 0.5.5

# @rezza.io/workflow

## Getting Started

### Install

With NPM

```bash
npm add @rezza.io/workflow
```

With bun

```bash
bun add @rezza.io/workflow
```

### Create a workflow

```ts
import { WorkflowBuilder } from "@rezza.io/workflow";

const workflow = WorkflowBuilder.create()
  .addGroup("input")
  .addNode({ key: "name", group: "input" }, () => "World")
  .addNode({ key: "greeting", deps: ["name"] }, ({ get }) => `Hello, ${get("name")}!`)
  .build();

const result = await workflow.run();
console.log(result.greeting); // Output: "Hello, World!"
```