open-index/open-npm huggingface dataset:
npm package: @slashnephy/eslint-config
Description: [![Check](https://github.com/SlashNephy/eslint-config/actions/workflows/check.yml/badge.svg)](https://github.com/SlashNephy/eslint-config/actions/workflows/check.yml?query=branch%3Amaster) [![npm](https://img.shields.io/npm/v/%40slashnephy%2Feslint-config
Author: SlashNephy
Latest version: 3.0.301

# eslint-config

[![Check](https://github.com/SlashNephy/eslint-config/actions/workflows/check.yml/badge.svg)](https://github.com/SlashNephy/eslint-config/actions/workflows/check.yml?query=branch%3Amaster)
[![npm](https://img.shields.io/npm/v/%40slashnephy%2Feslint-config)](https://www.npmjs.com/package/@slashnephy/eslint-config)

## Install

```console
pnpm add -D @slashnephy/eslint-config
```

## Usage (for Flat Configs)

`eslint.config.ts` or `eslint.config.mts`

```typescript
import { config } from '@slashnephy/eslint-config'

export default config(
  {
    ignores: [
      '__generated__/**',
    ],
  },
  {
    // If tsconfig.json is not recognized, try this:
    languageOptions: {
      parserOptions: {
        tsconfigRootDir: import.meta.dirname,
      },
    },
  },
  {
    // Your custom config...
  },
)
```
npm package: @slashnotes/monaco-editor-esm
Description: ES module version for [Monaco Editor](https://github.com/microsoft/monaco-editor)
Latest version: 1.0.2

# monaco-editor-esm

ES module version for [Monaco Editor](https://github.com/microsoft/monaco-editor)

## Installing

    npm install @slashnotes/monaco-editor-esm

## Usage

```ts
import { monaco } from '@slashnotes/monaco-editor-esm'
```
npm package: @slashtagsdev/slashauth
Description: slashtags authentication
Latest version: 0.0.1

# slashtags-auth

## Installation

```bash
npm install @slashtags/slashauth
```

## Usage

### HTTP

#### Server side

```js
const { AuthServer } = require('@slashtags/slashauth')

// create keyPair
const keyPair = crypto.createKeyPair()

const authz = ({ publicKey, token }) => {
  // NOTE: by the moment this method will be called signature will alreayd be verified
  return {
    status: 'ok',
    token: 'Bearer 123'
  }
}

const magiclink = ({ publicKey }) => {
  // NOTE: by the moment this method will be called signature will alreayd be verified
  return {
    status: 'ok',
    ml: 'http://localhost:8000/v0.1/users/123'
  }
}

  const server = new SlashAuthServer({
    authz,
    magiclink,
    keypair
    // port - to run server on (default 8000)
    // host - to run server on (default localhost)
    // route - route for auth (default auth)
    // version - version of auth (default v0.1)
  })

  await server.start()

const slashauthURL = server.fromatURL(token)

```

#### Client side

See https://github.com/slashtags/slashauth-client

```js
const { AuthClient, crypto } = require('@slashtags/slashauth-client')

// create keyPair
const keyPair = crypto.createKeyPair()
// use authServer's publicKey for pinning
const client = new AuthClient({ keyPair, remotePublicKey })

const response = await client.authz(slashauthURL)
// { status: 'ok', token: 'Bearer 123' }

const link = await client.magiclik(slashauthURL)
// { status: 'ok', ml: 'https://www.example.com?q=foobar' }

```
npm package: @slashtagsdev/slashtags-request
Description: slashtags request for rpc
Author: dzdidi
Latest version: 1.0.0

# Noise RPC request


```
sendRequest ({
  method, // rpc method
  url, // slashtags url
  params, // request params
  keypair, // slashtags keypair
  headers = { 'Content-Type': 'application/json'},
  curve = edCurve, // key type
  prologue = Buffer.alloc(0) // handshake prologue
})
```
npm package: @slashtoolkit/root.extended.js
Description: Additional toolkit required to be used in the Root.js project
Author: Sean
Latest version: 0.0.21

# Slash Toolkit

This repo/module contains favorite libraries/modules and predefined that our developer :heart: to use.

### Development

Initialize the project:

`npm install`

and then develop in `src/`.

After done, please do a `npm run build` before push.

(Warning: Simplied steps only above :-P)

#### Contribution

You need to:

- [ ] Use ES6 or later (inform if you are using later)
- [ ] Make sure to checkout to `feature/YOUR_FEATURE` and make a pull request to `master`
- [ ] Pass all ESlint before you commit
- [ ] Make sure you use the latest module version

# Thanks!

Slash.co :heart: Coding <2018 />