open-index/open-npm huggingface dataset:
npm package: @gustavjorlov/ghpr
Description: > This readme is automatically generated by [create-ink-app](https://github.com/vadimdemedes/create-ink-app)
Author: Gustav Jorlöv
Latest version: 0.0.0

# ghpr

> This readme is automatically generated by [create-ink-app](https://github.com/vadimdemedes/create-ink-app)


## Install

```bash
$ npm install --global ghpr
```


## CLI

```
$ ghpr --help

  Usage
    $ ghpr

  Options
    --name  Your name

  Examples
    $ ghpr --name=Jane
    Hello, Jane
```
npm package: @gustavnikolaj/directory-named-webpack-plugin
Description: A Webpack plugin that treats a file with the name of directory as the index file
Author: Shaketbaby
Latest version: 2.0.0
Deprecated: The upstream project directory-named-webpack-plugin version 1.2.0 contains all commits added in this forked release. Please revert back to the upstream instead of using this one. It will not be maintained.


## What
Normally, Webpack looks for **index** file when the path passed to `require` points to a directory; which means there may have a lot of **index** files.

This plugin makes it possible to use the name of the directory as the name of the entry file, makes it easier to find.

## Usage

Add the following to Webpack's config file:

```javascript
  var DirectoryNamedWebpackPlugin = require("directory-named-webpack-plugin");

  plugins: [
    new webpack.ResolverPlugin(new DirectoryNamedWebpackPlugin())
  ]

```

Then when `require("component/foo")` and the path "component/foo" is resolved to a directory, Webpack will try to look for `component/foo/foo.js` as the entry.

If there is also an index file, e.g. `index.js`, and it should be used as entry file instead of the file with the same name of directory, pass `true` as the first argument when creating new instace. 

```javascript
  var DirectoryNamedWebpackPlugin = require("directory-named-webpack-plugin");

  plugins: [
    new webpack.ResolverPlugin(new DirectoryNamedWebpackPlugin(true))
  ]

```
npm package: @gustavnikolaj/express-systemjs-translate
Description: Express middleware to speed up systemjs development loads by running translations serverside
Author: Peter Müller
Latest version: 1.0.0-patch1

express-systemjs-translate
==========================

[![NPM version](https://badge.fury.io/js/express-systemjs-translate.svg)](http://badge.fury.io/js/express-systemjs-translate)
[![Build Status](https://travis-ci.org/Munter/express-systemjs-translate.svg?branch=master)](https://travis-ci.org/Munter/express-systemjs-translate)
[![Coverage Status](https://img.shields.io/coveralls/Munter/express-systemjs-translate.svg)](https://coveralls.io/r/Munter/express-systemjs-translate?branch=master)
[![Dependency Status](https://david-dm.org/Munter/express-systemjs-translate.svg)](https://david-dm.org/Munter/express-systemjs-translate)

Express middleware to speed up systemjs development loads by running translations serverside.

Usage
-----

You can use express-systemjs-translate with either [jspm]() or [systemjs.builder](). The configuration with jspm is simpler, since `baseUrl` the path to your systemjs configuration are implicit.

**Example usage with JSPM:**

```javascript
var express = require('express');
var translate = require('express-systemjs-translate');

var app = express()
  .use(translate())
  .use(express.static('path/to/webroot'));
```

**Example usage with systemjs-builder:**

```javascript
var express = require('express');
var translate = require('express-systemjs-translate');

var app = express()
  .use(translate({
    baseUrl: 'path/to/webroot',
    configFile: 'relative/path/from/baseUrl/to/config.js'
  }))
  .use(express.static('path/to/webroot'));
```


License
-------
(The MIT License)

Copyright (c) 2015 Peter Müller <munter@fumle.dk>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
npm package: @gustavnikolaj/mocha-watch
Description: Standalone watch mode for mocha.
Author: Gustav Nikolaj
Latest version: 0.0.2
Deprecated: Package has been renamed to imocha

# mocha-watch

[![npm version](https://badge.fury.io/js/%40gustavnikolaj%2Fmocha-watch.svg)](https://www.npmjs.com/package/@gustavnikolaj/mocha-watch)
[![Build Status](https://travis-ci.com/gustavnikolaj/mocha-watch.svg?branch=master)](https://travis-ci.com/gustavnikolaj/mocha-watch)
[![Coverage Status](https://coveralls.io/repos/github/gustavnikolaj/mocha-watch/badge.svg?branch=master)](https://coveralls.io/github/gustavnikolaj/mocha-watch?branch=master)

In development - work in progress!

Run tests associated to changed files (based on git status).

```
$ npm install --save-dev @gustavnikolaj/mocha-watch
```

or...

```
$ yarn add -D @gustavnikolaj/mocha-watch
```

Run the tests related to the changed files:

```
$ mocha-watch
```

## Description

When the cli is started, it will map out the test files and each of the source
files that they depend on - this is done through the `SourceGraph` class.

Then it looks at the dirty files (determined by running `git status`) and checks
which of the test files would be relevant to run based on which files has been
changed.

The tests are being run by mocha itself - a process is forked off from which
mocha is loaded. This happens on every single run to make sure that there is no
pollution between test runs. This is the responsibility of the `MochaWorker` class.

The orchestration of the above, and the watching of files are handled within the
`MochaWatch` class.

## Known limitations

### Dynamic imports

With `require` it is possible to do dynamic imports. This tool only supports
dependencies that are statically analyzable.

```js
// This will not work...

const pathToModule = "../myModule";
require(pathToModule);
```
npm package: @gustavnikolaj/server-helper
Description: Resolve configuration and restart server on changes.
Author: Gustav Nikolaj Olsen
Latest version: 3.2.0

# server helper

[![npm version](https://badge.fury.io/js/%40gustavnikolaj%2Fserver-helper.svg)](https://www.npmjs.com/package/@gustavnikolaj/server-helper)
[![Build Status](https://travis-ci.com/gustavnikolaj/server-helper.svg?branch=master)](https://travis-ci.com/gustavnikolaj/server-helper)

Simple node.js server helper module.

- It will run your server, and allow you to have a clean main application file,
  which won't be cluttered with bootstrap code.
- It can be used to restart your server on file change for a nice development
  experience.

## Example

```js
// app.js

const express = require("express");

module.exports = function appFactory() {
  const app = express();

  app.get("/", (req, res, next) => {
    res.send(`Hello, world!`);
  });

  return app;
};
```

```
$ server-helper app.js
```

## CLI Options

- `--watch` / `-w`: Enable automatic restarting on file changes.
- `--port` / `-p`: Change the port number. [Default: 3000]
- `--host` / `-h`: Change the host.

## Programmatic use:

```js
// start.js

const serverHelper = require("@gustavnikolaj/server-helper");

serverHelper({
  entrypoint: require.resolve("./app.js"),
  port: 5000
});
```

```
$ node start.js
```

The command line flags are still supported.

## Config

Configuration can be given in multiple different ways, to support different
use-cases. See
[doc/background/configuration.md](doc/background/configuration.md).

Options given as cli flags are used before options given as environment
variables, which are used before options given in the programmatic interface.

### Configuration through cli flags

- `--watch` / `-w`: Enable automatic restarting on file changes.
- `--port` / `-p`: Change the port number. [Default: 3000]
- `--host` / `-h`: Change the host.

The path to the entrypoint file is given as the only non-flag argument.

### Configuration through environment variables.

Configuration can also be passed through environment variables.

- `PORT`: The port number to listen to.
- `SERVERHELPER_PORT`: Same as `PORT`, but higher specificity.
- `SERVERHELPER_HOST`: What host to bind to.

### Configuration through options in api mode

You call serverHelper with an options object as the only argument. This can only
be done when invoking it programatically.

Supported properties:

- `entrypoint`: The path to the file that implements the server handler.
- `port`: The port number to listen to. (number)
- `host`: The host to bind to. (string)
- `watch`: Enables watch mode. (boolean)
npm package: @gustavoedny/betfair-client
Description: A simple Betfair REST API wrapper
Latest version: 1.4.1

## Betfair Client
#### A simple and lightweight Betfair API wrapper

##### Installing

Using YARN

```
yarn add @gustavoedny/betfair-client
```

Using NPM

```
npm install --save @gustavoedny/betfair-client
```

It currently supports:

| API              |-----|
|------------------|:---:|
| Authentication   |  ✔️  |
| Betting          |  ✔️  |
| Account          |  ❌ |
npm package: @gustavoedny/matchbook-js
Description: A API wrapper for the matchbook.com RESTful API service written in Javascript
Author: gustavo
Latest version: 0.0.3

# matchbook-js


## An API wrapper for the matchbook.com RESTful API service written in Javascript

### How to install

```shell
npm i @gustavoedny/matchbook-js
```

or using yarn

```shell
yarn add @gustavoedny/matchbook-js
```

### Usage

#### How to Login

```javascript
const { Auth } = require('@gustavoedny/matchbook-js')
const AuthService = Auth.factory()
let token = null

AuthService.login('username', 'password')
    .then(({ data }) => token = data['session-token'])
```

#### How to define the token to be used at all requests

```javascript
const { Auth } = require('@gustavoedny/matchbook-js')

// You can pass the token to the constructor
const AuthService = Auth.factory('a_valid_token')
// Or always when you want using the setToken method available
// at all the modules: Auth, Account, Events, etc...
AuthService.setToken('another valid token')
// You can also call the endpoint you need after set the token
AuthService.setToken('another valid token')
    .getSession()
    .then(res => console.log(res))
```

###  This package is under development. If you want to help pull requests are welcome :)
npm package: @gustavoedny/real-coin-price
Description: A simple function that gets the real price of any coin given a fraction of that coin, and the purchased value.
Author: Gustavo Edny
Latest version: 1.0.0

# Real Coin Price

#### A simple function that gets the real price of any coin given a fraction of that coin, and the purchased value.

### How to install

##### With NPM

```
 npm install @gustavoedny/real-coin-price
```
##### With NPM

```
 yarn add @gustavoedny/real-coin-price
```

### How to use

```
const realCoinPrice = require('@gustavoedny/real-coin-price')
// The result will be 100
const realPrice = realCoinPrice(0.5, 50)
```

Of course there is should be so much other solutions for this. However, I was planning about my finances, 
and I found a problem do discover the price I have purchased some Bitcoin and other Crypto Currencies.
So I started to think about how I could get the real price since I have the fraction, and the 
purchased value, then I started to code something.

#### Be free to fork this and do any change or open some issue/pull request
npm package: @gustavogomez092/create-react-wordpress-plugin
Description: A CLI to create React plugins on WordPress
Author: Gustavo Gomez
Latest version: 1.1.5

# `create-react-wordpress-plugin`

🏗 Personal CLI to bootstrap new projects

## Installation & Usage

```bash
## to Install the cli tool
npm i @gustavogomez092/create-react-wordpress-plugin -g

## to use the cli tool
crwp

## for development
npm run dev

## to get a production plugin
nm run prod
```

## License

MIT
npm package: @gustavogsb/nest-couchdb
Description: CouchDB module for Nest framework
Author: Gustavo Baptista
Latest version: 0.1.0

## Description

The [CouchDB](http://couchdb.apache.org/) module for Nest framework

## Installation

```bash
$ npm i @gustavoggsb/nest-couchdb nano
```

## Usage

`@gustavoggsb/nest-couchdb` uses [nano](https://www.npmjs.com/package/nano) as a data provider for CouchDB and the `Repository` pattern to handle all documents related operations.

First, let's create an `Entity`:

```typescript
import { Entity, CouchDbEntity } from '@gustavoggsb/nest-couchdb';

@Entity('cats')
export class Cat extends CouchDbEntity {
  name: string;
}
```

Where `cats` is the CouchDB database name.

The `CouchDbEntity` is a base class which has some common properties:

```typescript
class CouchDbEntity {
  _id: string;
  _rev: string;
}
```

Then, we need to import `CouchDbModule` in our `ApplicationModule`:

```typescript
import { Module } from '@nestjs/common';
import { CouchDbModule } from '@gustavoggsb/nest-couchdb';

@Module({
  imports: [
    CouchDbModule.forRoot({
      url: 'http://localhost:5984',
      username: 'couchdb',
      userpass: 'password',
      requestDefaults: { jar: true },
    }),
  ],
})
export class ApplicationModule {}
```

In our `CatsModule` we need to initiate repository for our `Cat` entity:

```typescript
import { Module } from '@nestjs/common';
import { CouchDbModule } from '@gustavoggsb/nest-couchdb';
import { CatsService } from './cats.service';
import { CatsController } from './cats.controller';
import { Cat } from './cat.entity';

@Module({
  imports: [CouchDbModule.forFeature([Cat])],
  providers: [CatsService],
  controllers: [CatsController],
})
export class CatsModule {}
```

And here is the usage of the repository in the service:

```typescript
import { DocumentListResponse } from 'nano';
import { Injectable } from '@nestjs/common';
import { InjectRepository, Repository } from '@gustavoggsb/nest-couchdb';
import { Cat } from './cat.entity';

@Injectable()
export class CatsService {
  constructor(
    @InjectRepository(Cat)
    private readonly catsRepository: Repository<Cat>,
  ) {}

  findAll(): Promise<DocumentListResponse<Cat> {
    return this.catsRepository.list();
  }
}
```

## Test

```bash
$ docker-compose up -d
$ npm test
```

## License

[MIT](LICENSE)

## Credits

Created by [@zMotivat0r](https://github.com/zMotivat0r) @ [Scalio](https://scal.io/)
npm package: @gustavoisensee/create-react-app
Description: It is a simple template generator for react apps with some awesome technologies like: * React * Webpack * Babel * Sass * Eslint * Node & Express
Author: Gustavo Isensee
Latest version: 1.0.9

# React template create app

It is a simple template generator for react apps with some awesome technologies like:
* React
* Webpack
* Babel
* Sass
* Eslint
* Node & Express


## install

```sh
npm i -g @gustavoisensee/create-react-app
```

## create project

```sh
// This is going to ask you the name of the project
create-react-app
```

## run

```sh
cd project-name

yarn && yarn start
```

Access http://localhost:3000 in your browser