open-index/open-npm huggingface dataset:
npm package: @fruitwisdom/egg-passport-jwt
Description: [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down
Author: sunhao
Latest version: 1.0.2

# egg-passport-jwt




<!--
Description here.
-->


简单的对 passport-jwt 进行了封装。  直接就可以使用。  这只是一个策略，使用还需依赖  egg-passport

需要注意

1. 生成 token 需要用 jsonwebtoken 包。 且 key 用 系统 config 里面的默认 key。
2. 默认 egg 有 csrf 安全。 所以要在 插件里过滤 或者关掉。
3. 默认验证 需要置空 successReturnToOrRedirect:null 否则返回 404.

## Install

```bash
$ npm i @fruitwisdom/egg-passport-jwt --save
```

## Usage

```js
// {app_root}/config/plugin.js
exports.passportJwt = {
  enable: true,
  package: '@fruitwisdom/egg-passport-jwt',
};
```


## Example

<!-- example here -->
[例子](https://github.com/sunhaokk/eggjs-template/tree/jwt)
```
const jsonwebtoken = require('jsonwebtoken')

...
  router.get('/api/login', async (ctx) => {
    const token = jsonwebtoken.sign({
      name: "jwt",
    }, 
    app.config.keys, 
    { expiresIn: '24h'}
    );
    ctx.body = `bearer ${token}`
  })
  
  const jwt = app.passport.authenticate('jwt', {session:false, successReturnToOrRedirect:null});
  router.get('/api', jwt, controller.home.admin);
...
```
## Questions & Suggestions

Please open an issue [here](https://github.com/eggjs/egg/issues).

## License

[MIT](LICENSE)
npm package: @fruk/simulator-core
Description: FIRST Robotics Simulator Core
Latest version: 1.8.11

# Simulator Core

# setup

after installing node:

```sh
$ npm install
$ npm run start-web
```

then browsing to http://localhost:8080 should show you the results. any changes made to the code will cause a reload.

## Adding a New Demo

To add a new demo for local development / testing purposes, follow these steps:

1. Add a new Canvas to the index.html file

```
<!DOCTYPE html>
<html>
  <head>
    <style>
      body {
        display: flex;
        flex-direction: column;
        align-items: center;
      }
    </style>
  </head>
  <body>
    <canvas id="demo1" width="800" height="600"></canvas>
    + <canvas id="demo2" width="800" height="600"></canvas>
    <!-- NOTE: SCRIPTS WILL BE AUTOMATICALLY ADDED BY WEBPACK BELOW THIS COMMENT -->
  </body>
</html>
```

2. Add a new demo file to [src/demos](src/demos/)
3. Add the demo to the [webpack.config.js](webpack.config.js) in the entry points object

```
entry: {
    demo1: "./src/demos/demo1.ts",
    demo2: "./src/demos/demo2.ts"
},
```

4. Run `npm run start-web`. At this point, any changes you make to your new demo file should be reflected on [localhost:8080](http://localhost:8080)

# using as a module (local development)

```sh
$ npm install
$ npm run build
$ npm link
```

Then in the project you want to use this module in, run:

```sh
$ npm link @fruk/simulator-core
```
npm package: @frukmruk/state
Description: @frukmruk helpers for React state management
Author: Upstart LLC
Latest version: 0.1.12

# 1. Quick start

```

import React from "react";
import { useFrukState } from ".";

const Comp = ({ anyProp = 1 } = {}) => {
  const state = useFrukState({ anyProp });

  return (
    <div>
      <button
        onClick={() => {
          state.anyProp = state.anyProp + 1;
        }}
        data-testid="#1"
      >
        Click me
      </button>
      <span data-testid="#2">
        Jello from comp {state.anyProp} {JSON.stringify(state)}
      </span>
    </div>
  );
};

somewhere in App.js

...

return <Comp />

...

```
# 2.1. Combining with @frukmruk/html

```
import { fruktal } from "@frukmruk/html";
import { useFrukState } from "@frukmruk/state";

import "./App.css";

const App = () => {
  const state = useFrukState({ title: "Heading" });

  return (
    <>
      {fruktal`


        =========================================


        div#main
        ---------------------------------------
        :class flex flex-col md:flex-row md:flex-wrap
        :class justify-start
        :class p-4
        :class w-screen 
        :class min-h-screen
        ---------------------------------------


        =========================================

            div#heading
            ---------------------------------------
            :class mb-6 p-2
            :class h-16 md:w-full
            :class text-2xl
            ---------------------------------------
                #${state.title}
            ---------------------------------------

      `}
    </>
  );
};

export default App;
```

# 2.2. Combining with @frukmruk/html events

https://codesandbox.io/s/frukmruk-state-event-example-dlf2lu

```
import { fruktal } from "@frukmruk/html";
import { useFrukState } from "@frukmruk/state";

import "./App.css";

const App = () => {
  const state = useFrukState({ title: "Heading" });

  const onButtonClick = () => {
    console.log({ msg: "Button clicked" });
  };

  return (
    <>
      {fruktal`


        =========================================


        div#main
        ---------------------------------------
        :class flex flex-col md:flex-row md:flex-wrap
        :class justify-start
        :class p-4
        :class w-screen 
        :class min-h-screen
        ---------------------------------------


        =========================================

            div#heading
            ---------------------------------------
            :class mb-6 p-2
            :class h-16 md:w-full
            :class text-2xl
            ---------------------------------------
                ${state.title}
            ---------------------------------------

        =========================================
            
            button#mybutton
            :class bg-blue-200
            :onClick ${onButtonClick}
                My button


          =========================================


      `}
    </>
  );
};

export default App;

```
npm package: @fruko-gazoz/deneme
Description: Deneme Modülü
Author: fruko-gazoz
Latest version: 0.0.1

# discord.js-commands-handler
## About 
A package to Sync your bot's Slash Commands and manage interactions

- Quickly registers new Slash Commands
- Auto deletes deleted Slash Commands
- Managing Interactions

## [Example Usage](https://replit.com/@Fruko-Gazoz/discordjs-commands-handler)

Instaling discord.js-commands-handler

```sh-session
npm i discord.js-commands-handler
```

index.js (exemple)

```js
const { Client, Intents } = require("discord.js")
const client = new Client({ intents: [Intents.FLAGS.GUILDS] })

const commands_handler = require("discord.js-commands-handler")

client.on("ready", () => {
  console.log(`Logged in as ${client.user.tag}!`)

  commands_handler(client, "commands")
})

client.login("token")
```

command file (commands/ping.js)

```js
module.exports = {
  name: "ping",
  description: "Replies with Pong!",
//options: [] => interaction options (optional),
//guild: "" => guild id (optional),
  execute (client, interaction, options) {
    interaction.reply('Pong!')
  }
}
npm package: @frullah/vue-validation-components
Description: Vue validation components is a Vue component combined with vee-validate.
Latest version: 0.2.3

# vue-validation-components

Vue validation components is a Vue component combined with vee-validate.

I made this for myself project that using the validation with vee-validate

## Installation

### npm

```sh
npm install vue-validation-components
```

### yarn

```sh
yarn add vue-validation-components
```

## Usage

### FormWithValidation

```typescript
  /** props */

  // form submit callback
  onSubmit: Function


  /** slot props */

  // form submit processing state
  processing: boolean

  // invalid form state, derived from vee-validate ValidationObserver
  invalid: boolean

```
npm package: @frumu/trace-share
Description: npm wrapper for trace-share binary
Latest version: 0.0.4

# @frumu/trace-share

npm wrapper package for the `trace-share` CLI binary.

## Install

```bash
npm i -g @frumu/trace-share
```

## Usage

```bash
trace-share --help
```

The package installs a platform-specific binary from GitHub Release assets.

Project docs and proposal:

- https://github.com/frumu-ai/trace-share
npm package: @fruster/errors
Description: Simplifies Fruster error handling
Author: Joel Söderström
Latest version: 1.0.0-alpha.8
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Fruster errors

Define fruster errors with minimal code repetition.

## Installation

    npm install --save @fruster/errors

## Usage

See `examples/example.js`.