open-index/open-npm huggingface dataset:
npm package: @smellman/sprite-one
Description: Generate sprite images and json without mapnik
Author: Taro Matsuzawa
Latest version: 0.0.3

# Generate sprite image and json without Mapnik

## Install

```bash
yarn add @smellman/sprite-zero
```

or

```bash
npm install @smellman/sprite-zero
```

## Usage

```javascript
import { generateSprite } from '@smellman/sprite-one'

generateSprite('../out', '../input', 2).then(() => {})
```

## Develop

via `bin/index.ts`

```bash
git clone https://github.com/smellman/sprite-one.git
cd sprite-one
yarn
npx ts-node bin/index.ts ../../tmp/out ../../tmp/maki/icons
npx ts-node bin/index.ts ../../tmp/out ../../tmp/maki/icons --ratio=2
```
npm package: @smellycatfinance/uikit
Description: Set of UI components for pancake projects
Latest version: 0.11.20

# 🥞 Pancake UIkit

[![Version](https://img.shields.io/npm/v/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit) [![Size](https://img.shields.io/bundlephobia/min/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit)

Pancake UIkit is a set of React components and hooks used to build pages on Pancake's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @pancakeswap-libs/uikit`

## Setup

### Theme

Before using Pancake UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pancakeswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pancakeswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://pancakeswap.github.io/pancake-uikit/)
npm package: @smertins27/ldap-auth-wrapper
Description: Wiederverwendbares LDAP Self-Authentication Package
Author: Sebastian Mertins
Latest version: 1.2.0

## @smertins27/ldap-auth-wrapper

Reusable LDAP self-authentication package built on top of `ldap-authentication`.
It wraps the typical configuration and returns a consistent result object.

### Installation

```bash
npm install @smertins27/ldap-auth-wrapper
```

### Features

- LDAP self-authentication (user binds with own credentials)
- Simple result object: `{ authenticated, user, error }`
- Usable as a class or a helper function
- TypeScript types included

### Usage

#### 1) Direct call via helper function

```ts
import { authenticateLdapUser } from '@smertins27/ldap-auth-wrapper';

const result = await authenticateLdapUser({
  ldapOpts: { url: 'ldaps://ldap.example.org', tlsOptions: { rejectUnauthorized: false } },
  userDn: 'uid=jdoe,ou=people,dc=example,dc=org',
  userPassword: 'secret',
  attributes: ['dn', 'cn', 'mail'],
});

if (result.authenticated) {
  console.log('OK', result.user);
} else {
  console.log('FAIL', result.error);
}
```

#### 2) Reuse via the class

```ts
import { LdapSelfAuthenticator } from '@smertins27/ldap-auth-wrapper';

const authenticator = new LdapSelfAuthenticator({
  ldapOpts: { url: 'ldap://ldap.example.org' },
  userDn: 'uid=jdoe,ou=people,dc=example,dc=org',
  attributes: ['dn', 'cn', 'mail'],
});

const result = await authenticator.authenticate('secret');
```

### Configuration

#### `SelfAuthConfig`

- `ldapOpts` (required): LDAP connection options.
- `userDn` (required): Distinguished Name of the user.
- `userPassword` (required): User password (only for `authenticateLdapUser`).
- `userSearchBase` (optional): Base DN for user lookup.
- `usernameAttribute` (optional): Username attribute (e.g. `uid`).
- `username` (optional): Username for self-auth.
- `attributes` (optional): LDAP attributes to return.
- `groupsSearchBase` (optional): Base DN for group lookup.
- `groupClass` (optional): LDAP group class (e.g. `groupOfNames`).
- `groupMemberAttribute` (optional): Group membership attribute.
- `starttls` (optional): Enable StartTLS.

#### `LdapOptions`

- `url` (required): LDAP URL, e.g. `ldap://` or `ldaps://`.
- `tlsOptions` (optional): TLS settings (e.g. `rejectUnauthorized`).
- `connectTimeout` (optional): Timeout in ms.

### Return value

`AuthenticationResult`:

```ts
{
  authenticated: boolean;
  user?: LdapUser | null;
  error?: unknown;
}
```

On success, `user` contains LDAP data; otherwise it is `null`. If an error occurs
(for example from the underlying LDAP library), `error` is set.

### Notes

- Errors are caught and returned as `authenticated: false`.
- This package uses `ldap-authentication` under the hood.

### License

MIT