open-index/open-npm huggingface dataset:
npm package: @sadorlovsky/eslint-config
Description: Sad Orlovsky Codestyle - ESLint Shareable Config
Author: Zach Orlovsky
Latest version: 0.14.0

# Sad Orlovsky Codestyle - ESLint Shareable Config

An ESLint [Shareable Config](http://eslint.org/docs/developer-guide/shareable-configs) for my preferable code style.

## THE RULES OF FIGHT CLUB

- **Two spaces**
- **Single quotes**
- **No semicolons**

See all rules [here](index.js#L23).

## Nice code example

```javascript
// only ES2015
import fetch from 'fetch' // empty line after import

// space after function's name
export function hello (name = 'world') { // single quotes
  return `Hello, ${name}!` // two spaces for indent
} // no semicolons

// consts everywhere
export const fetchData = uri => { // no parens if single argument
  return fetch(uri)
    .then(res => res.json()) // arrow callback
    .then(data => ({ a: data.a, b: data.b }))
    // spacing inside single-line blocks
}
// empty line at the end of code
```

## Usage

You need `ESLint`

```bash
yarn add --dev eslint
```

Also you need `babel-parser` and some plugins

```bash
yarn add --dev babel-eslint eslint-plugin-import eslint-plugin-fp
```

Finally, install this shareable config

```bash
yarn add --dev @sadorlovsky/eslint-config
```

Add this to your .eslintrc file:

```json
{
  "extends": "@sadorlovsky"
}
```

### Use with AVA

```bash
yarn add --dev eslint-plugin-ava
```

```json
{
  "extends": [
    "@sadorlovsky",
    "@sadorlovsky/eslint-config/ava"
  ]
}
```

### Use with React

```bash
yarn add --dev eslint-plugin-react
```

```json
{
  "extends": [
    "@sadorlovsky",
    "@sadorlovsky/eslint-config/react"
  ]
}
```

### Use with both

```json
{
  "extends": [
    "@sadorlovsky",
    "@sadorlovsky/eslint-config/ava",
    "@sadorlovsky/eslint-config/react"
  ]
}
```

### You can override any option

```json
{
  "extends": [
    "@sadorlovsky",
    "@sadorlovsky/eslint-config/ava",
    "@sadorlovsky/eslint-config/react"
  ],

  "rules": {
    "semi": ["error", "always"]
  }
}
```
npm package: @sadorlovsky/lowdb-s3
Description: lowdb AWS S3 adapter
Author: Zach Orlovsky
Latest version: 1.0.5

# lowdb-s3

> Lowdb AWS S3 adapter

Adapter for [lowdb](https://github.com/typicode/lowdb) which uses AWS S3 to store data.

Requires [lowdb@1.0](https://github.com/typicode/lowdb/tree/v1.0.0).

## Usage

```bash
npm install @sadorlovsky/lowdb-s3@1
```

```js
const low = require('lowdb')
const S3 = require('@sadorlovsky/lowdb-s3')

const adapter = new S3({ bucket: 'bucket', key: 'db.json' })
const db = await low(adapter)
```

Custom S3 config

```js
const low = require('lowdb')
const S3 = require('@sadorlovsky/lowdb-s3')

const adapter = new S3({ bucket: 'bucket', key: 'db.json' }, {
  accessKeyId: 'ACCESS_KEY_ID',
  secretAccessKey: 'SECRET_ACCESS_KEY',
  region: 'custom-region',
  endpoint: 'custom.endpoint.com'
})
const db = await low(adapter)
```

## License

MIT
npm package: @sadorlovsky/rename-props
Description: Rename object properties
Author: Zach Orlovsky
Latest version: 5.0.1

# rename-props [![build](https://github.com/sadorlovsky/rename-props/workflows/build/badge.svg)](#rename-props) [![codecov](https://codecov.io/gh/sadorlovsky/rename-props/branch/master/graph/badge.svg)](https://codecov.io/gh/sadorlovsky/rename-props)

> rename object properties

## Install

```bash
$ yarn add @sadorlovsky/rename-props
```

## Usage

```ts
import { renameProps } from '@sadorlovsky/rename-props'

const obj = { a: 1, b: 2 }
const renamed = renameProps(obj, { a: 'x', b: 'y' })

console.log(renamed) // { x: 1, y: 2 }

```

FP style:

```ts
import { map, curryRight } from 'lodash/fp'
import { renameProps } from '@sadorlovsky/rename-props'

const list = [{ a: 1, b: 2 }, { a: 3, b: 4 }]
const curried = curryRight(renameProps)
const rename = map(curried({ a: 'x', b: 'y' }))
const renamed = rename(list)

console.log(renamed) // [{ x: 1, y: 2 }, { x: 3, y: 4 }]
```
npm package: @sadowski_dev/id_generator
Description: `npm install @sadowski_dev/id_generator` or `yarn add @sadowski_dev/id_generator`
Latest version: 1.0.4

# Generator ID APP

## How to install
`npm install @sadowski_dev/id_generator` or `yarn add @sadowski_dev/id_generator`

## How to use

1. Import `const randomID = require('@sadowski_dev/id_generator');`
2. Run function `randomID(lenght)` 
for example `randomId(10)` will generate a random ID with 10 lenghts