open-index/open-npm huggingface dataset:
npm package: @raydeck/react-native-lightbox
Description: Images etc in Full Screen Lightbox Popovers for React Native
Author: Joel Arvidsson
Latest version: 0.8.1

# react-native-lightbox

## Installation

```
yarn add react-native-lightbox
```

## Usage

`navigator` property is optional but recommended on iOS, see next section for `Navigator` configuration.

```js
import Lightbox from 'react-native-lightbox';

const LightboxView ({ navigator }) => (
  <Lightbox navigator={navigator}>
    <Image
      style={{ height: 300 }}
      source={{ uri: 'http://knittingisawesome.com/wp-content/uploads/2012/12/cat-wearing-a-reindeer-hat1.jpg' }}
    />
  </Lightbox>
);
```

### Navigator setup/Android support

For android support you must pass a reference to a `Navigator` since it does not yet have the `Modal` component and is not on the official todo list. See the `Example` project for a complete example.

```js
const renderScene = (route, navigator) => {
  const Component = route.component;

  return (
    <Component navigator={navigator} route={route} {...route.passProps} />
  );
};

const MyApp = () => (
  <Navigator
    ref="navigator"
    style={{ flex: 1 }}
    renderScene={renderScene}
    initialRoute={{
      component: LightboxView,
    }}
  />
);
```

## Properties

| Prop | Type | Description |
|---|---|---|
|**`activeProps`**|`object`|Optional set of props applied to the content component when in lightbox mode. Usable for applying custom styles or higher resolution image source.|
|**`renderHeader(close)`**|`function`|Custom header instead of default with X button|
|**`renderContent`**|`function`|Custom lightbox content instead of default child content|
|**`willClose`**|`function`|Triggered before lightbox is closed|
|**`onClose`**|`function`|Triggered when lightbox is closed|
|**`onOpen`**|`function`|Triggered when lightbox is opened|
|**`didOpen`**|`function`|Triggered after lightbox is opened|
|**`underlayColor`**|`string`|Color of touchable background, defaults to `black`|
|**`backgroundColor`**|`string`|Color of lightbox background, defaults to `black`|
|**`swipeToDismiss`**|`bool`|Enables gestures to dismiss the fullscreen mode by swiping up or down, defaults to `true`.|
|**`springConfig`**|`object`|[`Animated.spring`](https://facebook.github.io/react-native/docs/animations.html) configuration, defaults to `{ tension: 30, friction: 7 }`.|

## Demo

![Demo](https://cloud.githubusercontent.com/assets/378279/9074360/16eac5d6-3b09-11e5-90af-a69980e9f4be.gif)

## Example

Check full example in the `Example` folder.

## License

[MIT License](http://opensource.org/licenses/mit-license.html). © Joel Arvidsson
npm package: @raydeck/react-native-utilities
Description: Utility library for advanced React Native development
Author: Ray Deck
Latest version: 1.4.1

# react-native-utilities

Functions for managing React Native projects

```javascript
const { ios, android, common } = require("@raydeck/react-native-utilities");

///...

await ios.getBuildProperty("PRODUCT_BUNDLE_IDENTIFIER");
```

## android

## ios

## common
npm package: @raydeck/registry-manager-cli
Description: <a name="readmemd"></a>
Author: Ray Deck
Latest version: 1.0.2


<a name="readmemd"></a>

Template for making easy-to-work-with tempates

# ts-template

## Usage

1. [Copy this template](https://github.com/rhdeck/ts-template/)
2. Clone to a local directory (eg `git clone https://github.com/me/my-repository/ && cd my-repository`)
3. Run `yarn && yarn setup` to initialize the node package (Get rid of template strings - and this readme!)
4. Happy Coding!

## Useful Scripts

1. `yarn build` will build using typescript pre-configured to node-compatible defaults
2. `yarn docs` will auto-generate a README.md that starts with TOP.md, then adds CLI documentation (via [commanderdoc](https://npmjs.com/package/commanderdoc)) for any tool you have set up, and then library documentation after that.
3. `yarn test` is pre-configured to test for typescript errors
4. `yarn watch` will watch the codebase for changes and rebuild (using [livelink](https://npmjs.com/package/@raydeck/livelink))

## Git code protections

1. `git commit` will be blocked on the `main` branch unless you set the environment variable `ALLOWMAIN=1` Branch commits and PRs are thus encouraged
2. `git commit` also tests messages for meeting the commitline standard conventions.
3. `git commit` blocks pushes that do not pass `yarn test` (as a base case, they must pass typescript compilation)
4. `npm publish` will always rebuild the code, the documentation, and push those changes back to the repository.
5. `npm publish` will only publish the lib and src directories - any others are no

## A note on "main"

I made a deliberate choice to change the primary branch from `master` to `main` for reasons that are obvious to some. This repository endeavors to make that just automatic.

PRs and feedback welcome via GitHub issues.


<a name="__climd"></a>

# Usage
```bash
npx @raydeck/registry-manager-cli [options] [path]
```
Get registry options from serverless source path

<a name="_librarymd"></a>


# @raydeck/registry-manager-cli - v1.0.2

## Index

### Functions

* [configureRegistry](#configureregistry)

## Functions

###  configureRegistry

▸ **configureRegistry**(`path`: string): *any*

*Defined in [index.ts:7](https://github.com/rhdeck/registry-manager-cli/blob/a00c270/src/index.ts#L7)*

**Parameters:**

Name | Type |
------ | ------ |
`path` | string |

**Returns:** *any*
npm package: @raydeck/serverless-console
Description: Open the AWS Cloudformation Console for current serverless stack
Author: Ray Deck
Latest version: 1.0.1


<a name="__climd"></a>

# Usage
```bash
serverless-console [options]
```
Open the AWS Cloudformation Console for current serverless stack
# Options
* -p --path \<`path`> Working path for serverless package (default: `.`)

<a name="librarymd"></a>

[@raydeck/serverless-console - v1.0.1](README.md)

# @raydeck/serverless-console - v1.0.1
npm package: @raydeck/serverless-deploy
Description: <a name="__climd"></a>
Author: Ray Deck
Latest version: 2.1.0


<a name="__climd"></a>

# Usage
```bash
@raydeck/serverless-deploy [options]
```
# Options
* -V, --version output the version number 
* -f --force Force deploy (slower but guarantees full deployment 

<a name="librarymd"></a>


# @raydeck/serverless-deploy - v2.1.0

## Index

### Variables

* [description](#description)
* [force](#const-force)
* [start](#const-start)
* [version](#version)

### Functions

* [Deploy](#deploy)
* [Remove](#remove)
* [doesPackageJSONExist](#doespackagejsonexist)

## Variables

###  description

• **description**: *any*

*Defined in [bin.ts:9](https://github.com/rhdeck/serverless-deploy/blob/2fdcc8e/src/bin.ts#L9)*

___

### `Const` force

• **force**: *any* = commander.opts().force || false

*Defined in [bin.ts:27](https://github.com/rhdeck/serverless-deploy/blob/2fdcc8e/src/bin.ts#L27)*

___

### `Const` start

• **start**: *number* = Date.now().valueOf()

*Defined in [bin.ts:2](https://github.com/rhdeck/serverless-deploy/blob/2fdcc8e/src/bin.ts#L2)*

___

###  version

• **version**: *any*

*Defined in [bin.ts:9](https://github.com/rhdeck/serverless-deploy/blob/2fdcc8e/src/bin.ts#L9)*

## Functions

###  Deploy

▸ **Deploy**(`dir`: string, `force`: boolean): *void*

*Defined in [bin.ts:98](https://github.com/rhdeck/serverless-deploy/blob/2fdcc8e/src/bin.ts#L98)*

**Parameters:**

Name | Type | Default |
------ | ------ | ------ |
`dir` | string | - |
`force` | boolean | false |

**Returns:** *void*

___

###  Remove

▸ **Remove**(`dir`: string): *void*

*Defined in [bin.ts:138](https://github.com/rhdeck/serverless-deploy/blob/2fdcc8e/src/bin.ts#L138)*

**Parameters:**

Name | Type |
------ | ------ |
`dir` | string |

**Returns:** *void*

___

###  doesPackageJSONExist

▸ **doesPackageJSONExist**(`fp`: string): *boolean*

*Defined in [bin.ts:94](https://github.com/rhdeck/serverless-deploy/blob/2fdcc8e/src/bin.ts#L94)*

**Parameters:**

Name | Type |
------ | ------ |
`fp` | string |

**Returns:** *boolean*
npm package: @raydeck/serverless-setup
Description: Utility for setting up a serverless config
Author: Ray Deck
Latest version: 3.1.2


<a name="__climd"></a>

# Usage
```bash
serverless-setup [options]
```
# Options
* -p --currentPath \<`pathname`> Reference path for examining a serverlesss setup (default: .
* -t --stage \<`stage`> Stack stage to check against. Defaul value is dev (default: dev
* -a --aws-profile \<`profile`> Named AWS Profile 
* -f --file-name [filename] File to write output (default config.json) (default: config.json
* -s --standard-output Write to standard output instead of config.json 
* -n --stack-name \<`stackname`> Name of the stack/application (e.g. privilege, test-a, etc) 
* -r --region \<`region`> Region to pass to serverless commands 

<a name="librarymd"></a>


# @raydeck/serverless-setup - v3.1.2

## Index

### Variables

* [cachedAccountId](#let-cachedaccountid)

### Functions

* [getAccountID](#const-getaccountid)
* [makeConfig](#const-makeconfig)
* [writeConfig](#const-writeconfig)

## Variables

### `Let` cachedAccountId

• **cachedAccountId**: *string | undefined*

*Defined in [index.ts:8](https://github.com/rhdeck/serverless-setup/blob/34e593a/src/index.ts#L8)*

## Functions

### `Const` getAccountID

▸ **getAccountID**(): *Promise‹string›*

*Defined in [index.ts:9](https://github.com/rhdeck/serverless-setup/blob/34e593a/src/index.ts#L9)*

**Returns:** *Promise‹string›*

___

### `Const` makeConfig

▸ **makeConfig**(`__namedParameters`: object): *Promise‹object›*

*Defined in [index.ts:16](https://github.com/rhdeck/serverless-setup/blob/34e593a/src/index.ts#L16)*

**Parameters:**

▪ **__namedParameters**: *object*

Name | Type | Default |
------ | ------ | ------ |
`awsProfile` | undefined &#124; string | - |
`cmd` | cmd | - |
`currentPath` | string | process.cwd() |
`fromName` | string | - |
`getMyResources` | boolean | false |
`ignoreResources` | boolean | false |
`region` | undefined &#124; string | - |
`stage` | string | "dev" |

**Returns:** *Promise‹object›*

___

### `Const` writeConfig

▸ **writeConfig**(`fromObject`: object, `toPath`: string, `fileName`: string): *boolean*

*Defined in [index.ts:111](https://github.com/rhdeck/serverless-setup/blob/34e593a/src/index.ts#L111)*

**Parameters:**

Name | Type | Default |
------ | ------ | ------ |
`fromObject` | object | - |
`toPath` | string | process.cwd() |
`fileName` | string | "config.json" |

**Returns:** *boolean*
npm package: @raydeck/serverless-setup-appsync
Description: Generate appsync config for webapp and react native clients in serverless monorepos
Author: Ray Deck
Latest version: 1.0.1


<a name="readmemd"></a>

# serverless-setup-appsync


<a name="__climd"></a>

# Usage
```bash
npx @raydeck/serverless-setup-appsync [options]
```
# Options
* -s --stage [stage] Stage for the stack we are examining (default from monorepo root) 
* -r --region [region] Region for the stack (default us-east-1) 

<a name="_librarymd"></a>


# @raydeck/serverless-setup-appsync - v1.0.1

## Index

### Variables

* [appSyncPath](#appsyncpath)
* [region](#region)
* [stage](#stage)

### Functions

* [getConfig](#getconfig)
* [writeConfig](#writeconfig)

## Variables

###  appSyncPath

• **appSyncPath**: *any*

*Defined in [bin.ts:15](https://github.com/rhdeck/serverless-setup-appsync/blob/53dce72/src/bin.ts#L15)*

___

###  region

• **region**: *any*

*Defined in [bin.ts:15](https://github.com/rhdeck/serverless-setup-appsync/blob/53dce72/src/bin.ts#L15)*

___

###  stage

• **stage**: *any*

*Defined in [bin.ts:15](https://github.com/rhdeck/serverless-setup-appsync/blob/53dce72/src/bin.ts#L15)*

## Functions

###  getConfig

▸ **getConfig**(`__namedParameters`: object): *Promise‹object›*

*Defined in [index.ts:7](https://github.com/rhdeck/serverless-setup-appsync/blob/53dce72/src/index.ts#L7)*

**Parameters:**

▪ **__namedParameters**: *object*

Name | Type | Default |
------ | ------ | ------ |
`appsyncPath` | undefined &#124; string | - |
`path` | string | process.cwd() |
`region` | string | findRegion() || process.env.AWS_REGION || "us-east-1" |
`stage` | string | findStage() ?? "dev" |

**Returns:** *Promise‹object›*

___

###  writeConfig

▸ **writeConfig**(`config`: PromiseValue‹ReturnType‹typeof getConfig››, `path`: string): *void*

*Defined in [index.ts:33](https://github.com/rhdeck/serverless-setup-appsync/blob/53dce72/src/index.ts#L33)*

**Parameters:**

Name | Type | Default |
------ | ------ | ------ |
`config` | PromiseValue‹ReturnType‹typeof getConfig›› | - |
`path` | string | join(process.cwd(), "config") |

**Returns:** *void*
npm package: @raydeck/serverless-setup-cognito
Description: Create cognito config file for use by amplify in serverless monorepos
Author: Ray Deck
Latest version: 1.0.2


<a name="readmemd"></a>

Set up cognito.json for web apps and react native apps in serverless monorepos


<a name="__climd"></a>

# Usage
```bash
npx @raydeck/serverless-setup-cognito [options]
```
# Options
* -s --stage [stage] Stage for the stack we are examining (default from monorepo root) 
* -r --region [region] Region for the stack (default us-east-1) 
* -p --cognitoPath [path] Path to the cognito serverless package 
* -c --clientPath [path] Path to the package defining the app client 
* -k --clientName [resourceName] Logical name of the cognito client name resource (e.g. CounselorClient) 

<a name="_librarymd"></a>


# @raydeck/serverless-setup-cognito - v1.0.2

## Index

### Variables

* [clientName](#clientname)
* [clientPath](#clientpath)
* [cognitoPath](#cognitopath)
* [region](#region)
* [stage](#stage)

### Functions

* [getConfig](#getconfig)
* [writeConfig](#writeconfig)

## Variables

###  clientName

• **clientName**: *any*

*Defined in [bin.ts:28](https://github.com/rhdeck/serverless-setup-cognito/blob/ce0679d/src/bin.ts#L28)*

___

###  clientPath

• **clientPath**: *any*

*Defined in [bin.ts:28](https://github.com/rhdeck/serverless-setup-cognito/blob/ce0679d/src/bin.ts#L28)*

___

###  cognitoPath

• **cognitoPath**: *any*

*Defined in [bin.ts:28](https://github.com/rhdeck/serverless-setup-cognito/blob/ce0679d/src/bin.ts#L28)*

___

###  region

• **region**: *any*

*Defined in [bin.ts:28](https://github.com/rhdeck/serverless-setup-cognito/blob/ce0679d/src/bin.ts#L28)*

___

###  stage

• **stage**: *any*

*Defined in [bin.ts:28](https://github.com/rhdeck/serverless-setup-cognito/blob/ce0679d/src/bin.ts#L28)*

## Functions

###  getConfig

▸ **getConfig**(`__namedParameters`: object): *Promise‹object›*

*Defined in [index.ts:7](https://github.com/rhdeck/serverless-setup-cognito/blob/ce0679d/src/index.ts#L7)*

**Parameters:**

▪ **__namedParameters**: *object*

Name | Type | Default |
------ | ------ | ------ |
`clientName` | undefined &#124; string | - |
`clientPath` | undefined &#124; string | - |
`cognitoPath` | undefined &#124; string | - |
`path` | string | process.cwd() |
`region` | undefined &#124; string | - |
`stage` | string | - |

**Returns:** *Promise‹object›*

___

###  writeConfig

▸ **writeConfig**(`config`: PromiseValue‹ReturnType‹typeof getConfig››, `path`: string): *void*

*Defined in [index.ts:55](https://github.com/rhdeck/serverless-setup-cognito/blob/ce0679d/src/index.ts#L55)*

**Parameters:**

Name | Type | Default |
------ | ------ | ------ |
`config` | PromiseValue‹ReturnType‹typeof getConfig›› | - |
`path` | string | join(process.cwd(), "config") |

**Returns:** *void*
npm package: @raydeck/serverless-yaml
Description: Inherit YAML changes for serverless
Author: Ray Deck
Latest version: 1.4.1


<a name="readmemd"></a>

# serverless-yaml

Utility for extending serverless yml based on common components from dependencies.

## Usage

Create files that are useful in a "serverless" subdirectory in a dependency or in the top level package with names that point to the path within the serverless object you want to update, like:

- `provider.environment.yml` - a map of environment variables to be added to provider.envrionment for common usage
- `Resources.mainRole.Properties.Policies.yml` - a list of policies to add to the the roles called mainRole.

Supports yaml encoding (detected by `.yml` or `.yaml` extension) and JSON (`.json`)


<a name="__climd"></a>

# Usage
```bash
npx @raydeck/serverless-yaml [options]
```
Update serverless yml based on partials in depedencies
# Options
* -y --yaml-file \<`path`> Serverless yml file to inspect (default: `./serverless.yml`)
* -o --output \<`path`> Output file (default is same as input serverless file) 
* -w --working-path \<`path`> Working path for node project (default: `.`)

<a name="_librarymd"></a>

@raydeck/serverless-yaml - v1.4.1

# @raydeck/serverless-yaml - v1.4.1

## Table of contents

### Functions

- [apply](#apply)
- [inspectDependency](#inspectdependency)

## Functions

### apply

▸ **apply**(`source`: { [key: string]: *any*;  }, `key`: *string*, `objOrArray`: { [key: string]: *any*;  } \| *any*[]): *undefined* \| { [key: string]: *any*;  }

#### Parameters:

Name | Type |
------ | ------ |
`source` | { [key: string]: *any*;  } |
`key` | *string* |
`objOrArray` | { [key: string]: *any*;  } \| *any*[] |

**Returns:** *undefined* \| { [key: string]: *any*;  }

Defined in: [index.ts:62](https://github.com/rhdeck/serverless-yaml/blob/f474063/src/index.ts#L62)

___

### inspectDependency

▸ **inspectDependency**(`path`: *string*, `keys?`: *string*[]): *object*

#### Parameters:

Name | Type | Default value |
------ | ------ | ------ |
`path` | *string* | - |
`keys` | *string*[] | ... |

**Returns:** *object*

Name | Type |
------ | ------ |
`key?` | *undefined* \| *string* |
`value?` | *undefined* \| *any*[] \| { [key: string]: *any*;  } |

Defined in: [index.ts:4](https://github.com/rhdeck/serverless-yaml/blob/f474063/src/index.ts#L4)
npm package: @raydeck/timetravel
Description: Time travel client
Author: Ray Deck
Latest version: 1.0.1


<a name="readmemd"></a>

# node-timetravel

Library for easily running timetravel-as-a-service calls from the command line or inside code.


<a name="__climd"></a>

# Usage
```bash
npx @raydeck/timetravel [options]
```

<a name="_librarymd"></a>

[@raydeck/timetravel - v1.0.1](#readmemd)

# @raydeck/timetravel - v1.0.1

## Index

### Type aliases

* [Endpoint](#endpoint)
* [RunLaterArgs](#runlaterargs)

### Functions

* [cancel](#cancel)
* [init](#init)
* [runLater](#runlater)

## Type aliases

###  Endpoint

Ƭ **Endpoint**: *object*

*Defined in [index.ts:147](https://github.com/rhdeck/node-timetravel/blob/a309f35/src/index.ts#L147)*

Where to send the request

#### Type declaration:

* **encoding**: *GQLPostFormat*

* **headers**(): *object*

* **method**: *GQLWebRequestMETHOD*

* **url**: *string*

___

###  RunLaterArgs

Ƭ **RunLaterArgs**: *object*

*Defined in [index.ts:160](https://github.com/rhdeck/node-timetravel/blob/a309f35/src/index.ts#L160)*

Arguments for a runLater call

#### Type declaration:

* **id**? : *undefined | string*

* **payload**(): *object*

* **runOn**: *Date*

* **sendTo**: *[Endpoint](#endpoint)*

* **token**? : *undefined | string*

## Functions

###  cancel

▸ **cancel**(`__namedParameters`: object): *Promise‹any›*

*Defined in [index.ts:227](https://github.com/rhdeck/node-timetravel/blob/a309f35/src/index.ts#L227)*

Cancel a previously-scheduled event

**Parameters:**

▪ **__namedParameters**: *object*

Name | Type |
------ | ------ |
`id` | string |
`token` | string |

**Returns:** *Promise‹any›*

Identifier for the archived version of the now-cancelled event

___

###  init

▸ **init**(`token`: string | AccessObject): *Promise‹ApolloClient‹NormalizedCacheObject››*

*Defined in [index.ts:118](https://github.com/rhdeck/node-timetravel/blob/a309f35/src/index.ts#L118)*

Timetravel relationship

**Parameters:**

Name | Type | Description |
------ | ------ | ------ |
`token` | string &#124; AccessObject | token for setting up timetravel  |

**Returns:** *Promise‹ApolloClient‹NormalizedCacheObject››*

___

###  runLater

▸ **runLater**(`args`: [RunLaterArgs](#runlaterargs)): *Promise‹any›*

*Defined in [index.ts:177](https://github.com/rhdeck/node-timetravel/blob/a309f35/src/index.ts#L177)*

Schedule an event to run in the future

**Parameters:**

Name | Type |
------ | ------ |
`args` | [RunLaterArgs](#runlaterargs) |

**Returns:** *Promise‹any›*

identifier for the scheduled event (same as id argument if it was passed)
npm package: @raydeck/useimperativequery
Description: Imperative query hook for apollo-hooks
Author: Ray Deck
Latest version: 1.0.2

# useimperativequery

Hook for triggering a query imperatively (like we do with useMutation) in apollo with hooks

## Usage: useImperativeQuery(query: DocumentNode): Tuple<TData>

Use just like you do useMutation. ANd it will run the query every time, unlike `useLazyQuery`.

## Example

```jsx
import useImperativeQuery from "@raydeck/useimperativequery";
//...
const ComponentOfMine = (props) => {
  const [queryRunner] = useImperativeQuery(query);
  const onPress = useCallback(
    async (thing) => {
      const results = await queryRunner({ variables: { argument: thing } });
      console.log(results); //Now do something with the newly-fetched relevant data!
    },
    [queryRunner]
  );
};
```
npm package: @raydeck/walk-dependencies
Description: Dependency walker
Author: Ray Deck
Latest version: 1.6.2

# walk-dependencies

Function for recursively walking dependencies of a project

# Usage

```
wd = require("@raydeck/walk-dependencies");
wd(process.cwd(), false, (path, projectObj) => {
    console.log("My path is " + path)
    console.log("Project file contains:")
    console.log(JSON.stringify(projectObj, null, 2))
});
```
npm package: @raydeck/weweb-component
Description: With NPM:
Author: Weweb
Latest version: 1.0.13

# @weweb/create-component

## Scaffolding Your First [weweb.io](https://www.weweb.io/) custom elements

With NPM:

```bash
$ npm init @weweb/component
```

With Yarn:

```bash
$ yarn create @weweb/component
```

Then follow the prompts!

You can also directly specify the project name and the type of source code you want to develop via additional command line options. For example, to scaffold a custom element project, run:

```bash
npm init @weweb/component my-element --type element
```

Currently supported type are:

- `element`
- `section`
npm package: @raydeck/weweb-create-component
Description: With NPM:
Author: Weweb
Latest version: 1.0.13

# @weweb/create-component

## Scaffolding Your First [weweb.io](https://www.weweb.io/) custom elements

With NPM:

```bash
$ npm init @weweb/component
```

With Yarn:

```bash
$ yarn create @weweb/component
```

Then follow the prompts!

You can also directly specify the project name and the type of source code you want to develop via additional command line options. For example, to scaffold a custom element project, run:

```bash
npm init @weweb/component my-element --type element
```

Currently supported type are:

- `element`
- `section`