open-index/open-npm huggingface dataset:
npm package: @somfuncky/biscuit
Description: A typescript library designed to make cookie management object-oriented and developer-friendly.
Author: Ndjengwes Ruben
Latest version: 1.0.1

# 🍪 Biscuit

**An object-oriented TypeScript library to manage cookies in JavaScript without the repetitive parsing.**

---

## ✨ Philosophy

Managing cookies in JavaScript has always been awkward—manually splitting strings, decoding values, and formatting expiration dates by hand.

**Biscuit** offers a modern, object-oriented API to manage cookies in a clean, readable, and reusable way—especially for developers who love TypeScript and maintainable code.

> Cookies shouldn't be crumbs of spaghetti code.

---

## 🎯 Goals

- Provide an intuitive object-oriented API to work with cookies
- Eliminate repetitive string manipulation
- Be fully type-safe and developer-friendly
- Work both in browsers and SSR environments

---

## 👩‍💻 Who is this for?

- Frontend developers using JavaScript or TypeScript
- Developers building web apps that rely on session, auth, or preference cookies
- Anyone tired of writing `document.cookie = "name=value"` and then parsing it later

---

## 📦 Installation

With npm

```bash
npm install @somfuncky/biscuit
```

## INTRODUCTION

* 🚫 The Old Way (Vanilla JavaScript)

```js
// Set a cookie
document.cookie = "theme=dark; Path=/; Secure";

// Read cookies
const allCookies = document.cookie.split("; ").reduce((acc, pair) => {
  const [key, val] = pair.split("=");
  acc[key] = decodeURIComponent(val);
  return acc;
}, {});

console.log(allCookies["theme"]); // "dark"
```

* ✅ The Biscuit Way

```js
import { CookieManager, Cookie } from 'biscuit';

// Create a manager instance
const cookies = new CookieManager();

// Set a cookie
cookies.set(new Cookie('theme', 'dark', { path: '/', secure: true }));

// Read a cookie
const theme = cookies.get('theme');
console.log(theme?.value); // "dark"

// Check existence
console.log(cookies.has('theme')); // true

// Delete a cookie
cookies.delete('theme');
```

### 🔧 API Reference

**Cookie:**
```js
new Cookie(name: string, value: string, options?: CookieOptions)
```

**CookieOptions**

```ts
interface {
  path?: string;
  domain?: string;
  expires?: Date;
  secure?: boolean;
  httpOnly?: boolean;
}
```

**CookieManager**

_Main utility to interact with cookies_

**Methods**

* set(cookie: Cookie) — Add or update a cookie
* get(name: string): Cookie | null — Get a cookie by name
* has(name: string): boolean — Check if a cookie exists
* delete(name: string) — Delete a cookie
* (more coming soon: getAll(), clear(), etc.)

## 🤝 Contributing
Pull requests and issues are welcome!

## 🧁 License
MIT — Use it freely, bake your own improvements 🍪
npm package: @sominaththore/react-native-custom-status-bar
Description: This is a customized status bar for both Android and iOS
Author: Sominath Thore
Latest version: 1.1.0

# @sominaththore/react-native-custom-status-bar

A customizable status bar component for React Native applications, supporting both Android and iOS platforms.

## Features

- Set status bar color for both Android and iOS
- Customize status bar style (`light-content`, `dark-content`)
- Supports auto adjustment to the device's status bar height

## Installation

Using npm:
```bash
npm install @sominaththore/react-native-custom-status-bar
```

Using yarn:
```bash
yarn add @sominaththore/react-native-custom-status-bar
```

## Usage

Import and use the `CustomStatusBar` component in your React Native app:

```javascript
import React from 'react';
import { View, Text } from 'react-native';
import CustomStatusBar from '@sominaththore/react-native-custom-status-bar';

const App = () => {
  return (
    <View style={{ flex: 1, backgroundColor: '#f8f8f8' }}>
      {/* Customizable Status Bar */}
      <CustomStatusBar backgroundColor="#6200ea" barStyle="light-content" />
      
      <Text style={{ marginTop: 50, textAlign: 'center', fontSize: 20 }}>
        Hello, World!
      </Text>
    </View>
  );
};

export default App;
```

## Props

| Prop Name       | Type     | Default      | Description |
|---------------|----------|--------------|-------------|
| `backgroundColor` | `string` | `#ffffff` | Sets the status bar background color |
| `barStyle`    | `"light-content" \| "dark-content"` | `"dark-content"` | Sets the status bar text/icon color |
| `hidden`      | `boolean` | `false` | Hides or shows the status bar |

---

This package helps you customize the status bar easily in Android and iOS 🚀