open-index/open-npm huggingface dataset:
npm package: @happysanta/nodejs-sign-checker
Description: Проверка подписи параметров запуска VK Mini Apps
Author: Ivan Nedzvetskiy
Latest version: 3.0.0

# Проверка подписи параметов запуска

# middleware для adonis

```js
'use strict'
/** @typedef {import('@adonisjs/framework/src/Request')} Request */
/** @typedef {import('@adonisjs/framework/src/Response')} Response */
/** @typedef {import('@adonisjs/framework/src/View')} View */

const Config = use("Config")
const {getStartParamsFromUrl,createStartParamsFromUrl} = require("@happysanta/nodejs-sign-checker")

class CheckStartParams {
  /**
   * @param {object} ctx
   * @param {Request} ctx.request
   * @param {Function} next
   */
  async handle({request, response}, next) {
    const sign = (request.header('X-Vk-Sign')||"").toString()
    const startParams = getStartParamsFromUrl(sign, Config.get("app.appSecret"))
    if (startParams) {
      request.startParams = startParams
      await next()
    } else {
      if (process.env.NODE_ENV !== 'production' && Config.get('app.skipSignCheck')) {
        request.startParams = createStartParamsFromUrl(sign)
        await next()
      } else {
        response.status(403).json({error: {code: 403, message: "No auth header or broken"}})
      }
    }
  }
}

module.exports = CheckStartParams
```
npm package: @happysanta/router
Description: Router for VKUI
Author: happysanta
Latest version: 0.3.1

# Роутер для приложений на VKUI

Гайд
https://vk.com/@-197036977-slozhnaya-navigaciya-na-vkui

пример приложения с роутером
https://github.com/HappySanta/router-example

Описание методов
https://happysanta.github.io/router/


### Install

```bash
npm i @happysanta/router
```

```bash
yarn add @happysanta/router
```

# Локальная разработка

```bash
yarn run fix-for-link
```
Команда удаляет react и react-dom которые конфликтуют с локальными зависимостями, если вы линкуете через `npm link` / `yarn link` либу в другой проект.


Публикация
```bash
yarn run pub
yarn run docs
node pub-docs.js
```
npm package: @happysanta/vk-app-ui
Description: Элементы интерфейса в стиле ВК
Author: happysanta
Latest version: 1.0.10

# @happysanta/vk-app-ui

Основные элементы для приложений сообществ VK. Можно прописывать любые атрибуты и вешать обработчики — они сохранятся.
Наглядные примеры с кодом — [https://happysanta.github.io/vk-app-ui/styleguide/](https://happysanta.github.io/vk-app-ui/styleguide/).

## Changelog

#### 0.2.0

- Новый компанент PageRoot для органицации страниц и попапов
- Новый компанент FormLayout для органицации форм
- Новые типы кнопок, атрибут ```type``` у компанента ```Button``` устрел, используйте ```mode```
- Фиксы старых компонентов

#### 0.1.8

- Новый компанент <Arrow/>

#### 0.1.7

- Рандомные названия классов в css чтобы небыло пересечений со старыми проектами
- Во всех компонентах свойство ismobile переименнованно в mobile
- Глобальная переменная window.isMobile переименнованна в window._hsMobileUI
- Убран user-select:none для компонента Input
 
## Установка

```sh
$ npm i @happysanta/vk-app-ui
```


## Настройка

В начале основного файла проекта, например, в index.js нужно подключить стили, чтобы не делать этого в каждом файле, где понадобится компонент.
Также в основном файле нужно задать глобальную переменную window.isMobile = true/false, чтобы компонент понимал, когда ему использовать стили для десктопа, а когда для мобильных устройств. Если эта переменная не выставлена, компонент будет смотреть, есть ли в locaton.path «/mobile/».

```javascript
import '@happysanta/vk-app-ui/dist/vkappui.css'

window._hsMobileUI = true // тут условие которое ставит true/false в зависимости от устройства.
```

В начале файла, в котором нужно использовать компонент.

```javascript
import { Button, Link, WaitDots } from "@happysanta/vk-app-ui"

<Button>Button</Button>
```

Полная документация и примеры с кодом — [https://happysanta.github.io/vk-app-ui/styleguide/](https://happysanta.github.io/vk-app-ui/styleguide/).

## Как обновить пакет в npm

Обновить код, в package.json изменить версию, затем:

```sh
$ npm adduser // нужно, если пользователь не авторизован
$ npm whoami // проверить авторизован ли пользователь
$ npm publish --access public // если пакет не приватный, иначе не опубликуется
```


## License

MIT.
npm package: @happystack/kit
Description: <img src=".github/happystack.png" alt="Happystack" width="150" height="150" />
Author: Heinrich Tremblay
Latest version: 0.9.2

<img src=".github/happystack.png" alt="Happystack" width="150" height="150" />

# Happystack Kit

![Version](https://img.shields.io/badge/Version-0.9.2-green.svg?style=flat)
![license](https://img.shields.io/github/license/mashape/apistatus.svg)


#### Kit is a React component library created by Happystack to help streamline your development. Visit the [playground](http://kit.happystack.io) to learn more.


### 🔧 Installation:
You'll need npm to install Kit [npm](https://www.npmjs.com/):


```bash
npm install @happystack/kit --save
```


### 🕹 Usage
Import the component you want from Kit:
```javascript
import { Text } from '@happystack/kit';
```

You can now use this component inside your React application:
```javascript
<Text>Happystack is awesome!</Text>
```


## 📄 Licenses
* Source code is licensed under [MIT](https://opensource.org/licenses/MIT)
* Icons from FontAwesome [Creative Commons Attribution-NoDerivatives 4.0](http://creativecommons.org/licenses/by-nd/4.0/)


## 💡 Feedback
[Create an issue or feature request](https://github.com/happystacklabs/kit/issues/new).
npm package: @happyswapfinance/sdk
Description: 🛠 An SDK for building applications on top of happyswap.
Latest version: 0.0.6

# Pancakeswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/pancakeswap/pancakeswap-sdk/workflows/CI/badge.svg)](https://github.com/pancakeswap/pancakeswap-sdk)
[![npm version](https://img.shields.io/npm/v/@pancakeswap-lib/sdk/latest.svg)](https://www.npmjs.com/package/@pancakeswap-lib/sdk/v/latest)

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancakeswap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @happyswapfinance/uikit
Description: Set of UI components for pancake projects
Latest version: 0.1.6

# 🥞 HappySwap UIkit

[![Version](https://img.shields.io/npm/v/@happyswapfinance/uikit)](https://www.npmjs.com/package/@happyswapfinance/uikit) [![Size](https://img.shields.io/bundlephobia/min/@happyswapfinance/uikit)](https://www.npmjs.com/package/@happyswapfinance/uikit)

HappySwap UIkit is a set of React components and hooks used to build pages on HappySwap's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @happyswapfinance/uikit`

## Setup

### Theme

Before using HappySwap UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@happyswapfinance/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@happyswapfinance/uikit'
...
<ResetCSS />
```
npm package: @happytiptoe/eslint-config
Description: Custom, opinionated ESLint Configuration
Author: happytiptoe
Latest version: 0.0.5

# @happytiptoe/eslint-config

> Custom, opinionated ESLint Configuration

<a href="https://npmjs.com/package/@happytiptoe/eslint-config">
  <img src="https://img.shields.io/npm/v/@happytiptoe/eslint-config" alt="npm version">
</a>
<a href="https://npmjs.com/package/@happytiptoe/eslint-config">
  <img src="https://img.shields.io/npm/l/@happytiptoe/eslint-config" alt="license">
</a>

## Installation

Install with your favourite package manager:

```sh
# yarn
yarn add @happytiptoe/eslint-config

# pnpm
pnpm add @happytiptoe/eslint-config

# npm
npm install @happytiptoe/eslint-config
```

Add to your ESLint config:

```js
// ESM
export default {
  root: true,
  extends: ['@happytiptoe/eslint-config']
}
```

```js
// CJS
module.exports = {
  root: true,
  extends: ['@happytiptoe/eslint-config']
}
```

## License

[MIT](http://opensource.org/licenses/MIT)
npm package: @happyvalleyio/parcel-plugin-pebble
Description: A parcel bundler plugin for working with pebble template files
Author: Happy Valley IO
Latest version: 0.1.3

# parcel-plugin-pebble
A basic parcel plugin to fix issues with building pebble templates

## Install

Simple install the plugin and parcel will do the rest:

```bash
npm i -D @happyvalleyio/parcel-plugin-pebble
```

## What it does

This is a stupidly simple plugin currently. It treats any `.peb` files as HTML *but* does not attempt to process any 
url that contains pebble syntax. As an example,

```html
<a href="/secure/{{ resource.resourceId }}">Go to resource</a>
``` 

This would normally fail to build due to parcel attempting to resolve `secure/{{ resource.resourceId }}` as a dependency. 
We ignore any url that contains `{{ something }}` and allow parcel to happily treat the rest of the doc as HTML.

## Future work

![What do now](https://newfastuff.com/wp-content/uploads/2019/10/43-hFEuVqC.png)

We want to add some configuration:

* allow custom file extensions (for jinja or twig templates for instance) ([issue](https://github.com/HappyValleyIO/parcel-plugin-pebble/issues/1))
* allow processing other resource types than HTML ([issue](https://github.com/HappyValleyIO/parcel-plugin-pebble/issues/2))
* any other problems we run into while trying to build pebble templates with parcel

## Contributing
Feel free to open a pull request. We use this project in production so should be fairly quick to respond.
npm package: @happywebworker/coul
Description: programmable log formatter
Author: @happywebworker
Latest version: 0.0.3

# COUL

Log formatter for terminal with typescript integration.

## Installation

```bash
npm install @happywebworker/coul --save-dev
```

## Usage

```typescript
import { formatLog } from '@happywebworker/coul'

console.log(formatLog('my bold text in yellow on cyan background', {
  textColor: 'yellow',
  backgroundColor: 'cyan',
  textEffect: 'bold'
}))
```

## License
[MIT](https://choosealicense.com/licenses/mit/)
npm package: @happywebworker/cutest
Description: simple test runner with typescript support
Author: @happywebworker
Latest version: 0.2.0

# CUTEST

Simple test runner with typescript support

## Installation

```bash
npm install @happywebworker/cutest --save-dev
```

## Usage

create a test file :
```typescript
// Animal.test.ts
import { describe, it, assert, log, beforeEach, afterEach } from '@happywebworker/cutest'

describe('Animal', () => {
  describe('eat()', () => {
    beforeEach(() => {
      log('before');
    });
    
    afterEach(() => {
      log('after');
    });

    it('should eat', () => {
      assert(Animal.hungry)
      
      log('feeding animal...')
      Animal.eat()
      
      assert(!Animal.hungry)
      log('animal is fed')
    })
  })
})
```

then run it with ts-node :
```
ts-node ./Animal.test.ts
```

## License
[MIT](https://choosealicense.com/licenses/mit/)