open-index/open-npm huggingface dataset:
npm package: @robswei/better-auth
Description: The most comprehensive authentication library for TypeScript.
Latest version: 0.0.6

<p align="center">
  <picture>
    <source srcset="https://github.com/better-auth/better-auth/blob/main/banner-dark.png?raw=true" media="(prefers-color-scheme: dark)">
    <source srcset="https://github.com/better-auth/better-auth/blob/main/banner.png?raw=true" media="(prefers-color-scheme: light)">
    <img src="https://github.com/better-auth/better-auth/blob/main/banner.png?raw=true" alt="Better Auth Logo">
  </picture>
  <h2 align="center">
    Better Auth
  </h2>

  <p align="center">
    The most comprehensive authentication library for TypeScript
    <br />
    <a href="https://better-auth.com"><strong>Learn more »</strong></a>
    <br />
    <br />
    <a href="https://discord.gg/better-auth">Discord</a>
    ·
    <a href="https://better-auth.com">Website</a>
    ·
    <a href="https://github.com/better-auth/better-auth/issues">Issues</a>
  </p>
</p>




## Getting Started

```bash
pnpm install better-auth
```

Read the [Installation Guide](https://better-auth.com/docs/installation) to learn more.
npm package: @robszumski/simple-npm-package
Description: A simple npm package for demonstration purposes and use in a Node.js app.
Author: clarkio
Latest version: 0.0.2

<div align="center">

# Simple npm Package

A simple npm package for demonstration purposes and use in a Node.js app.

[![Known Vulnerabilities](https://snyk.io/test/github/clarkio/simple-npm-package/badge.svg)](https://snyk.io/test/github/clarkio/simple-npm-package)
![GitHub](https://img.shields.io/github/license/clarkio/simple-npm-package)
[![Discord](https://img.shields.io/discord/421902136457035777)](https://discord.gg/xB95beJ)
[![Twitch Status](https://img.shields.io/twitch/status/clarkio)](https://twitch.tv/clarkio)
<br>
[![Twitter Follow](https://img.shields.io/twitter/follow/_clarkio?style=social)](https://twitter.com/intent/follow?screen_name=_clarkio)

</div>

## Get Started

Follow these steps to publish your own npm package for your own project or using this project.

> This is using the CommonJS module format for use in Node.js apps. You can read more about CommonJS vs. ESM module formats in Node.js on the [LogRocket Blog](https://blog.logrocket.com/commonjs-vs-es-modules-node-js/)

1. [Create a GitHub Repository](https://github.com/new)
1. Clone the repo locally. Example `git clone https://github.com/clarkio/simple-npm-package.git`
1. Open your terminal and change directories to the folder of your cloned project. Example `cd simple-npm-package`
1. Run `npm init -y` to create a `package.json` file. Note: if you cloned this repository you won't need to do this step.
1. Update package.json name property with a scoped name. Example `@clarkio/simple-npm-package`. Be sure to use your username or organization name instead of mine.
1. Write code for the package (or just use the hello world example in `index.js`)
1. [Sign up with npm](https://www.npmjs.com/signup). Also for better security be sure to enable [two-factor authentication](https://docs.npmjs.com/configuring-two-factor-authentication) on your npm account.
1. Sign in with your npm account in your terminal using the command `npm login` and follow the on-screen instructions.
1. Run `npx npm-packlist` to see the contents that will be included in the published version of the package.
1. Run `npm publish --dry-run` to see what would be done when actually running the command.
1. Run `npm publish --access=public` to actually publish the package to npm. Note: --access=public is needed for scoped packages (`@clarkio/simple-npm-package`) as they're private by default. If it's not scoped and doesn't have the `private` field set to `true` in `package.json` it will be public as well.
npm package: @robtaussig/local-store-js
Description: Promise-based ORM to interface with IndexedDB
Author: Robert Taussig
Latest version: 0.5.1

# LocalStoreJS

## Getting Started

```
yarn add @robtaussig/local-store-js

#entry.js

// Return instance of LocalStore
const LocalStore = require('@robtaussig/local-store-js')({ global: false });

// Access through window.LocalStore
require('@robtaussig/local-store-js');
```

## Tutorial

### Include it without the global: false config, so that you can access it from devtools
```
window.LocalStore.demo();

// You can inspect the database schema in devtools -> Application -> IndexedDB -> LocalStore

window.LocalStore.insert({
  table: 'cars',
  object: {
    licensePlate: '43435',
    ownerEmail: 'abc@gmail.com',
    color: 'blue',
  }
});

// Search by indexed key
window.LocalStore.select({
  table: 'cars',
  where: {
    ownerEmail: 'abc@gmail.com',
  }
})
  .then(res => console.log(res));

// Search by primary key
window.LocalStore.select({
  table: 'cars'
}, '43435')
  .then(res => console.log(res));

```

#### Important: You can only search for keys in the where clause that have been indexed. For primary keys you do not need to use the where clause, but instead use the primary key as the second argument

## Creating Database

```
// Every time you make a change to the database schema, you must increment the database version (using integers only)
const DATABASE_VERSION = 1;
// You can seed data here as well
const DATABASE_SCHEMA = {
  tables: [
    {
      name: 'cars',
      primaryKey: 'licensePlate',
      indexes: [{
        name: 'Owner Email',
        key: 'ownerEmail',
      }]
    },
    {
      name: 'people',
      primaryKey: 'email',
    },
  ],
  // Seed data below
  objects: [
    {
      table: 'cars',
      object: {
        licensePlate: '12345',
        ownerEmail: 'robert.taussig@gmail.com',
        color: 'blue',
      },
    },
    {
      table: 'people',
      object: {
        email: 'robert.taussig@gmail.com',
      },
    },
  ],
};

window.LocalStore.createMigrations(DATABASE_SCHEMA, DATABASE_VERSION);
```

## Interface

### Migration
- tables: Array\<Table\>
- objects: [Array\<Object\>]

### Table

- name: String
- primaryKey: String
- indexes: [Array\<Index\>]

### Index

- name: [String]
- key: String

### Object

table: String
object: Object

### Query

- table: String
- where: [WhereQuery]

### WhereQuery

- key: value
npm package: @robthefivenine/redux-test-utils
Description: Test utils to simplify testing of containers in redux.
Author: RobTheFiveNine
Latest version: 1.0.0

# redux-test-utils [![](https://github.com/RobTheFiveNine/redux-test-utils/actions/workflows/test.yml/badge.svg?branch=stable)](https://github.com/RobTheFiveNine/redux-test-utils/actions/workflows/test.yml) [![](https://coveralls.io/repos/github/RobTheFiveNine/redux-test-utils/badge.svg?branch=stable)](https://coveralls.io/github/RobTheFiveNine/redux-test-utils?branch=stable)

This is a fork of the [knegusen/redux-test-utils](https://github.com/knegusen/redux-test-utils) library, with added support for [thunks](https://github.com/reduxjs/redux-thunk).


## Install

In the terminal execute the following command:

```
$ npm install @robthefivenine/redux-test-utils --save-dev
```

or

```
$ yarn add -D @robthefivenine/redux-test-utils
```

## How to use

### createMockStore

```js
import { createMockStore } from '@robthefivenine/redux-test-utils';

describe('example', () => {
  it('works', () => {
    const state = 'state';
    const store = createMockStore(state);
    const action = {
      type: 'type',
      data: 'data'
    };
    store.dispatch(action);
    
    expect(store.getAction(action.type)).toEqual(action);
    expect(store.getActions()).toEqual([action]);
    expect(store.isActionDispatched(action)).toBe(true);
    expect(store.isActionTypeDispatched(action.type)).toBe(true);
    expect(store.getState()).toBe(state);
  });
});
```

### createMockDispatch

```js
import { createMockDispatch } from '@robthefivenine/redux-test-utils';

describe('example', () => {
  it('works', () => {
    const state = 'state';
    const dispatchMock = createMockDispatch();
    const action = {
      type: 'type',
      data: 'data',
    };
    dispatchMock.dispatch(action);

    expect(dispatchMock.getAction(action.type)).toEqual(action);
    expect(dispatchMock.getActions()).toEqual([action]);
    expect(dispatchMock.isActionDispatched(action)).toBe(true);
    expect(dispatchMock.isActionTypeDispatched(action.type)).toBe(true);
  });
});
```
npm package: @robtucker/webpack-build
Description: Personal webpack build
Author: Rob Tucker
Latest version: 0.0.1

# webpack-build

Personal webpack build.

```
npm install -D @robtucker/webpack-build
```

Includes the following environments:

1. dev
- ts-loader
- source-map-loader
- css modules
- image-webpack-loader
- wepack-dev-server
- hot module replacement

2. prod
- concatenate js modules
- split vendor js in commons chunk
- minify js
- extracts and minify styles


# Usage
### Create webpack config file

Create a webpack config file, `webpack.config.js`, in your project root and add the following:

```javascript
const build = require('@robtucker/webpack-build');
const webpackMerge = require('webpack-merge');

const custom = {
    // your custom options go here
    entry: "./src/app.tsx",
}

module.exports = webpackMerge(build.getConfig(), custom)

```

### Create a .env file

You are expected to provide a `.env` file which will be used at compile time to configure your app. A `.env.example` file has been provided to demonstrate the format.

At the very beginning of the build process your .env file is loaded and parsed into json by the [dotenv](https://github.com/motdotla/dotenv) package. Webpack then uses the [Define Plugin](https://webpack.js.org/plugins/define-plugin) to make this object available inside your project as `process.env.CONFIG`.

If you are using typescript I highly recommend that you re-export this as a typed object:

```typescript
export interface ConfigModel {
    API_HOST: string
    APP_VERSION: string
    ENV: string
    GOOGLE_API_KEY: string
    SERVICE: string
    SUPPORT_EMAIL: string
}

export const config: ConfigModel = process.env.CONFIG
```

### Create a Handlebars template

If you are building for web, you must create an html file which represents the entry point of your app.

Webpack uses the [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) which expects to find a [handlebars](http://handlebarsjs.com/) template file, located at `src/index.hbs`.

The `HtmlWebpackPlugin` will add a bunch of stuff into your template, such as scripts, stylesheets, favicon, title etc... and then output your file as index.html.

Feel free to copy the demo provided in this repo.
npm package: @robturtle/ts-demo
Description: Yang's TypeScript project scaffold
Author: 2019+ Yang Liu
Latest version: 0.1.4

<!-- TITLE/ -->

<h1>Yang's TypeScript project scaffold</h1>

<!-- /TITLE -->

<!-- BADGES/ -->

<span class="badge-npmversion"><a href="https://npmjs.org/package/@robturtle/ts-demo" title="View this project on NPM"><img src="https://img.shields.io/npm/v/@robturtle/ts-demo.svg" alt="NPM version" /></a></span>
<span class="badge-travisci"><a href="http://travis-ci.com/robturtle/ts-demo" title="Check this project's build status on TravisCI"><img src="https://img.shields.io/travis/robturtle/ts-demo/master.svg" alt="Travis CI Build Status" /></a></span>
<span class="badge-coveralls"><a href="https://coveralls.io/r/robturtle/ts-demo" title="View this project's coverage on Coveralls"><img src="https://img.shields.io/coveralls/robturtle/ts-demo.svg" alt="Coveralls Coverage Status" /></a></span>
<span class="badge-daviddm"><a href="https://david-dm.org/robturtle/ts-demo" title="View the status of this project's dependencies on DavidDM"><img src="https://img.shields.io/david/robturtle/ts-demo.svg" alt="Dependency Status" /></a></span>

<!-- /BADGES -->

<!-- DESCRIPTION/ -->

Yang's TypeScript project scaffold

<!-- /DESCRIPTION -->

<!-- INSTALL/ -->

<h2>Install</h2>

<a href="https://npmjs.com" title="npm is a package manager for javascript"><h3>npm</h3></a>

<ul>
<li>Install: <code>npm install --save @robturtle/ts-demo</code></li>
<li>Import: <code>import * as pkg from ('@robturtle/ts-demo')</code></li>
<li>Require: <code>const pkg = require('@robturtle/ts-demo')</code></li>
</ul>

<!-- /INSTALL -->

## Usage

```js
import { plus } from '@robturtle/ts-demo';

console.log(plus(1, 1));
```

<!-- LICENSE/ -->

<h2>License</h2>

Unless stated otherwise all works are:

<ul><li>Copyright &copy; 2019+ <a href="http://medium.com/@yl3710">Yang Liu</a></li></ul>

and licensed under:

<ul><li><a href="http://spdx.org/licenses/MIT.html">MIT License</a></li></ul>

<!-- /LICENSE -->