open-index/open-npm huggingface dataset:
npm package: @kuotie/core
Description: Core functions for Kuotie
Author: Jesus Seijas
Latest version: 1.0.0

# @kuotie/core

Core functions for Kuotie Conversational AI.

## Installation

```sh
npm i @kuotie/core
```

## Usage

Normalize a text:

```javascript
const { normalize } = require('@kuotie/core');
console.log(normalize('àñÍS'));
// anis
```

Tokenize a text:

```javascript
const { tokenize } = require('@kuotie/core');
console.log(tokenize('this Should,  , be.splitted'));
// ['this', 'Should', 'be', 'splitted']
```

Stem a text: this is a mock, so it returns exactly the input.

```javascript
const { stem } = require('@kuotie/core');
console.log(stem(['this', 'should', 'be', 'stemmed']));
// ['this', 'should', 'be', 'stemmed']
```

Generate an uuid: for compatibility with browsers.
```javascript
const { uuid } = require('@kuotie/core');
console.log(uuid());
// 1e74bd9c-1cf6-14b6-0452-aee99ba87dab
```
npm package: @kupibilet/boolean-json-eval
Description: evaluate boolean-json expressions
Author: Kyle E. Mitchell
Latest version: 3.2.2

```javascript
var evaluate = require('boolean-json-eval')
```

The package exports a function of two arguments:

1. a [boolean-json](https://npmjs.com/packages/boolean-json-schema) expression

2. an object map from string variable name to `true`, `false` or a predicate (a function returning a boolean value) to be computed lazily.

It returns `true` or `false`.

```javascript
var assert = require('assert')

assert(evaluate('x', {x: true}))

assert(
  evaluate(
    {or: ['a', {not: 'b'}, 'c']},
    {a: false, b: true, c: () => 2 * 2 === 4}
  )
)

assert(
  evaluate(
    {
      and:
      [
        {not: 'a'},
        {not: {not: {not: 'a'}}},
        {or: ['a', {not: 'a'}]}
      ]
    },
    {a: false}
  )
)
```

The function throws an exception if its expression argument references an undefined variable.

```javascript
assert.throws(function() {
  evaluate('x', {})
})
```
npm package: @kupibilet/icons
Description: icons for kupibilet.ru
Author: Kupibilet team
Latest version: 5.9.66

# Спрайт с иконоками для kupibilet.ru
[![NPM version][npm-img]][npm-url]
[![Dependency Status][daviddm-img]][daviddm-url]
[![devDependency Status][daviddm-dev-img]][daviddm-dev-url]

https://github.com/kupibiletdev/icons

## Как локально посмотреть иконки?
`yarn run build`
`open dist/index.html`

## Подготовка иконки
Часто бывает что после оптимизации svg после дизайнеров они ломаются из-за того что были сделаны неустойчиво

- Можно заранее прогнать через оптимизацию SVGOMG
- Убедиться, что width и height и viewBox установлены и работают правильно
- Убедиться что у тебя квадратная картинка, и viewBox квадратный тоже
- Часто бывает, что `fill-rule="evenodd"` ломает оптимизацию

## Сборка спрайта
1. Положить .svg иконки в `/src/icons`. Название иконки должно быть с приставкой `kb_`.
2. Запустить `yarn build`, после чего убедиться, что в собранном спрайте (`dist/sprite.js`) появилась новая иконка и она не пустая.
3. Закомитить изменения.
4. Запаблишить пакет командой `npm version patch` (эту команду выполняет maintainer репозитория).

## Установка в проект
`npm i @kupibilet/icons --save-dev`

## Использование
### Storybook
1. В `/.storybook/head.html` подключить иконки с cdn: `<script src="https://unpkg.com/@kupibilet/icons"></script>`
2. В каждом компоненте, где нужны иконки, добавить в `stories.js`, после `{story()}`:
```jsx
  <div
    dangerouslySetInnerHTML={{ __html: window.sprite.default() }}
    style={{
      display: 'none',
    }}
  />
```


### Сайт
coming soon

### Цвет иконок
В зависимости от иконки, у неё может быть два цвета.
Один определяется свойством `fill`, другой `stroke`.

Цвета в иконку передаются из стилей родительского компонента (для того, чтобы их удобно было менять вместе с цветом текста на кнопке, например):
```less
fill: white
stroke: black
```
Также, через prop `styleName` можно передать класс с нужными свойствами.

Доступные классы, на данный момент:
* .default — переопределяются цвета для stroke и fill
* .default-fill — переопределяется цвет для fill
* .default-stroke — переопределяется цвет для stroke


[daviddm-img]: https://david-dm.org/kupibiletdev/icons.svg
[daviddm-url]: https://david-dm.org/kupibiletdev/icons
[daviddm-dev-img]: https://david-dm.org/kupibiletdev/icons/dev-status.svg
[daviddm-dev-url]: https://david-dm.org/kupibiletdev/icons#info=devDependencies)
[npm-img]: https://badge.fury.io/js/icons.svg
[npm-url]: https://www.npmjs.com/package/icons
npm package: @kupibilet/react-day-picker
Description: Flexible date picker component for React
Author: Giampaolo Bellavite
Latest version: 7.2.5

<p align="center">
<a href="http://react-day-picker.js.org"><img width="80" style="margin: 0 auto" alt="title" src="https://user-images.githubusercontent.com/120693/33364057-0d4a962a-d4e3-11e7-8506-0f9aede2b345.png"></a>
</p>
<h1 align="center">react-day-picker</h1>
<p align="center">
  Flexible date picker component for <a href="https://facebook.github.io/react/">React</a>.
  <br />
  Highly customizable, localizable, with ARIA support, no external dependencies, 9KB gzipped
</p>
<p align="center">
  <a href="http://react-day-picker.js.org"><img width="266" alt="screen shot 2017-11-29 at 08 53 17" src="https://user-images.githubusercontent.com/120693/33363979-cb60fb5a-d4e2-11e7-8d21-f4779b8b9105.png">
</a>
</p>
<p align="center">
  <a href="http://react-day-picker.js.org">Documentation</a> | <a href="http://react-day-picker.js.org/examples/basic">Examples</a> | <a href="http://react-day-picker.js.org/api/DayPicker">API</a> | <a href="http://react-day-picker.js.org/changelog">Changelog</a>
</p>
<p align="center">
  <a href="https://www.npmjs.com/package/react-day-picker">
    <img src="https://img.shields.io/npm/v/react-day-picker.svg?style=flat-square" alt="npm version">
  </a>
  <a href="http://npm-stat.com/charts.html?package=react-day-picker">
    <img src="https://img.shields.io/npm/dm/react-day-picker.svg?style=flat-square" alt="npm downloads">
  </a>
  <a href="https://circleci.com/gh/gpbl/react-day-picker">
    <img src="https://img.shields.io/circleci/project/github/gpbl/react-day-picker/master.svg?style=flat-square" alt="circleci">
  </a>
  <a href="https://codecov.io/gh/gpbl/react-day-picker">
    <img src="https://img.shields.io/codecov/c/github/gpbl/react-day-picker/master.svg?style=flat-square" alt="npm downloads">
  </a>
</p>

## Get support

Please fork and use [https://codesandbox.io/s/XDAE3x0W8](https://codesandbox.io/s/XDAE3x0W8) to reproduce your problem.

* Ask on on [Stack Overflow](http://stackoverflow.com/questions/tagged/react-day-picker?sort=newest) tagging your question with `react-day-picker`.
* Open a [new issue](https://github.com/gpbl/react-day-picker/issues/new) on GitHub.
* Join the [Gitter room](https://gitter.im/gpbl/react-day-picker) to chat with other developers.
npm package: @kupibilet/react-router-component
Description: Declarative router component for React
Author: Andrey Popp
Latest version: 0.22.4

# React Router Component

For React 0.12 support, see the [react-0.12](https://github.com/STRML/react-router-component/tree/react-0.12) branch. It should be stable, but please help us bugtest it.

React router component allows you to define routes in your [React][] application
in a declarative manner, directly as a part of your component hierarchy.

Usage is as simple as just returning a configured router component from your
component's `render()` method:

    <Locations>
      <Location path="/" handler={MainPage} />
      <Location path="/users/:username" handler={UserPage} />
      <Location path="/search/*" handler={SearchPage} />
      <Location path={/\/product\/([0-9]*)/} handler={ProductPage} />
    </Locations>

Alternatively, if you don't prefer JSX:

    Locations(null,
      Location({path: "/", handler: MainPage}),
      Location({path: "/users/:username", handler: UserPage}),
      Location({path: "/search/*", handler: SearchPage}),
      Location({path: /\/product\/([0-9]*)/, handler: ProductPage}))

Having routes defined as a part of your component hierarchy allows to
dynamically reconfigure routing based on your application state. For example you
can return a different set of allowed locations for anonymous and signed-in
users.

React router component can dispatch based on `location.pathname` or
`location.hash` if browser doesn't support History API (see [hash routing][hash-routing]).

Furthermore it provides advanced features like support for [full page server
side rendering][server-side], [multiple routers][multiple] on the same page,
[contextual routers][contextual] and support for [async components][async].

Its functionality is tested using [Saucelabs][] on all modern browsers (IE >= 9,
Chrome >= 27, Firefox >= 25, Safari >= 6 and Mobile Safari on iPhone and iPad >=
6).

Its size is about 3.5kb gzipped.

## Installation

React router component is packaged on npm:

    % npm install react-router-component
    
## Compatibility

Compatible with React 0.10 and 0.11. Support for 0.12 is experimental. See the [branch](https://github.com/STRML/react-router-component/tree/react-0.12).

See [docs][] for the usage.

[hash-routing]: http://strml.viewdocs.io/react-router-component/hash-routing
[server-side]: http://strml.viewdocs.io/react-router-component/server-side
[multiple]: http://strml.viewdocs.io/react-router-component/multiple
[contextual]: http://strml.viewdocs.io/react-router-component/contextual
[url-pattern]: http://strml.viewdocs.io/react-router-component/url-pattern
[async]: http://strml.viewdocs.io/react-router-component/async

[docs]: http://strml.viewdocs.io/react-router-component
[React]: http://facebook.github.io/react/
[React-Refs]: http://facebook.github.io/react/docs/more-about-refs.html
[React-Shims]: http://facebook.github.io/react/docs/working-with-the-browser.html#polyfills-needed-to-support-older-browsers
[Saucelabs]: https://saucelabs.com
npm package: @kur4ge/hexo-delete-sth
Description: A hexo plugin to delete some useless files before deployment.
Author: kur4ge
Latest version: 1.0.1

# hexo-remove-sth

In Hexo, some themes will generate resource files you don't want. Use this to delete them before deployment.

## Installation

``` bash
$ npm install @kur4ge/hexo-delete-sth --save
```

## Usage

### Setting up the configuration in _config.ymal
```
deploy:
  -
    type: 'delete-sth'
    deleteFiles:  # 支持 * 语法
      - img/logo.svg    # delete img/logo.svg
      - *.html          # delete all html files
    deleteEmptyFolder: true # if folder is empty, delete it
  - 
    type: 'do-other'
  -
    type: 'delete-sth'
    deleteFiles:  # 支持 * 语法
      - *.png
      - *.jpg
    deleteEmptyFolder: true # if folder is empty, delete it

```
npm package: @kur4ge/hexo-dom-modify
Description: A hexo plugin is used to modify the generated dom.
Author: kur4ge
Latest version: 1.0.0

# hexo-dom-modify

In hexo, you may need to replace some dom elements in batches.

This plugin can be replaced by simple configuration after generating the html file.

## Installation

``` bash
$ npm install @kur4ge/hexo-dom-modify --save
```

## Usage

### Setting up the configuration in _config.ymal
```
dom_modify:
  enable: true
  rules:
    -
      selector: link[rel=stylesheet]
      attribute: 
        name: href
        search: /^\/([^/].*\.css)(\?.*)?$/i
        replace: https://example.com/$1
    -
      selector: script[src]
      attribute: 
        name: src
        search: /^\/([^/].*\.js)(\?.*)?$/i
        replace: https://example.com/$1
    -
      selector: h1
      innerHtml:
        search: /Hello World/g
        replace: 你好世界
```