open-index/open-npm huggingface dataset:
npm package: @sinchang/12306cli
Description: 一个查询 12306 余票的命令行工具
Author: sinchang
Latest version: 0.0.2


# 12306cli

[![NPM version](https://img.shields.io/npm/v/@sinchang/12306cli.svg?style=flat)](https://npmjs.com/package/@sinchang/12306cli) [![NPM downloads](https://img.shields.io/npm/dm/@sinchang/12306cli.svg?style=flat)](https://npmjs.com/package/@sinchang/12306cli)

## Install

```bash
npm install @sinchang/12306cli -g
```

## Demo

[![asciicast](https://asciinema.org/a/157068.png)](https://asciinema.org/a/157068)

## Usage

```js
直接输入命令 12306cli 即可

需要进行间隔刷新，加上 option `12306cli --refresh`，默认 5s，可以自行添加毫秒数
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D


## Author

**12306cli** © [sinchang](https://github.com/sinchang), Released under the [MIT](./LICENSE) License.<br>
Authored and maintained by sinchang with help from contributors ([list](https://github.com/sinchang/12306cli/contributors)).

> [sinchang.me](https://sinchang.me) · GitHub [@sinchang](https://github.com/sinchang) · Twitter [@sinchangwen](https://twitter.com/sinchangwen)
npm package: @sinchang/anywhere
Description: Run static file server anywhere
Author: Jackson Tian
Latest version: 2.0.0

Anywhere 随启随用的静态文件服务器
==============================

Running static file server anywhere. 随时随地将你的当前目录变成一个静态文件服务器的根目录。

## Installation

Install it as a command line tool via `npm -g`.

```sh
npm install anywhere -g
```

## Execution

```sh
$ anywhere
// or with port
$ anywhere -p 8000
// or start it but silent(don't open browser)
$ anywhere -s
// or with hostname
$ anywhere -h localhost -p 8888
// or with folder
$ anywhere -d ~/git/anywhere
// or enable html5 history
$ anywhere -f /index.html
```

## Help

```sh
$ anywhere --help
Usage:
  anywhere --help // print help information
  anywhere // 8000 as default port, current folder as root
  anywhere 8888 // 8888 as port
  anywhere -p 8989 // 8989 as port
  anywhere -s // don't open browser
  anywhere -h localhost // localhost as hostname
  anywhere -d /home // /home as root
  anywhere -f /index.html  // Enable html5 history,the index is /index.html
  anywhere --proxy http://localhost:7000/api // Support shorthand URL, webpack.config.js or customize config file
```

#### Proxy argvs

**Shorthand URL**
```
anywhere --proxy http://localhost:7000/api
                 \___________________/\___/
                              |         |
                           target    context
```
More about the [shorthand configuration](https://github.com/chimurai/http-proxy-middleware#shorthand).

**Webpack config**
```javascript
// webpack.config.js
module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:7000',
        changeOrigin: true
      }
    }
  }
}
```

**Customize config**
```javascript
// proxy.config.js
module.exports = {
  '/api': {
    target: 'http://localhost:7000',
    changeOrigin: true
  }
}
```
More proxy [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware#context-matching) help.

## Visit

```
http://localhost:8000
```
Automatically open default browser. 执行命令后，默认浏览器将为您自动打开主页。

## License
The MIT license.
npm package: @sinchang/gitopen
Description: Open git remote url from web browser
Author: sinchang
Latest version: 0.0.3

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/sinchang/gitopen/master/LICENSE)
[![Build Status](https://img.shields.io/travis/sinchang/gitopen.svg)](https://travis-ci.org/sinchang/gitopen)
[![npm](https://img.shields.io/npm/v/@sinchang/gitopen.svg)](https://www.npmjs.com/package/@sinchang/gitopen)
[![NPM downloads](https://img.shields.io/npm/dm/@sinchang/gitopen.svg?style=flat)](https://npmjs.com/package/@sinchang/gitopen)
[![prettier](https://img.shields.io/badge/style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

# gitopen

> Open git remote url from web browser

## Install

```
yarn global add @sinchang/gitopen
```

Or

```
npm install --global @sinchang/gitopen
```

## Usage

```
gitopen
```

#### License

MIT © [sinchang](https://github.com/sinchang)
npm package: @sinchang/react-github-badge
Description: > Inspired by [vue-github-badge](https://github.com/egoist/vue-github-badge)
Author: sinchang
Latest version: 0.0.4

# react-github-badge

> Inspired by [vue-github-badge](https://github.com/egoist/vue-github-badge)

[![NPM version](https://img.shields.io/npm/v/@sinchang/react-github-badge.svg?style=flat)](https://npmjs.com/package/@sinchang/react-github-badge) 
[![NPM downloads](https://img.shields.io/npm/dm/@sinchang/react-github-badge.svg?style=flat)](https://npmjs.com/package/@sinchang/react-github-badge)

## Demo

[see here](https://react-github-badge.netlify.com)

## Install

```bash
yarn add @sinchang/react-github-badge
```

## Usage

```react
import GithubBadge from '@sinchang/react-github-badge'

...

render () {
  return (
    <GithubBadge
      url='sinchang/react-github-badge'
    />
  )
}
```

## API

### Props

#### slug

Type: `string`<br>
Required: `true`

GitHub slug (owner/repo)

#### width/height

Type: `number`<br>
Default: `36`

width/height of svg icon

#### fill

Type: `string`<br>
Default: `black`

The `fill` color of svg icon, you can set it to `currentColor` to inherit from parent element.

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D


## Author

**react-github-badge** © [sinchang](https://github.com/sinchang), Released under the [MIT](./LICENSE) License.<br>
Authored and maintained by sinchang with help from contributors ([list](https://github.com/sinchang/react-github-badge/contributors)).

> [sinchang.me](https://sinchang.me) · GitHub [@sinchang](https://github.com/sinchang) · Twitter [@sinchangwen](https://twitter.com/sinchangwen)
npm package: @sinchsmb/commit
Description: Shared Commitlint configuration for the SinchSMB frontend
Latest version: 0.1.1

# sinchsmb/commit

Shared [commitlint](https://github.com/conventional-changelog/commitlint) configuration for the SinchSMB frontend.\
Based on the [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional) config.

The config is validated by this [json schema](https://json.schemastore.org/commitlintrc).

You can read more about the conventional commits here:
https://www.conventionalcommits.org/en/v1.0.0/

It is recommended to use these packages to get a full cycle of consistent commits:
 - [commitizen](https://github.com/commitizen/cz-cli) -- Prepare commit message
 - [commitlint](https://github.com/conventional-changelog/commitlint) -- Check commit message
 - [@commitlint/cz-commitlint](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/cz-commitlint) -- Use the same config for both commitizen and commitlint
 - [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional) -- Conventional commit config

Read more in the docs.

This package also provides a command to automatically setup the above packages.

```
npx @sinchsmb/commit init
```
This command will:
 - Install and setup the husky package if it isn't installed
 - Install packages (@commitlint/cli, @commitlint/cz-commitlint, commitizen)
 - Setup hooks (prepare-commit-msg, commit-msg)
 - Create configuration files (.cz.json, .commitlintrc.json)

You can achieve the same result by following the steps below.

Install and setup the [husky](https://github.com/typicode/husky) package
```
npm install husky --save-dev
npm set-script prepare "husky install"
npm run prepare
```

Install commitizen, commitlint, commitlint adapter for commitizen, config for commitlint.
```
npm install @sinchsmb/commit @commitlint/cli @commitlint/cz-commitlint commitizen --save-dev
```

Setup the prepare-commit-msg hook (commitizen)
```
npx husky add .husky/prepare-commit-msg "exec < /dev/tty && npx cz --hook || true"
git add .husky/prepare-commit-msg
```

Setup the commit-msg hook (commitlint)
```
cat <<EEE > .husky/commit-msg
#!/bin/sh
. "\$(dirname "\$0")/_/husky.sh"

npx --no -- commitlint --edit "\${1}"
EEE
```
Npx will swallow the "\${1}" string so, please, use the command above.
```
chmod a+x .husky/commit-msg
git add .husky/commit-msg
```

Copy .cz.json and .commitlintrc.json from src/config into the project root. 

# IDE users warning
The prepare-commit-msg hook doesn't work (silently skipped) when run through the IDE.
It requires an interactive terminal.
However, you can use an IDE plugin to properly format the commit message.

- WebStorm plugin: https://plugins.jetbrains.com/plugin/13389-conventional-commit