open-index/open-npm huggingface dataset:
npm package: @requestkit/node
Description: Request Kit Node.js Client
Latest version: 2.0.0

Nodejs client for RequestKit

## Installation

```bash
npm install @requestkit/node
```

## Usage

```ts
import { RequestKit } from "@requestkit/node";

const requestKit = new RequestKit({ apiKey: "your-api-key" });

const requests = await requestKit.getRequests();
console.log(requests);
```

## API

### getRequests

```ts
const requests = await requestKit.getRequests();
```

### createRequest

```ts
const request = await requestKit.createRequest({
  title: "My Request",
  description: "This is a test request",
});
```

### upvoteRequest

```ts
const request = await requestKit.upvoteRequest(requestId);
```

### removeUpvoteFromRequest

```ts
const request = await requestKit.removeUpvoteFromRequest(requestId);
```

### getRequest

```ts
const request = await requestKit.getRequest(requestId);
```
npm package: @requestly/colors
Description: Color palettes calculator of RQ Design
Latest version: 1.0.2

<h1 align="center">Requestly Design Colors</h1>

<div align="center">

:art: Color palettes calculator of Requestly Design.

![](https://user-images.githubusercontent.com/507615/55726820-43e68400-5a43-11e9-8541-b0fc28b78f37.png)

## Install

```bash
$ npm install @requestly/colors
// or
$ yarn add @requestly/colors
```

## Usage

```bash
$ npm install @requestly/colors --save
```

```js
import {
  red,
  volcano,
  gold,
  yellow,
  lime,
  green,
  cyan,
  blue,
  geekblue,
  purple,
  magenta,
  grey,
} from '@requestly/colors';

console.log(blue); // ['#E6F4FF', '#BAE0FF', '#91CAFF', '#69B1FF', '#4096FF', '#1677FF', '#0958D9', '#003EB3', '#002C8C', '#001D66']
console.log(blue.primary); // '#1677FF'
```

```js
import { generate, presetPalettes } from '@requestly/colors';

// Generate color palettes by a given color
const colors = generate('#1890ff');
console.log(colors); // ['#E6F7FF', '#BAE7FF', '#91D5FF', ''#69C0FF', '#40A9FF', '#1890FF', '#096DD9', '#0050B3', '#003A8C', '#002766']
console.log(presetPalettes);
/*
{
  red: [...],
  volcano: [...],
  orange: [...],
  gold: [...],
  yellow: [...],
  lime: [...],
  green: [...],
  cyan: [...],
  blue: [...],
  geekblue: [...],
  purple: [...],
  magenta: [...],
}
*/
```

```js
import { generate, presetDarkPalettes } from '@requestly/colors';

// Generate dark color palettes by a given color
const colors = generate('#1890ff', {
  theme: 'dark',
  backgroundColor: '#141414',
});
console.log(colors); // ['#111d2c', '#112a45', '#15395b', '#164c7e', '#1765ad', '#177ddc', '#3c9ae8', '#65b7f3', '#8dcff8', '#b7e3fa']
console.log(presetDarkPalettes);
/*
{
  red: [...],
  volcano: [...],
  orange: [...],
  gold: [...],
  yellow: [...],
  lime: [...],
  green: [...],
  cyan: [...],
  blue: [...],
  geekblue: [...],
  purple: [...],
  magenta: [...],
}
*/
```

## Articles

- [Ant Design Colors](https://ant.design/docs/spec/colors)
- [Ant Design 色板生成算法演进之路](https://zhuanlan.zhihu.com/p/32422584)