open-index/open-npm huggingface dataset:
npm package: @nedomas/oauth2-server
Description: Complete, framework-agnostic, compliant and well tested module for implementing an OAuth2 Server in node.js
Latest version: 4.0.0-dev.2

# oauth2-server

[![npm Version][npm-image]][npm-url]
[![npm Downloads][downloads-image]][downloads-url]
[![Test Status][travis-image]][travis-url]
[![MIT Licensed][license-image]][license-url]
[![oauthjs Slack][slack-image]][slack-url]

Complete, compliant and well tested module for implementing an OAuth2 server in [Node.js](https://nodejs.org).


## Installation

```bash
npm install oauth2-server
```

The *oauth2-server* module is framework-agnostic but there are several officially supported wrappers available for popular HTTP server frameworks such as [Express](https://npmjs.org/package/express-oauth-server) and [Koa](https://npmjs.org/package/koa-oauth-server). If you're using one of those frameworks it is strongly recommended to use the respective wrapper module instead of rolling your own.


## Features

- Supports `authorization_code`, `client_credentials`, `refresh_token`, `implicit` and `password` grant, as well as *extension grants*, with scopes.
- Can be used with *promises*, *Node-style callbacks*, *ES6 generators* and *async*/*await* (using [Babel](https://babeljs.io)).
- Fully [RFC 6749](https://tools.ietf.org/html/rfc6749.html) and [RFC 6750](https://tools.ietf.org/html/rfc6750.html) compliant.
- Implicitly supports any form of storage, e.g. *PostgreSQL*, *MySQL*, *MongoDB*, *Redis*, etc.
- Complete [test suite](https://github.com/oauthjs/node-oauth2-server/tree/master/test).


## Documentation

[Documentation](https://oauth2-server.readthedocs.io) is hosted on Read the Docs.


## Examples

Most users should refer to our [Express](https://github.com/oauthjs/express-oauth-server/tree/master/examples) or [Koa](https://github.com/oauthjs/koa-oauth-server/tree/master/examples) examples.

Examples for v3 are yet to be made. 

## Upgrading from 2.x

This module has been rewritten using a promise-based approach, introducing changes to the API and model specification. v2.x is no longer supported.

Please refer to our [3.0 migration guide](https://oauth2-server.readthedocs.io/en/latest/misc/migrating-v2-to-v3.html) for more information.


## Tests

To run the test suite, install dependencies, then run `npm test`:

```bash
npm install
npm test
```


[npm-image]: https://img.shields.io/npm/v/oauth2-server.svg
[npm-url]: https://npmjs.org/package/oauth2-server
[downloads-image]: https://img.shields.io/npm/dm/oauth2-server.svg
[downloads-url]: https://npmjs.org/package/oauth2-server
[travis-image]: https://img.shields.io/travis/oauthjs/node-oauth2-server/master.svg
[travis-url]: https://travis-ci.org/oauthjs/node-oauth2-server
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg
[license-url]: https://raw.githubusercontent.com/oauthjs/node-oauth2-server/master/LICENSE
[slack-image]: https://slack.oauthjs.org/badge.svg
[slack-url]: https://slack.oauthjs.org
npm package: @nedomas/react-scrolllock
Description: Prevent scroll on the body when component is mounted.
Author: Joss Mackison
Latest version: 5.0.1

# React Scroll Lock

Prevent scroll on the `<body />` when a component is mounted.

## Install

```bash
yarn add react-scrolllock
```

## Usage

```js
import ScrollLock, { TouchScrollable } from 'react-scrolllock';

class Modal extends Component {
  state = { lockScroll: false }
  render() {
    return (
      <div>
        ...
        // the lock accepts a single child element, which supports touch-scrolling.
        <ScrollLock>
          <ElementWithScrollableContent>...</ElementWithScrollableContent>
        </ScrollLock>

        // if your app structure doesn't allow wrapping like above, the `TouchScrollable`
        // component is exposed as a named export.
        <ScrollLock />
        <TouchScrollable>
          <ElementWithScrollableContent>...</ElementWithScrollableContent>
        </TouchScrollable>

        // you can also toggle the lock based on some state.
        <ScrollLock isActive={this.state.lockScroll} />
      </div>
    );
  }
}
```

## Props

#### ScrollLock

| Property                       | Description                                                                    |
| :----------------------------- | :----------------------------------------------------------------------------- |
| accountForScrollbars `boolean` | Default: `true` -- Whether or not to replace the scrollbar width when active. |
| isActive `boolean` | Default: `true` -- Whether or not the lock is active. |
| children `element` | Default: `null` -- This element is wrapped internally by the TouchScrollable component. |

#### TouchScrollable

Wrap an element in the `TouchScrollable` component if you need an area that supports scroll on mobile.

This is necessary because the `touchmove` event is explicitly cancelled &mdash; iOS doesn't observe `overflow: hidden;` when applied to the `<body />` element 😢

| Property                 | Description                                    |
| :----------------------- | :--------------------------------------------- |
| children `element` | `ref => element` | **Required** The element that can be scrolled. |
npm package: @nedomas/untld
Description: The only TLD manager you need for your JS applications. For 340 bytes.
Author: Marnix Janssen
Latest version: 1.2.3

# Untld 👾

The **zero-dependency** ~_400B_ TLD manager for your Javascript projects.

# Install

```
npm install --save untld
```

# Usage

```
// Ex. domain: https://github.com/mjanssen

import untld from 'untld';

// Get information about the current domain
untld();

{
  protocol: 'https://',
  domain: 'github',
  tld: 'com',
  path: '/mjanssen',
  query: {},
}

// Get information about any other domain
untld({
  domain: 'https://some.domain.co.uk/this-is-the/path?q=something-here',
});

{
  protocol: 'https://',
  domain: 'some.domain',
  tld: 'co.uk',
  path: '/this-is-the/path',
  query: { q: 'something-here' },
}

// If you have to support other special double tlds
untld({
  domain: 'https://some.other.domain.in.ua/this-is-the/path',
  customTlds: ['in.ua'],
});

{
  protocol: 'https://',
  domain: 'some.other.domain',
  tld: 'in.ua',
  path: '/this-is-the/path',
  query: {},
}
```

# Demo

Code demo [can be found here](https://codesandbox.io/s/6w3wxz73vw)

# License

[MIT](https://oss.ninja/mit/mjanssen/)
npm package: @nedpals/disco-js
Description: <h1 align="center">Disco</h1> <p align="center">   <img src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" />   <a href="LICENSE">     <img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" target="_b
Latest version: 1.0.2-1

<h1 align="center">Disco</h1>
<p align="center">
  <img src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" />
  <a href="LICENSE">
    <img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" target="_blank" />
  </a>
  <a href="https://twitter.com/npned">
    <img alt="Twitter: npned" src="https://img.shields.io/twitter/follow/npned.svg?style=social" target="_blank" />
  </a>
</p>

> Create Discord bots fast. Easy and simple-to-use. 100% made in Typescript.

### 🏠 [Homepage](https://nedpals.github.io/disco)

## Install

```sh
npm install @nedpals/disco-js
```

## Usage

Create a Discord bot file.
```javascript
// HelloWorldBot.js
const Disco = require("@nedpals/disco-js");

class HelloWorld extends Disco.Bot {
  constructor(client) {
    super(client);

    this.commands = {
      'hello': this.hello
    };
  }

  ready() {
    console.log("Hello world bot is ready!");
    this.client.user.setActivity(`Serving ${client.guilds.size} servers`);
  }

  hello(message, args) {
    // The user will send "/hello James" to the server.
    // And the bot, in return, will send "Hello, James!" back to the server. 
    message.channel.send(`Hello, ${args[0]}!`);
  }
}

module.exports = HelloWorld;
```

Create an `.env` file for storing sensitive credentials such as `.
```env
DISCORD_TOKEN=<DISCORD TOKEN HERE>
```

Install and run the bot.
```bash
  ./node_modules/.bin/disco run ./HelloWorldBot.js
```

The bot will start.
```bash
Bot is starting...
Hello World! # It triggers the "ready" event.
```

## Author

👤 **Ned Palacios**

* Twitter: [@npned](https://twitter.com/npned)
* Github: [@nedpals](https://github.com/nedpals)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!<br />Feel free to check [issues page](https://github.com/nedpals/disco/issues).

## Show your support

Give a ⭐️ if this project helped you!

## 📝 License

Copyright © 2019 [Ned Palacios](https://github.com/nedpals).<br />
This project is [MIT](LICENSE) licensed.

***
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_