open-index/open-npm huggingface dataset:
npm package: @karlbateman/trident
Description: Generate project codes
Author: Karl Bateman
Latest version: 1.0.0

# Trident

> [Project code](https://en.wikipedia.org/wiki/Code_name) generation module

Useful for naming projects which are not yet formerly named or which require something more obscure.

## Install

```bash
$ npm install @karlbateman/trident
```

## Usage

See the below example for a default usage.

```javascript
const Trident = require('@karlbateman/trident');

const trident = Trident();

trident.generate();
//=> 'ABC-XYZ'

trident.generate('+');
//=> 'ABC+XYZ'

trident.generate(':', 12);
//=> 'ABC:DEF:GHI:JKL'
```

The following example shows Trident using an alternative charcode range [0-9].

```javascript
const Trident = require('@karlbateman/trident');

const trident = Trident(48, 57);

trident.generate();
//=> '123-789';

trident.generate('|');
//=> '123|789'

trident.generate(',', 9);
//=> '123,456,789'
```

## License

[MIT](LICENSE) © [@karlbateman](https://github.com/karlbateman)
npm package: @karlbright/react-fa
Description: Font Awesome icons as React components
Author: Andrey Popp
Latest version: 3.2.4

# Font Awesome icons as React components

## Installation

React Font Awesome is distributed via [npm][]:

    % npm install react react-fa

You also need to install [webpack][] which is the only bundler at the moment
capable to bundle not only JavaScript code but also stylesheets and static
assets such as fonts and images:

    % npm install webpack

You also need a couple of loaders for webpack:

    % npm install jsx-loader style-loader css-loader url-loader
    % npm install extract-text-webpack-plugin

## Usage

Just as simple as:

    var React = require('react')
    var Icon = require('react-fa')

    React.renderComponent(
      <Icon spin name="spinner" />,
      document.body
    )

Use the following webpack config (put it in `webpack.config.js`):

    var ExtractTextPlugin = require('extract-text-webpack-plugin')

    module.exports = {
      entry: './index.js',
      output: {
        path: 'assets',
        filename: 'bundle.js',
      },
      module: {
        loaders: [
          {
            test: /\.js$/,
            loader: 'jsx-loader?harmony'
          },
          {
            test: /\.css$/,
            loader: ExtractTextPlugin.extract('style-loader', 'css-loader')
          },
          {
            test: /\.(otf|eot|svg|ttf|woff)$/,
            loader: 'url-loader?limit=8192'
          }
        ]
      },
      plugins: [
        new ExtractTextPlugin('bundle.css')
      ]
    }

which compile everything (js, stylesheets and icon fonts) into `assets/`
directory so you would need this basic HTML file to start your app:

    <!doctype html>
    <html>
      <head>
        <link rel="stylesheet" href="assets/bundle.css">
      </head>
      <body>
        <div id="main"></div>
        <script src="assets/bundle.js"></script>
      </body>
    </html>

[webpack]: http://webpack.github.io/
[npm]: http://npmjs.org
npm package: @karlcauchy/auto-dep
Description: Automatically tunneling or direct connection for golang `dep`. As easy as `dep` itself. Help you get rid of GFW of China.
Author: Karl Cauchy
Latest version: 0.0.7

# auto-dep
Automatically choose tunneling or direct connection for golang `dep`. As easy as `dep` itself.
Help you get rid of GFW of China.

## Installation

```bash
npm install -g @karlcauchy/auto-dep
```

## Usage

Create a UNIX/Linux virtual machine first. Or anything can provide you a socks proxy.
Simply by SSH (an example):

```bash
ssh -D 1080 username@example.com
```

If you do not want to save sensitive information at project root,
create an `~/.auto-dep.yaml`(optional) instead. Then auto-dep will read
it as default options. For example:

```yaml
proxies:
  ## One or many proxies. Will be chosen randomly.
  - socks5://127.0.0.1:1080/
```

In this way, you may setup different proxies on different
machines. Co-workers can share code without modifying anything
in a git repository.

Then create an `auto-dep.yaml` at your go project root, just like this:

```yaml
proxies:
  ## One or many proxies. Will be chosen randomly.
  # System will read ~/.auto-dep.yaml first.
  # If you would like to share between co-workers, you should
  # setup your proxy configuration there.
  # - socks5://127.0.0.1:1080/

includes:
  ## Sites go through proxies.
  - golang.org
  - gopkg.in
  - "*.googlesource.com"
  - "*.golang.org"

excludes:
  ## Sites go directly
  - cauchies.org
```

Then just call `auto-dep` like `dep`:

```bash
auto-dep init
auto-dep ensure
```

If you need arguments directly passed to `dep`:

```bash
auto-dep ensure -- -v
```

## Complex Usages

You can configure more in `auto-dep.yaml`:

```yaml
## Whether force all packages go through the tunneling.
# Equal to `-t` command line option.
force-tunneling: false

## System will choose these proxies randomly.
proxies:
  ## Single line proxy is ok.
  - socks5://127.0.0.1:1080/

  ## Or optional, this way, complex declaration
  - host: 10.0.0.1
    port: 1080
    protocol: socks5
    # Whether do DNS lookup through Socks Tunnel.
    # For socks5, it is set to true as default.
    lookup: true

includes:
  ## Sites go through proxy.
  - golang.org
  - gopkg.in
  - "*.googlesource.com"
  - "*.golang.org"

excludes:
  ## These entries have higher priority than `includes`
  # If you put any entry in `includes`, they will be ignored
  # as well.
  - cauchies.org
```

## Command line options

```
Usage: auto-dep [options]

Options:
  -V, --version          Print the version number
  -c, --config [config]  Read configs from file in json format
  -t, --tunneling        Force tunneling all traffic through proxies.
  --debug                Enable debug mode
  --level [level]        Set Log level, vals: info, error
  -h, --help             Print this help information
```