open-index/open-npm huggingface dataset:
npm package: @krusemedien/codestyle
Description: Codestyle initialization tool
Latest version: 1.0.9

# KruseMedien code style

## Install

First create a package.json if not exists:

```json
{
    "private": true
}
```

Now run the following command:

```cmd
npm install @krusemedien/codestyle --dev
```

## Initialisation

To initialize the project simple run the following command:

```cmd
./node_modules/.bin/codestyle init
```

After initialising the project run:

```cmd
composer install
```

## Code style check

To check the codestyle run the desired npm script:

```cmd
npm run lint
```

To run codesniffer and to display the codesniffer rule names add the -s argument:

```cmd
npm run lint:php . -- -s
```

### Help

If you want to set custom codesniffer or eslint rules, you may find more helpful examples:

-   [Codesniffer ruleset](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset)
-   [Eslint configuration](https://eslint.org/docs/user-guide/configuring)

## Code style fix

To fix the codestyle run the desired npm script:

```cmd
npm run fix
```
npm package: @krustyc/react-checkbox
Description: React animated checkbox built with styled-components
Latest version: 1.0.7

# react-checkbox
> React checkbox created with styled-components

*Here only a small descritpion is provided, if you want to check a more accurated documentation please checkout the [(Demo)](https://krustyc.github.io/react-checkbox/)*
  

# Motivation
While I was working on [Muso](https://gomuso.io/) I was looking for a nice, simple and possible animated checkbox but aftear hours of searching I couldn't find anything nice, so I decided to built it on my own.

This library provides an animated checkbox, in two different shapes(rounded, squared).

* Currently the style can not be customised, but that it's at the top of my todo lis!*

## Installation
```
npm save @krustyc/react-checkbox
or
yarn add @krustyc/react-checkbox
```

## Usage
The library does not provide any behaviour on the state of the checkbox as I wanted to give back to the user the control on it. The easiest implementation would be something like the code below.

```jsx
import React, { Component } from 'react'
import Checkbox from '@krustyc/react-checkbox'

export default class Form extends Component {
  state = {
    checked: false
  }
  
  onChange = () => this.setState(prevState => ({ checked: !prevState.checked })
  
  render() {
    return (
      <Checkbox id="checkbox" onChange={this.onChange} checked={this.state.checked} />
    )
  }
}
```

## Contributing
Feel free to cnotribute if you want to improve it or solve an issue.
Please always check linting (`yarn lint`) and test (`yarn test`) before pushing.

Submit a PR from a branch named `fix/meaningful-name` or `feature/meaningful-name`. Not from master.
Please provide meaningful commit messages. If needed, squash commits before opening your PR.

## Todos
- [ ] Customisable style configruation (colors, sizes, etc...)
- [ ] Add CircleCI
- [ ] Add Tests

## Credits
- Davide Crestini

## License

[MIT](http://opensource.org/licenses/MIT)

Copyright (©) 2018-present, Davide Crestini
npm package: @krustyc/react-timezone
Description: React timezone picker
Author: Davide Crestini
Latest version: 3.0.1

# react-timezone

> Timezone Picker for React

## Demo

[Available here.](http://vahnag.github.io/react-timezone/demo/)

## Installation

```bash
$ npm install react-timezone
```

## Usage

This a controlled element. `value` and `onChange` needs to be set. Values are timezone codenames.

You can style the container element with `className` and `style` props.

Passing an object as `inputProps` prop will pass it to the underlying input. It can be used for setting `name`, `placeholder` on input or listening to input events.

Minimal styles are included with the build.

Timezones are included in the bundle and can be accessed by importing `timezones` from the package.

A zone object's structure is like this:

```javascript
{
  name: string,
  label: string,
  offset: number,
}
```

## Timezones

Timezones are ~~stolen~~borrowed from Google Calendar.

## Example

```javascript
import TimezonePicker from 'react-timezone';

export default () => (
  <TimezonePicker
    value="Asia/Yerevan"
    onChange={timezone => console.log('New Timezone Selected:', timezone)}
    inputProps={{
      placeholder: 'Select Timezone...',
      name: 'timezone',
    }}
  />
);
```
npm package: @krutai/db-service
Description: DB service client for KrutAI
Latest version: 1.0.3

# @krutai/db-service

TypeScript/JavaScript client for fetching database configuration from KrutAI DB service.

## Database support

This package currently provides configuration for **PostgreSQL only**.

## Installation

```bash
npm install @krutai/db-service
```

## Quick start

```ts
import { DbService } from '@krutai/db-service';

const client = new DbService({
  apiKey: process.env.KRUTAI_API_KEY!,
  serverUrl: 'http://localhost:8000',
});

await client.initialize();

const config = await client.getDbConfig({
  projectId: 'your-project-id',
  dbName: 'your-db-name',
});

console.log(config.dbUrl); // postgres connection URL
```

## Environment variables

- `KRUTAI_API_KEY`: used automatically if `apiKey` is not passed in constructor.

## API overview

- `new DbService(config)` creates a client instance.
- `initialize()` validates API key with the service (unless `validateOnInit: false`).
- `isInitialized()` returns whether client is initialized.
- `getDbConfig({ projectId, dbName })` returns `{ dbUrl }`.
- `dbService(config)` helper returns a `DbService` instance.

## Configuration

`DbServiceConfig` fields:

- `apiKey` (string, required)
- `serverUrl` (string, required)
- `validateOnInit` (boolean, optional, default: `true`)

## Errors

- Throws `DbServiceKeyValidationError` for invalid or rejected API keys.
- Throws `Error` for invalid request input or non-OK responses from DB service.