open-index/open-npm huggingface dataset:
npm package: @lucasflsantos/agekey-core
Description: Core AgeKey SDK package providing authentication and token management functionality.
Latest version: 0.1.10

# @deshina/agekey-core

Core AgeKey SDK package providing authentication and token management functionality.

## Installation

```bash
npm install @deshina/agekey-core
```

## Quick Start

```typescript
import { init, verifyAge, requestToken } from "@deshina/agekey-core";

// Initialize SDK
init({
  apiKey: "your-api-key",
  apiBaseUrl: "https://agekey-auth.richiemuhammed.workers.dev"
});

// Verify age
const result = await verifyAge({
  email: "user@example.com",
  apiKey: "your-api-key",  // Required if not set in init()
  userId: "user-123"       // Optional
});

// Get stored token
const token = await requestToken();
```

## API Reference

### `init(config)`

Initialize the SDK with configuration.

```typescript
init({
  apiKey: string;           // API key (optional, can be passed in verifyAge)
  apiBaseUrl?: string;      // Worker URL (optional)
  endpoint?: string;        // Legacy: same as apiBaseUrl
});
```

### `verifyAge(request)`

Verify user age. Requires `email` and `apiKey` (if not set in init).

```typescript
const result = await verifyAge({
  email: string;            // Required
  apiKey?: string;          // Required if not set in init()
  userId?: string;          // Optional
});
```

Returns: `{ verified: boolean, age?: number, token?: string }`

### `requestToken()`

Get the stored token after verification.

### Configuration Priority

1. `config.apiBaseUrl` (explicit override)
2. `config.endpoint` (legacy, for backward compatibility)
3. Environment variable (`AGEKEY_API_BASE_URL` or `VITE_AGEKEY_API_BASE_URL`)
4. Default: `https://api.agekey.com`

## Environment Variables

- **Node.js/React Native**: `AGEKEY_API_BASE_URL`
- **Vite/Web**: `VITE_AGEKEY_API_BASE_URL` (requires VITE_ prefix)
npm package: @lucasfrosty/eslint-config
Description: My personal eslint-config (prettier + eslint with airbnb style-guide)
Author: lucasfrosty
Latest version: 1.1.3

## @lucasfrosty/eslint-config

My personal eslint-config file. It uses the airbnb style-guide with Prettier for auto formatting

### How to use it:

1.  Install the following packages into you project:

```bash
npm i @lucasfrosty/eslint-config babel-eslint prettier eslint@4.9.0 eslint-config-airbnb@16.1.0 eslint-config-prettier@2.9.0 eslint-plugin-import@2.7.0 eslint-plugin-jsx-a11y@6.0.2 eslint-plugin-prettier@2.6.0 eslint-plugin-react@7.4.0 --save-dev
```

2.  Next create a file with the name of `.eslintrc` on the root folder of the project.

3.  Inside the `.eslintrc` file just add the following:

```json
{
  "extends": "@lucasfrosty/eslint-config"
}
```

And that's it!! You'll be using both Prettier and ESLint using the Airbnb style-guide
npm package: @lucasftz/use-form
Description: A powerful form library for error handling and managing input values without the need for controlled components, allowing you to write more concise and readable code.
Author: lucasftz
Latest version: 1.0.2

# @lucasftz/use-form

> A powerful form library for error handling and managing input values without the need for controlled components, allowing you to write more concise and readable code.

[![NPM](https://img.shields.io/npm/v/@lucasftz/use-form.svg)](https://www.npmjs.com/package/@lucasftz/use-form) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @lucasftz/use-form
```

## Quickstart

```tsx
import React from 'react'

import { useForm } from '@lucasftz/use-form'

interface FormData {
  username: string;
}

function Example() {
  const { formHandler, errors } = useForm<FormData>({
    schema: {
      username: (value) => value.length > 3,
    },
  });

  const handleSubmit = formHandler(({ e, formData }) => {});

  return (
    <form onSubmit={handleSubmit}>
      <input name="username" />
      <button>Submit</button>
    </form>
  );
}
```

## API

```ts
interface ReturnType<T> {
  errors: { [Key in keyof T]: boolean },
  formHandler: ({ e, formData }: { e: SyntheticEvent<HTMLFormElement>, formData: T }) => void
}

interface Props<T> {
  schema: { [Key in keyof T]: (value: T[Key]) => boolean }
}

function useForm<TFormData>({ schema }: Props<TFormData>): ReturnType<TFormData> {
  // ...
}
```
The useForm hook returns a function with an object with two properties as a parameter:

`formHandler` is a function that takes a callback function as its argument. This callback function will be called when the form is submitted and all validation checks are successful. The callback function receives an object with two properties: e, the form event, and formData, an object containing the form data.

`errors` is an object with the keys of FormData and a boolean value of if that key has errored. This is revalidated on every submit.

`schema` (required prop) is an object that defines the validation rules for the form fields. Each key corresponds to a field in the form, and the value is a validation function that receives the field value as its argument and returns a boolean indicating whether the value is valid.

## License

MIT © [lucasftz](https://github.com/lucasftz)
npm package: @lucasfurtado/number-formatter
Description: `npm install @lucasfurtado/number-formmater`
Author: Lucas F Oliveira
Latest version: 1.0.0

Number Formatter
=========================================

A small library that adds commas to numbers

## Installation

  `npm install @lucasfurtado/number-formmater`


## Usage

    var numFormatter = require('@lucasfurtado/number-formatter')

    var formattedNum = numFormatter(12345)

  Output should be `12,345`

## Test

  `npm test`

## Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
npm package: @lucasfurtado/pluralize
Description: A Node.js module that returns he plural form of any noun
Author: Lucas F Oliveira
Latest version: 1.0.0

# pluralize

A Node.js module that returns he plural form of any noun

## Installation
```sh
npm install mypluralize --save
yarn add mypluralize
```

## Usable

### JavaScript

```javascript
var pluralise = require('mypluralize');
var boys = pluralise.getPlural('Boy');
```
```sh
Output should be 'Boys'
```

### TypeScript

```typescript
import { getPlural } from 'mypluralize';
console.log(getPlural('Goose'))
```
```sh
Output should be 'Geese'
```

## Test

```sh
npm run test
yarn run test
```
npm package: @lucasg04/docxtopdf
Description: Convert docx files to pdf. No external dependencies. No HTTP requests.
Author: LucasG04
Latest version: 1.0.1

# docxToPdf

Converts a docx file to a pdf file.

Advantages:
- No external dependencies needed (like Libre Office)
- No HTTP request to APIs

Disadvantage:
- Works only for simple docx files

## Usage

```javascript
var fs = require('fs/promises');
var convertFile = require('docxToPdf').convertFile;
var convertBuffer = require('docxToPdf').convertBuffer;

async function file() {
    var path = require('path');     
    var file = path.join(__dirname, 'demo.docx'); 
    await convertFile(file, 'file.pdf')
}

async function buffer() {
    var path = require('path');     
    var file = path.join(__dirname, 'demo.docx'); 
    var buf = (await fs.readFile(file)).buffer
    var res = await convertBuffer(buf);
    fs.writeFile('buf.pdf', res)
}

file()
buffer()
```