open-index/open-npm huggingface dataset:
npm package: @hong4rc/powered-by
Description: Express middleware custom `X-Powered-X`
Author: Anh Hong
Latest version: 0.0.2

# @hong4rc/powered-by

> Express middleware custom `X-Powered-X`

## Install

```bash
$ npm install @hong4rc/powered-by
```

Remember install `@types/express` for typescript:
```ts
$ npm install -D @types/express
```

## Usage

#### Typescript

```ts
import express from 'express';
import { poweredBy } from '@hong4rc/powered-by';

const app = express();
app.use(poweredBy());
```

```js
const express = require('express');
const { poweredBy } = require('@hong4rc/powered-by');

const app = express();
app.use(poweredBy());
```

## API

### poweredBy(value)

#### value

Type: `string | undefined`

Custom value for `x-powered-by`, use `undefined` to remove `X-Powered-By`

### POWERED_BY: 'x-powered-by'
npm package: @hong97/egg-auth
Description: [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down
Author: hongding
Latest version: 0.0.3

# egg-auth

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/egg-auth.svg?style=flat-square
[npm-url]: https://npmjs.org/package/egg-auth
[travis-image]: https://img.shields.io/travis/eggjs/egg-auth.svg?style=flat-square
[travis-url]: https://travis-ci.org/eggjs/egg-auth
[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-auth.svg?style=flat-square
[codecov-url]: https://codecov.io/github/eggjs/egg-auth?branch=master
[david-image]: https://img.shields.io/david/eggjs/egg-auth.svg?style=flat-square
[david-url]: https://david-dm.org/eggjs/egg-auth
[snyk-image]: https://snyk.io/test/npm/egg-auth/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/egg-auth
[download-image]: https://img.shields.io/npm/dm/egg-auth.svg?style=flat-square
[download-url]: https://npmjs.org/package/egg-auth

<!--
Description here.
-->

## Install

```bash
$ npm i egg-auth --save
```

## Usage

```js
// {app_root}/config/plugin.js
exports.auth = {
  enable: true,
  package: 'egg-auth',
};
```

## Configuration

```js
// {app_root}/config/config.default.js
exports.token = {
  // ignore: ''
};
exports.traffic = {
  windowSize: 60 * 1000,
  maxRequest: 1000,
}
```

see [config/config.default.js](config/config.default.js) for more detail.

## Example

<!-- example here -->

## Questions & Suggestions

Please open an issue [here](https://github.com/eggjs/egg/issues).

## License

[MIT](LICENSE)
npm package: @hong97/tslint
Description: **Work with [lint-staged](https://github.com/lint-staged/lint-staged), run tsc on staged files and output the result of staged-only files.**
Author: hongding
Latest version: 0.0.5

**Work with [lint-staged](https://github.com/lint-staged/lint-staged), run tsc on staged files and output the result of staged-only files.**

**⚠️ ONLY TESTED ON TYPESCRIPT 5**

## Setup

- Install [lint-staged](https://github.com/lint-staged/lint-staged), follow the instructions.

- Install tslint, use:

  ```bash
  npm i -D @hong97/tslint
  ```

- In package.json, add tslint to `*.ts`, `*.tsx` files.

  ```json
  "lint-staged": {
    "*.{ts,tsx}": [
      "tslint"
    ]
  },
  ```

- Use [Husky](https://github.com/typicode/husky) or other methods to set up your git 'pre-commit' hooks.

- Now, TypeScript will be checked at commit staged.


## Configuration

Create a file named `tslintconfig.js` in your root directory:

```js
module.exports = {
  alwaysInclude: [
    // always included in tsc process no matter these files are staged or not
  ],
  ignore: [
    // use glob pattern, see more: https://www.npmjs.com/package/minimatch
  ],
};
```

You can also set up a callback hook in config file:

```js
module.exports = {
  onFinish: (result) => {
    // ...
  } 
};
```

The callback will be invoked after tslint finish running and the results will be passed through.