open-index/open-npm huggingface dataset:
npm package: @sodadigital/smoothscroll
Description: A fork of a teeny tiny smooth scroll script with ease-in-out effect and no jQuery.
Author: Alice Lieutier
Latest version: 0.4.1

smoothScroll
============

A teeny tiny, standard compliant, smooth scroll script with ease-in-out effect and no dependancy.

smoothScroll will tie all your internal links to a handler that will produce a smooth scroll to their target instead of an instant jump. It also returns an API that you can use to call a smooth scroll yourself.

This works in Firefox, Chrome, IE10, Opera and Safari.
Unsupported browsers would just use the normal internal link behaviour.


How to use
-
Just include smoothscroll inside your page, like this:

    <script type="text/javascript" src="path/to/smoothscroll.min.js"></script>

All your internal links will be tied to a smooth scroll.
If you want to call a smooth scroll from your code, you can now use the API by calling:

`window.smoothScroll(target, duration, callback, context)`

where:
* `target` is a `HTMLElement Object` from your document that you want to scroll to, or a numeric position on the page
* `duration` is the total duration of the scroll (optional, defaults to 500ms)
* `callback` is a function to be executed when the scrolling is over (optional)
* `context` is the scrolling context (optional, defaults to window, can be any `HTMLElement Object`)

Alternatively, you can install smoothscroll as a dependency using npm:

```
npm install --save smoothscroll
```

Example usage as a module, binding to a custom element:

```javascript
var smoothScroll = require('smoothscroll');

var exampleBtn = document.querySelector('.example-button');
var exampleDestination = document.querySelector('.example-destination');

// This function can easily be an onClick handler in React components
var handleClick = function(event) {
  event.preventDefault();

  smoothScroll(exampleDestination);
};

exampleBtn.addEventListener('click', handleClick);
```

smoothscroll.js
-
Here are some indications if you want to tweak the code to fit your needs:

There is an ease-in-out type timing function. You can change it quite easily in the code. Here is where I found the one I use:
- http://blog.greweb.fr/2012/02/bezier-curve-based-easing-functions-from-concept-to-implementation/

You can also change the default duration of a scroll, which is 500ms by default.

My code is **heavily** commented so you shoudn't lose yourself too much.

Example
-
The example.html file is basically the script applied to a w3c page. I just changed the style so the table of content is fixed to the left.

Check out the result. Wouldn't it be great if all w3c specs where that easy to navigate in?

Similar scripts
-
While I was looking for a name for this script, I found these sites. If this script is not what you need, you might have more luck there:
- http://www.itnewb.com/tutorial/Creating-the-Smooth-Scroll-Effect-with-JavaScript
- http://www.kryogenix.org/code/browser/smoothscroll (best cross browser compatibility)

License
-
This library is released under the MIT license.
npm package: @sodahq/solana-connect
Description: ```javascript interface SolanaConnectProps extends PropsWithChildren {     connectionEndpoint?: string; // if not set will use devnet endpoint     cluster?: Cluster; // same will use devnet     appUrl?: string; // your dapp url } ```
Author: thrmdyy
Latest version: 0.3.0

## Context Provider

```javascript
interface SolanaConnectProps extends PropsWithChildren {
    connectionEndpoint?: string; // if not set will use devnet endpoint
    cluster?: Cluster; // same will use devnet
    appUrl?: string; // your dapp url
}
```

```javascript
'use client'; // for NextJS
import { SolanaConnect } from '@polyton/solana-connect';
import { FC, PropsWithChildren } from 'react';

export const SolanaConnectProvider: FC<PropsWithChildren> = ({ children }) => (
    <SolanaConnect>
        {children}
    </SolanaConnect>
);
```

## Using wallet

```javascript
interface UseWalletInterface {
    wallet: null | {
        address: string;
        walletName: string;
    };
    connection: null | Connection;
    connect: (() => Promise<void>) | null;
    sendTransaction: SendTransactionFunction | null;
    signTransaction: SignTransactionFunction | null;
    signAllTransactions: SignAllTransactionsFunction | null;
    signMessage: ((message: Uint8Array) => Promise<Uint8Array>) | null;
    signer: {
        publicKey: PublicKey;
        signTransaction: SignTransactionFunction;
        signAllTransactions: SignAllTransactionsFunction;
    } | null;
    disconnect: (() => void) | null;
}
```

```javascript
const { wallet, sendTransaction } = useWallet();

await sendTransaction(new Transaction());
```
npm package: @sodalife/share.js
Description: use Soda built-in services to set up sharing with ease
Author: yelo
Latest version: 0.1.2

# @sodalife/share.js
> use Soda built-in services to set up sharing with ease

## Installation
```bash
npm i --save @sodalife/share.js
```

## Usage
```javascript
import share = require('@sodalife/share.js')

// basic sharing
share.set('all', {
  title: '@sodalife/share.js',
  description: 'set up sharing with ease',
  url: 'https://github.com/sodalife',
  thumbnail: 'https://avatars0.githubusercontent.com/u/31095819?s=400&v=4',
})
share.set('wx:moment', {
  title: '@sodalife/share.js',
  description: 'set up sharing with ease',
  url: 'https://github.com/sodalife',
  thumbnail: 'https://avatars0.githubusercontent.com/u/31095819?s=400&v=4',
})

// events
share.on('shared', (target) => {
  alert('well done')
})
share.on('cancel', () => {
  console.log('cancel')
})

// advanced event usages
const handler = function () {
  // ...
}
share.once('shared', handler)
share.removeListener('shared', handler)
share.removeAllListeners('shared')
share.removeAllListeners()
```

## API
### EventEmitter
The ``share`` object is an EventEmitter instance. See the offical Node.js document for details:

[https://nodejs.org/api/events.html](https://nodejs.org/api/events.html)

### share.set(target, data)
Set up basic sharing.

**data object**:

- title
- description
- url
- thumbnail

### EVENTS
|   event    | listener arguments |
| ---------- | ------------------ |
| `'shared'` | target             |
| `'cancel'` |                    |

### TARGETS
|    target     |      value      |
| ------------- | --------------- |
| 全部          | `'all'`           |
| 微信 - 好友   | `'wechat:chat'`   |
| 微信 - 朋友圈 | `'wechat:moment'` |
| QQ            | `'qq'`            |
| 腾讯微博      | `'tecent-weibo'`  |
| QQ 空间       | `'qzone'`         |

## License
MIT @ [yelo](https://github.com/imyelo)
npm package: @sodalife/signed-request
Description: [![](https://img.shields.io/npm/v/@sodalife/signed-request.svg)](https://www.npmjs.org/packages/@sodalife/signed-request) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
Author: yelo
Latest version: 1.0.3

# signed-request
[![](https://img.shields.io/npm/v/@sodalife/signed-request.svg)](https://www.npmjs.org/packages/@sodalife/signed-request)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Usage
```javascript
var parse = require('@sodalife/signed-request').parse

var payload = parse(signedRequest, process.env.CLIENT_SECRET)
console.log(payload)
```