open-index/open-npm huggingface dataset:
npm package: @salomvary/autocomplete-js
Description: Fast and fully-featured autocomplete JavaScript library.
Author: Algolia, Inc.
Latest version: 1.19.6-salomvary.2

# @algolia/autocomplete-js

The [`autocomplete-js`](https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete) package is an agnostic virtual DOM renderer. You can use it in JavaScript, Preact, React, or Vue projects.

## Installation

```sh
yarn add @algolia/autocomplete-js
# or
npm install @algolia/autocomplete-js
```

## Documentation

See [**Documentation**](https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js).
npm package: @salomvary/leaflet-minirouter
Description: Minimalist router plugin for Leaflet
Author: Márton Salomváry
Latest version: 0.0.2

# Leaflet MiniRouter

Minimalistic route editor for [Leaflet](https://leafletjs.com/). Heavily inspired by [Leaflet Routing Machine](https://github.com/perliedman/leaflet-routing-machine), this library only provides
visual route editor layer over the map. No itinerary, no geocoding.

If you need a full-fledged route planner user interface use Leaflet Routing Machine. This one is for minimalists.

## Usage

See [examples/index.js](examples/index.js).
npm package: @saloodo/ui-kit
Description: Saloodo UI Kit
Latest version: 7.0.1

# UIKit

Saloodo UIKit

## Getting Started

```npm install```

## Publish New Version

If you want to publish a new version in npm, we have these npm commands `publish-patch`, `publish-minor`, `publish-major` run one of them on master (depending on the changes) after merging your work.

```sh
npm run publish-patch
# OR
npm run publish-minor
# OR
npm run publish-major
```

Once, the tag is created and npm package is published go to [Github releases](https://github.com/Saloodo/uikit/releases) and create new release with description (some lines like below - PRs included in the release)
> #pr id : small description on the changes introduced here

## Installing locally

If you want to install the library from your local folder within your project, please remember to run the build `npm run build`. Once the build is done you can go to your project and run `npm install path_to_the_library`.

### CRA (Create React App) applications

Overriding CRA's webpack config is not easy. As a solution we need to depend on other packages to do this job for us.

Install `react-app-rewired` and update start command

```
npm i -D react-app-rewired
```

*
react-scripts start
*

**react-app-rewired start**

Create a file `config-overrides.js` in the root of app with following content

```javascript
const path = require('path');

/**
 * Config override is used only for development purpose
 *
 * @param {*} config
 */
module.exports = function override(config) {
  config.resolve = {
    ...config.resolve,
    alias: {
      ...config.resolve.alias,
      'styled-components': path.resolve('node_modules', 'styled-components'),
      react: path.resolve('node_modules', 'react'),
      'react-dom': path.resolve('node_modules', 'react-dom'),
    },
  };

  return config;
};
```

### Other applications

You may face some issues related to `styled-component` theme not being defined in the components of `ui-kit`, in that case, please refer to this source [SC Duplicated module in node_modules](https://styled-components.com/docs/faqs#duplicated-module-in-node_modules). In brief, make sure you add the `styled-components` alias in your webpack config:
```js
  resolve: {
    alias: {
      "styled-components": path.resolve("node_modules", "styled-components"),
    }
  }
```
*Note*: Do not commit package files with your local version. (`"@saloodo/ui-kit": "file:../../uikit",`)
npm package: @saloswap/uikit
Description: Set of UI components for saloswap projects
Latest version: 0.0.0

# 🥞 Pancake UIkit

**This repository is not used anymore. See the [https://github.com/pancakeswap/pancake-toolkit](Pancake toolkit) instead**

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

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

## Install

`yarn add @pancakeswap-libs/uikit`

## Setup

### Theme

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

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

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pancakeswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://pancakeswap.github.io/pancake-uikit/)
npm package: @salperkeskin/npac
Description: Removes all spaces from a string
Latest version: 2.0.0

<div align="center">
    <img src="https://img.shields.io/badge/npac-2.0.0-blue" alt="Static Badge">
</div>

<center>Removes all spaces from a string.</center>

<h3>Install</h3>
<hr>

```npm install @salperkeskin/npac ```

<h3>Usage</h3>
<hr>

```
const npac = require("@salperkeskin/npac");

npac("So much space!"); //=> "Somuchspace!"

npac(1337);
//=> Uncaught TypeError: Npac wants a string!
//    at npac (<anonymous>:2:41)
//    at <anonymous>:1:1

```
npm package: @salraza1993/uifx-styles
Description: UIFX CSS Library
Latest version: 1.0.0

# @salraza1993/uifx-styles

Lightweight CSS utility/style library.

## Install

```bash
npm install @salraza1993/uifx-styles
```

## Usage

Import in your app entry CSS:

```css
@import "@salraza1993/uifx-styles/dist/uifx.min.css";
```

Or use the non-minified build:

```css
@import "@salraza1993/uifx-styles/dist/uifx.css";
```

## Files published

- `dist/uifx.css`
- `dist/uifx.min.css`

## License

MIT
npm package: @salsa-payroll/salsa-js
Description: Salsa Js
Author: salsa-payroll
Latest version: 0.3.0

# Salsa.js

This package allows you to leverage our Salsa.js script by importing it into your project.

## Installation

Use `npm` to install this module;

```shell
npm install @salsa-payroll/salsa-js
```

## Usage - `loadSalsaJs`

This function is the entry point which returns a `Promise<Salsa>`. Once resolved you will have
an instance of `Salsa` that you can then use as per [our documentation](https://docs.salsa.dev/reference/salsajs)

In a plain old javascript project

```javascript
import { loadSalsaJs } from '@salsa-payroll/salsa-js';

const salsa = await loadSalsaJs('ck_your-client-key');
```

In React

```javascript
import { loadSalsaJs } from '@salsa-payroll/salsa-js';

const [salsa, setSalsa] = useState();
useEffect(() => {
  loadSalsaJs('ck_your-client-key', { env: 'sandbox' }).then((salsaJs) =>
    setSalsa(salsaJs),
  );
}, []);
```

You can try this directly in our
[Example Frontend Application](https://github.com/salsa-payroll/Example-Frontend-App-Integration)

## ESModule vs CommonJS

We are currently only exposing ES Module. In the future we may choose to support exporting as CommonJs
npm package: @salsaflavio/my-ui-components
Description: A collection of UI components for Next.js
Author: Flavio Espinoza
Latest version: 2.0.7

# @salsaflavio/my-ui-components

A collection of reusable UI components for React and Next.js using Tailwind CSS.

## ✨ Installation

```bash
npm install @salsaflavio/my-ui-components
```

## 🧩 Usage

```tsx
import { Button, HomeIcon } from '@salsaflavio/my-ui-components'

export default function Example() {
  return (
    <div>
      <Button className="bg-blue-500 text-white">Click Me</Button>
      <HomeIcon className="w-6 h-6 text-gray-700" />
    </div>
  )
}
```

## 🎨 Tailwind Setup Required

Make sure your project has Tailwind CSS installed and includes the module in `content`:

**tailwind.config.js**
```js
module.exports = {
  content: [
    './node_modules/@salsaflavio/my-ui-components/**/*.{js,ts,jsx,tsx}',
    './app/**/*.{js,ts,jsx,tsx}' // or your project paths
  ],
  theme: {
    extend: {}
  },
  plugins: []
}
```

And include this in your global CSS:

```css
@tailwind base;
@tailwind components;
@tailwind utilities;
```

## 📜 License

MIT

## 📦 Peer Dependencies

This package requires the following peer dependencies to be installed in your app:

```bash
yarn add recharts
```
npm package: @salsan/iscss
Description: isCss is a Node.js package, return true if input is a valid Cascading Style Sheets
Author: Salvatore Santagati
Latest version: 1.0.0

# isCss
isCss is a Node.js package, return true if input is a valid Cascading Style Sheets


## Install

```bash
npm install @salsan/iscss
```

## Usage

```js
const isCss  = require('iscss')
const css = 'body { font-size: 12px; }'

isCss(css) // return TRUE
```

# License

MIT License - Copyright 2022 Salvatore Santagati (<mailto:me@salsan.dev>)
npm package: @salsita/errors
Description: [![NPM version](https://img.shields.io/npm/v/@salsita/errors.svg)](https://www.npmjs.com/package/@salsita/errors) ![Downloads](https://img.shields.io/npm/dm/@salsita/errors.svg?style=flat) ![Licence](https://img.shields.io/npm/l/@salsita/errors.svg?style=
Author: Jan Dolezel
Latest version: 1.0.2

# @salsita/errors

[![NPM version](https://img.shields.io/npm/v/@salsita/errors.svg)](https://www.npmjs.com/package/@salsita/errors)
![Downloads](https://img.shields.io/npm/dm/@salsita/errors.svg?style=flat)
![Licence](https://img.shields.io/npm/l/@salsita/errors.svg?style=flat)
[![Dependency Status](https://img.shields.io/david/salsita/nodejs-modules.svg?path=packages/errors)](https://david-dm.org/salsita/nodejs-modules?path=packages/errors)
[![devDependency Status](https://img.shields.io/david/dev/salsita/nodejs-modules.svg?path=packages/errors)](https://david-dm.org/salsita/nodejs-modules?type=dev&path=packages/errors)

Commonly used error classes

- [ExtendableError](./ExtendableError.js)
  - [ClientError](./ClientError.js)
    - [AuthError](./AuthError.js)
    - [DBError](./DBError.js)
    - [NotFoundError](./NotFoundError.js)
    - [UnauthorizedError](./UnauthorizedError.js)
    - [ValidationError](./ValidationError.js)
      - [JoiError](./JoiError.js)
npm package: @salsita/koa-error-middleware
Description: [![NPM version](https://img.shields.io/npm/v/@salsita/koa-error-middleware.svg)](https://www.npmjs.com/package/@salsita/koa-error-middleware) ![Downloads](https://img.shields.io/npm/dm/@salsita/koa-error-middleware.svg?style=flat) ![Licence](https://img.s
Author: Jan Dolezel
Latest version: 1.1.2

# @salsita/koa-error-middleware

[![NPM version](https://img.shields.io/npm/v/@salsita/koa-error-middleware.svg)](https://www.npmjs.com/package/@salsita/koa-error-middleware)
![Downloads](https://img.shields.io/npm/dm/@salsita/koa-error-middleware.svg?style=flat)
![Licence](https://img.shields.io/npm/l/@salsita/koa-error-middleware.svg?style=flat)
[![Dependency Status](https://img.shields.io/david/salsita/nodejs-modules.svg?path=packages/koa-error-middleware)](https://david-dm.org/salsita/nodejs-modules?path=packages/koa-error-middleware)
[![devDependency Status](https://img.shields.io/david/dev/salsita/nodejs-modules.svg?path=packages/koa-error-middleware)](https://david-dm.org/salsita/nodejs-modules?type=dev&path=packages/koa-error-middleware)

Top level middleware for catching and displaying errors (assumes using error classes from [@salsita/errors](https://github.com/salsita/nodejs-modules/tree/master/packages/errors)).

Expects logging function as parameter.

Example:

```js
const winston = require("winston");
const Router = require("koa-router");
const errorMiddleware = require("@salsita/koa-error-middleware");

const formatUserMessage = err =>
  process.env.NODE_ENV === "production" ? "Ooops something went wrong" : err.message;

const router = new Router();
router.use(errorMiddleware(winston.log, formatUserMessage));
```
npm package: @salsita/koa-force-ssl
Description: [![NPM version](https://img.shields.io/npm/v/@salsita/koa-force-ssl.svg)](https://www.npmjs.com/package/@salsita/koa-force-ssl) ![Downloads](https://img.shields.io/npm/dm/@salsita/koa-force-ssl.svg?style=flat) ![Licence](https://img.shields.io/npm/l/@sals
Author: Jan Dolezel
Latest version: 1.0.2

# @salsita/koa-force-ssl

[![NPM version](https://img.shields.io/npm/v/@salsita/koa-force-ssl.svg)](https://www.npmjs.com/package/@salsita/koa-force-ssl)
![Downloads](https://img.shields.io/npm/dm/@salsita/koa-force-ssl.svg?style=flat)
![Licence](https://img.shields.io/npm/l/@salsita/koa-force-ssl.svg?style=flat)
[![Dependency Status](https://img.shields.io/david/salsita/nodejs-modules.svg?path=packages/koa-force-ssl)](https://david-dm.org/salsita/nodejs-modules?path=packages/koa-force-ssl)
[![devDependency Status](https://img.shields.io/david/dev/salsita/nodejs-modules.svg?path=packages/koa-force-ssl)](https://david-dm.org/salsita/nodejs-modules?type=dev&path=packages/koa-force-ssl)

Middleware and server used to redirect user to secure connection on production.
Used by [@salsita/koa-server](https://github.com/salsita/nodejs-modules/tree/master/packages/koa-server).

Middleware function expects `allowUnsecure` parameter which can disable redirecting if request is not send over SSL connection.
npm package: @salsita/koa-joi-middleware
Description: [![NPM version](https://img.shields.io/npm/v/@salsita/koa-joi-middleware.svg)](https://www.npmjs.com/package/@salsita/koa-joi-middleware) ![Downloads](https://img.shields.io/npm/dm/@salsita/koa-joi-middleware.svg?style=flat) ![Licence](https://img.shields
Author: Jan Dolezel
Latest version: 1.0.3

# @salsita/koa-joi-middleware

[![NPM version](https://img.shields.io/npm/v/@salsita/koa-joi-middleware.svg)](https://www.npmjs.com/package/@salsita/koa-joi-middleware)
![Downloads](https://img.shields.io/npm/dm/@salsita/koa-joi-middleware.svg?style=flat)
![Licence](https://img.shields.io/npm/l/@salsita/koa-joi-middleware.svg?style=flat)
[![Dependency Status](https://img.shields.io/david/salsita/nodejs-modules.svg?path=packages/koa-joi-middleware)](https://david-dm.org/salsita/nodejs-modules?path=packages/koa-joi-middleware)
[![devDependency Status](https://img.shields.io/david/dev/salsita/nodejs-modules.svg?path=packages/koa-joi-middleware)](https://david-dm.org/salsita/nodejs-modules?type=dev&path=packages/koa-joi-middleware)

Middleware used on routes to validate input.

Example:

```js
const joi = require("@hapi/joi");
const Router = require("koa-router");
const joiMiddleware = require("@salsita/koa-joi-middleware");

const router = new Router();

const paramsSchema = joi.object().keys({
  id: joi.number().integer().positive().required()
}).required();
const bodySchema = joi.object().keys({
  name: joi.string().max(1024).required(),
  email: joi.string().email().max(1024).required()
}).required();

router.patch(
  '/:id',
  joiMiddleware([
    { get: ctx => ctx.params, schema: paramsSchema },
    { get: ctx => ctx.request.body, schema: bodySchema },
  ],
  async ctx => { /* perform stuff */ }
);
```
npm package: @salsita/koa-jwt-auth
Description: [![NPM version](https://img.shields.io/npm/v/@salsita/koa-jwt-auth.svg)](https://www.npmjs.com/package/@salsita/koa-jwt-auth) ![Downloads](https://img.shields.io/npm/dm/@salsita/koa-jwt-auth.svg?style=flat) ![Licence](https://img.shields.io/npm/l/@salsita
Author: Jan Dolezel
Latest version: 1.0.3

# @salsita/koa-jwt-auth

[![NPM version](https://img.shields.io/npm/v/@salsita/koa-jwt-auth.svg)](https://www.npmjs.com/package/@salsita/koa-jwt-auth)
![Downloads](https://img.shields.io/npm/dm/@salsita/koa-jwt-auth.svg?style=flat)
![Licence](https://img.shields.io/npm/l/@salsita/koa-jwt-auth.svg?style=flat)
[![Dependency Status](https://img.shields.io/david/salsita/nodejs-modules.svg?path=packages/koa-jwt-auth)](https://david-dm.org/salsita/nodejs-modules?path=packages/koa-jwt-auth)
[![devDependency Status](https://img.shields.io/david/dev/salsita/nodejs-modules.svg?path=packages/koa-jwt-auth)](https://david-dm.org/salsita/nodejs-modules?type=dev&path=packages/koa-jwt-auth)

Configures authentication middleware.

Important options:

- `key` - secure key for hashing payload (if persistent key not provided, new key is generated with each server start - logging out all users)
- `version` - should be increased with every change in `createSession` function, so users using old structure are logged out
- `createSession` - function returning data which identifies user (usually user id)
- `getUserForSession` - function which checks if user exists/session is valid (data returned from `createSession` are supplied) and result is put into `ctx.state.user`
npm package: @salsita/koa-server
Description: [![NPM version](https://img.shields.io/npm/v/@salsita/koa-server.svg)](https://www.npmjs.com/package/@salsita/koa-server) ![Downloads](https://img.shields.io/npm/dm/@salsita/koa-server.svg?style=flat) ![Licence](https://img.shields.io/npm/l/@salsita/koa-s
Author: Jan Dolezel
Latest version: 1.3.3

# @salsita/koa-server

[![NPM version](https://img.shields.io/npm/v/@salsita/koa-server.svg)](https://www.npmjs.com/package/@salsita/koa-server)
![Downloads](https://img.shields.io/npm/dm/@salsita/koa-server.svg?style=flat)
![Licence](https://img.shields.io/npm/l/@salsita/koa-server.svg?style=flat)
[![Dependency Status](https://img.shields.io/david/salsita/nodejs-modules.svg?path=packages/koa-server)](https://david-dm.org/salsita/nodejs-modules?path=packages/koa-server)
[![devDependency Status](https://img.shields.io/david/dev/salsita/nodejs-modules.svg?path=packages/koa-server)](https://david-dm.org/salsita/nodejs-modules?type=dev&path=packages/koa-server)

Function to create and configure koa server.

Expects optional parameters:

- `log` - logging function
- `ssl` - ssl configuration (value or promise resolving in [ssl configuration](https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options) - usually object with `key` and `cert` keys)
- `allowUnsecure` - if server is allowed to serve content over HTTP connection instead of redirecting to HTTPS

See [https://github.com/salsita/nodejs-training/blob/master/src/index.js](nodejs-training) repo for usage.
npm package: @salsita/lock
Description: [![NPM version](https://img.shields.io/npm/v/@salsita/lock.svg)](https://www.npmjs.com/package/@salsita/lock) ![Downloads](https://img.shields.io/npm/dm/@salsita/lock.svg?style=flat) ![Licence](https://img.shields.io/npm/l/@salsita/lock.svg?style=flat) [!
Author: Jan Dolezel
Latest version: 1.0.1

# @salsita/lock

[![NPM version](https://img.shields.io/npm/v/@salsita/lock.svg)](https://www.npmjs.com/package/@salsita/lock)
![Downloads](https://img.shields.io/npm/dm/@salsita/lock.svg?style=flat)
![Licence](https://img.shields.io/npm/l/@salsita/lock.svg?style=flat)
[![Dependency Status](https://img.shields.io/david/salsita/nodejs-modules.svg?path=packages/lock)](https://david-dm.org/salsita/nodejs-modules?path=packages/lock)
[![devDependency Status](https://img.shields.io/david/dev/salsita/nodejs-modules.svg?path=packages/lock)](https://david-dm.org/salsita/nodejs-modules?type=dev&path=packages/lock)

Function to create lock function. This lock function can be used to wrap any async function ensuring it will not be executed again before previous call finish.

Example:

```js
const createLock = require("@salsita/lock");

const lock = createLock();

const wait = timeout => new Promise(resolve => setTimeout(resolve, timeout));
const fn = async n => {
  await wait(1000);
  console.log(`work ${n} done`);
};

lock(() => fn(1));
lock(() => fn(2));
```
npm package: @salsita/log
Description: [![NPM version](https://img.shields.io/npm/v/@salsita/log.svg)](https://www.npmjs.com/package/@salsita/log) ![Downloads](https://img.shields.io/npm/dm/@salsita/log.svg?style=flat) ![Licence](https://img.shields.io/npm/l/@salsita/log.svg?style=flat) [![Dep
Author: Jan Dolezel
Latest version: 1.0.1

# @salsita/log

[![NPM version](https://img.shields.io/npm/v/@salsita/log.svg)](https://www.npmjs.com/package/@salsita/log)
![Downloads](https://img.shields.io/npm/dm/@salsita/log.svg?style=flat)
![Licence](https://img.shields.io/npm/l/@salsita/log.svg?style=flat)
[![Dependency Status](https://img.shields.io/david/salsita/nodejs-modules.svg?path=packages/log)](https://david-dm.org/salsita/nodejs-modules?path=packages/log)
[![devDependency Status](https://img.shields.io/david/dev/salsita/nodejs-modules.svg?path=packages/log)](https://david-dm.org/salsita/nodejs-modules?type=dev&path=packages/log)

Function to logging to console. It is default for other `@salsita/*` packages requiring logging function.