open-index/open-npm huggingface dataset:
npm package: @randy.tarampi/redux-offline-immutable-config
Description: Provide a configuration for redux-offline to use an immutable root state with redux-persist-immutable
Latest version: 1.0.1-1

<p>
  <a title='License' href="https://raw.githubusercontent.com/anyjunk/redux-offline-immutable-config/master/LICENSE" height="18">
    <img src='https://img.shields.io/badge/license-MIT-blue.svg' />
  </a>
  <a href="https://badge.fury.io/js/redux-offline-immutable-config">
    <img src="https://badge.fury.io/js/redux-offline-immutable-config.svg" alt="npm version" height="18">
  </a>
</p>

# redux-offline-immutable-config

Provide a configuration for [`redux-offline`](https://github.com/jevakallio/redux-offline) to use an immutable root state
with [`redux-persist-immutable`](https://github.com/rt2zz/redux-persist-immutable)

## Installation

```
npm install redux-offline-immutable-config
# or
yarn add redux-offline-immutable-config
```

## Use

Follow `redux-offline` base setup instruction at [`redux-offline`](https://github.com/jevakallio/redux-offline), then apply the following changes.

```javascript
import { applyMiddleware, createStore, compose } from 'redux';
import { offline } from 'redux-offline';
import defaultConfig from 'redux-offline/lib/defaults';

// replacing redux-offline defaults with immutable* counterparts
import { persist, persistAutoRehydrate, offlineStateLens } from 'redux-offline-immutable-config';

// ...

// example of redux-persist configuration
// see https://github.com/rt2zz/redux-persist#persiststorestore-config-callback
const persistOptions = {};
const persistCallback = () => {
  console.log('rehydration completed')
};

const offlineConfig = {
  ...defaultConfig,
  persist,
  persistAutoRehydrate,
  persistOptions,
  persistCallback,
  offlineStateLens
};

const preloadedState = fromJS({}); // this is the immutable root state
const store = createStore(
  reducer, // your main reducer
  preloadedState,
  compose(
    applyMiddleware(middleware), // your middleware
    offline(offlineConfig)
  )
);
```

## Customise persistAutoRehydrate

```javascript
import { persist, persistAutoRehydrate, offlineStateLens } from 'redux-offline-immutable-config';

const autoRehydrateOptions = __DEV__ === true
  ? {log: true}
  : {};

const offlineConfig = {
  ...defaultConfig,
  persist,
  persistAutoRehydrate: () => persistAutoRehydrate(autoRehydrateOptions),
  persistOptions,
  persistCallback,
  offlineStateLens
};

// ...

```

### License

MIT
npm package: @randy.tarampi/redux-persist-immutable
Description: top level immutablejs support for redux-persist
Author: Stephane Rufer
Latest version: 4.3.2-0

# Redux Persist Immutable
A wrapper around redux-persist that provides  [ImmutableJS](https://facebook.github.io/immutable-js/) support.

# Usage
For entire api see [redux-persist docs](https://github.com/rt2zz/redux-persist). This library is a drop in replacement.
```js
import { persistStore, autoRehydrate } from 'redux-persist-immutable'

persistStore(store)
```

# Immutable records
```js
persistStore(state, { records: [SomeRecord] })
```
npm package: @randy.tarampi/resume
Description: A JSON resume theme and resume generator for www.randytarampi.ca
Author: Randy Tarampi
Latest version: 7.0.0

```plaintext
$$$$$$\$$$$\   $$$$$$\       $$$$$$\   $$$$$$\   $$$$$$$\ $$\   $$\ $$$$$$\$$$$\   $$$$$$\
$$  _$$  _$$\ $$  __$$\     $$  __$$\ $$  __$$\ $$  _____|$$ |  $$ |$$  _$$  _$$\ $$  __$$\
$$ / $$ / $$ |$$$$$$$$ |    $$ |  \__|$$$$$$$$ |\$$$$$$\  $$ |  $$ |$$ / $$ / $$ |$$$$$$$$ |
$$ | $$ | $$ |$$   ____|    $$ |      $$   ____| \____$$\ $$ |  $$ |$$ | $$ | $$ |$$   ____|
$$ | $$ | $$ |\$$$$$$$\ $$\ $$ |      \$$$$$$$\ $$$$$$$  |\$$$$$$  |$$ | $$ | $$ |\$$$$$$$\
\__| \__| \__| \_______|\__|\__|       \_______|\_______/  \______/ \__| \__| \__| \_______|
```

[![npm versions](https://img.shields.io/npm/v/@randy.tarampi/resume.svg?style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/resume) [![npm downloads](https://img.shields.io/npm/dt/@randy.tarampi/resume.svg?style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/resume) [![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@randy.tarampi/resume.svg?style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/resume) [![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/@randy.tarampi/resume.svg?style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/resume) [![npm license](https://img.shields.io/npm/l/@randy.tarampi/resume.svg?registry_uri=https%3A%2F%2Fregistry.npmjs.com&style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/resume) [![Analytics](https://ga-beacon.appspot.com/UA-50921068-1/beacon/github/randytarampi/me/tree/master/packages/resume?flat&useReferrer)](https://github.com/igrigorik/ga-beacon)

[![Install @randy.tarampi/resume](https://nodeico.herokuapp.com/@randy.tarampi/resume.svg)](https://www.npmjs.com/package/@randy.tarampi/resume)

The backing markup and styles for [`jsonresume-theme-randytarampi`](../jsonresume-theme) and my resume in [`www`](../www) – [online](https://www.randytarampi.ca/resume) and [in print](https://github.com/randytarampi/me/blob/master/packages/resume/docs/resume.pdf).

**You probably want to head over to [job-application](../job-application) instead, since it offers some additional niceties.**

1. Place a JS/JSON/JSX file (say [`some-awesome-company.json`](./src/resumes/some-awesome-company.json)) that can be parsed into an instance of [`Resume`](./src/lib/resume) in `/src/resumes`
2. Generate your resumes by running `npm run resume`
3. View it with [`open ./dist/some-awesome-company.pdf`](./dist/some-awesome-company.pdf)

# Dependencies

See the [`me` dependencies](../../README.md#Dependencies).

# Installation

See the [`me` installation instructions](../../README.md#Installation).

# Usage

```
# From the `me` monorepo root
yarn lerna run start --scope=@randy.tarampi/resume
```

# Testing

```
# From the `me` monorepo root
yarn lerna run test --scope=@randy.tarampi/resume
```

# Generation

```
# From the `me` monorepo root
yarn lerna run build --scope=@randy.tarampi/resume
yarn lerna run resume --scope=@randy.tarampi/resume
```
npm package: @randy.tarampi/serverless
Description: Some opinionated serverless utilities for my own use
Author: Randy Tarampi
Latest version: 7.0.0

```
                                               _
                                              | |
 _ __ ___   ___   ___  ___ _ ____   _____ _ __| | ___  ___ ___
| '_ ` _ \ / _ \ / __|/ _ \ '__\ \ / / _ \ '__| |/ _ \/ __/ __|
| | | | | |  __/_\__ \  __/ |   \ V /  __/ |  | |  __/\__ \__ \
|_| |_| |_|\___(_)___/\___|_|    \_/ \___|_|  |_|\___||___/___/


```

[![npm versions](https://img.shields.io/npm/v/@randy.tarampi/serverless.svg?style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/serverless) [![npm downloads](https://img.shields.io/npm/dt/@randy.tarampi/serverless.svg?style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/serverless) [![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@randy.tarampi/serverless.svg?style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/serverless) [![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/@randy.tarampi/serverless.svg?style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/serverless) [![npm license](https://img.shields.io/npm/l/@randy.tarampi/serverless.svg?registry_uri=https%3A%2F%2Fregistry.npmjs.com&style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/serverless) [![Analytics](https://ga-beacon.appspot.com/UA-50921068-1/beacon/github/randytarampi/me/tree/master/packages/serverless?flat&useReferrer)](https://github.com/igrigorik/ga-beacon)

[![Install @randy.tarampi/serverless](https://nodeico.herokuapp.com/@randy.tarampi/serverless.svg)](https://www.npmjs.com/package/@randy.tarampi/serverless)

Some [`serverless`](https://www.npmjs.com/package/serverless) utilities for use in [service](../service) and [`slamscan`](https://github.com/randytarampi/slamscan).


# Dependencies

See the [`me` dependencies](../../README.md#Dependencies).

# Installation

See the [`me` installation instructions](../../README.md#Installation).

# Testing

```
# From the `me` monorepo root
yarn lerna run test --scope=@randy.tarampi/serverless
```
npm package: @randy.tarampi/views
Description: Some common Pug templates for www.randytarampi.ca
Author: Randy Tarampi
Latest version: 7.0.0

```
                      _
                     (_)
 _ __ ___   _____   ___  _____      _____
| '_ ` _ \ / _ \ \ / / |/ _ \ \ /\ / / __|
| | | | | |  __/\ V /| |  __/\ V  V /\__ \
|_| |_| |_|\___(_)_/ |_|\___| \_/\_/ |___/


```

[![npm versions](https://img.shields.io/npm/v/@randy.tarampi/views.svg?style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/views) [![npm downloads](https://img.shields.io/npm/dt/@randy.tarampi/views.svg?style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/views) [![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@randy.tarampi/views.svg?style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/views) [![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/@randy.tarampi/views.svg?style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/views) [![npm license](https://img.shields.io/npm/l/@randy.tarampi/views.svg?registry_uri=https%3A%2F%2Fregistry.npmjs.com&style=flat-square)](https://www.npmjs.com/package/@randy.tarampi/views) [![Analytics](https://ga-beacon.appspot.com/UA-50921068-1/beacon/github/randytarampi/me/tree/master/packages/views?flat&useReferrer)](https://github.com/igrigorik/ga-beacon)

[![Install @randy.tarampi/views](https://nodeico.herokuapp.com/@randy.tarampi/views.svg)](https://www.npmjs.com/package/@randy.tarampi/views)

Some common code to support the generation of HTML templates for [www](../www) and [other printables](../printables).

# Dependencies

See the [`me` dependencies](../../README.md#Dependencies).

# Installation

See the [`me` installation instructions](../../README.md#Installation).

# Testing

```
# From the `me` monorepo root
yarn lerna run test --scope=@randy.tarampi/views
```
npm package: @randy5235/pg-migrations
Description: Tool to run postgres migrations 
Author: Randy Wressell
Latest version: 0.2.6

# PG-Migrations

:triangular_flag_on_post:	Currently still being built, use may change slightly until version 1.0.0 is hit, then I will default to semantic versioning as expected. :triangular_flag_on_post:	


I built this package after realizing that I had written or reimplemented this code on several occasions. I decided for the purpose observability to not add a way to remove patches. If you need to revert, you should fail forward by adding a new patch to undo the previous changes. 

The purpose of this it to allow a history of the db schema and "state" to exist in version control.

## [Installation](#Installation)
```shell
$ npm install pg-migrations
```
or 
```shell
$ yarn add pg-migrations
```

## [Use](#Use)
```shell
$ pg-migrations path/to/migration.json
```
You will need to setup a migration-history table. I have included an example in the db folder
called `migration_history.sql`. 
```sql
CREATE TABLE IF NOT EXISTS patch_history (
  id SERIAL PRIMARY KEY,
  filename TEXT UNIQUE NOT NULL,
  created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW()
);
```

This gives us a patch_history table that is used to store all applied patches. It is recommendws to include this file in your patchPath folder as it is expected. 

The other sql files are expected to have a filename in ISOString() format
`2022-03-18T06:22:06.000Z.sql` and they will be processed in chronological order based upon this filename timestamp representation. 


### [Example `migration.json`](#example)
```json
{
  // Please remove comments as comments are not part of the 
  // official JSON specification.
  "host": "localhost", // 'localhost' is the default;
  "port": 5432, // 5432 is the default;
  "database": "my-db",
  "user": "postgres",
  "password": "example",

  // to auto-exit on idle, without having to shut-down the pool;
  // see https://github.com/vitaly-t/pg-promise#library-de-initialization
  "allowExitOnIdle": true,
  "patchPath": "./db/" // path to SQL patches relative to where this is called from (usually project root)
};
```

The other options contained within are the config that is used by pg-promise to connect to your postgres database. I have this exact object embedded as the defaultConfig if you do not pass one in. 

I plan to add tests shortly for this and would appreciate any feedback or recommendations.
npm package: @randybinondo/typescript-module
Description: Sample Typescript Module
Author: Randy D. Binondo
Latest version: 0.1.10

![randy-binondo-high-resolution-logo](/assets/randy-binondo-high-resolution-logo_ozbsw9bj6.png)

[![Node.js Package to NPM](https://github.com/randy-binondo-dev/typescript-module/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/randy-binondo-dev/typescript-module/actions/workflows/npm-publish.yml)

# typescript-module
Sample Typescript Module

## Installation

```bash
$ npm i --save @randybinondo/typescript-module 
```

## Usage

### Prerequisite

```bash
$ npm install -D typescript ts-node 
```

```javascript
import { sample } from "@randybinondo/typescript-module"

const name = 'zzz'
console.log(sample`aaa bbb ccc ${name}`);
```

### Output


Optional
```bash
$ git clone https://github.com/randy-binondo-dev/typescript-module-demo.git
```
Run
```bash
$ npm start
> @randybinondo/typescript-module-demo@1.0.0 start
> ts-node index.ts

string: aaa bbb ccc , first parameter: zzz
```

## License

Typescript Module is [MIT licensed](LICENSE).
npm package: @randychilau/gatsby-plugin-meta-redirect
Description: [![Travis][build-badge]][build] [![npm package][npm-badge]][npm]
Author: Danny Wilson
Latest version: 1.2.8

[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]

# gatsby-plugin-meta-redirect

Generates meta redirect html files for redirecting on any static file host.

## Install

```sh
npm install --save gatsby-plugin-meta-redirect
```

or

```sh
yarn add gatsby-plugin-meta-redirect
```

## How to use

```js
// In your gatsby-config.js
plugins: [
  `gatsby-plugin-meta-redirect` // make sure to put last in the array
];
```

### Redirects

You can create redirects using the [`createRedirect`](https://www.gatsbyjs.org/docs/bound-action-creators/#createRedirect) action.

An example:

```js
createRedirect({ fromPath: '/old-url', toPath: '/new-url', isPermanent: true });
createRedirect({ fromPath: '/url', toPath: '/zn-CH/url', Language: 'zn' });
```

That will generate the following html files:

### `/old-url/index.html`:

```html
<meta http-equiv="refresh" content="0; URL='/new-url/'" />
```

and

### `/url/index.html`:

```html
<meta http-equiv="refresh" content="0; URL='/zn-CH/url/'" />
```

[build-badge]: https://img.shields.io/travis/getchalk/gatsby-plugin-meta-redirect/master.png?style=flat-square
[build]: https://travis-ci.org/getchalk/gatsby-plugin-meta-redirect
[npm-badge]: https://img.shields.io/npm/v/gatsby-plugin-meta-redirect.png?style=flat-square
[npm]: https://www.npmjs.org/package/gatsby-plugin-meta-redirect
npm package: @randynpm/yrm
Description: NPM registry manager can help you easy and fast switch between different npm registries, now include: cnpm, taobao, nj(nodejitsu), rednpm, edunpm
Author: i5ting
Latest version: 1.0.5

yrm -- YARN registry manager
===

[![NPM version][npm-image]][npm-url]

support client: `npm`, `pnpm`, `yarn`
`yrm` can help you easy and fast switch between different npm registries,
now include: `npm`, `cnpm`, `taobao`, `nj(nodejitsu)`, `rednpm`, `yarn`.

## Install

```
$ npm install -g yrm
```

## Example
```
$ yrm ls

* npm -----  https://registry.npmjs.org/
  cnpm ----  http://r.cnpmjs.org/
  taobao --  https://registry.npmmirror.com/
  nj ------  https://registry.nodejitsu.com/
  rednpm --  http://registry.mirror.cqupt.edu.cn
  skimdb --  https://skimdb.npmjs.com/registry
  yarn ----  https://registry.yarnpkg.com

```

```
$ yrm use cnpm  //switch registry to cnpm

    Registry has been set to: http://r.cnpmjs.org/

```

## Usage

```
Usage: yrm [options] [command]

  Commands:

    ls                           List all the registries
    use <registry>               Change registry to registry
    add <registry> <url> [home]  Add one custom registry
    del <registry>               Delete one custom registry
    home <registry> [browser]    Open the homepage of registry with optional browser
    test [registry]              Show the response time for one or all registries
    help                         Print this help

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
```

## Registries

* [npm](https://www.npmjs.org)
* [cnpm](http://cnpmjs.org)
* [nodejitsu](https://www.nodejitsu.com)
* [taobao](http://npmmirror.com)
* [rednpm](http://npm.mirror.cqupt.edu.cn)
* [yarn](https://registry.yarnpkg.com)

## Notice

When you use an other registry, you can not use the `publish` command.

## TODO

* When publish proxy to npm official registry

## LICENSE
MIT


[npm-image]: https://img.shields.io/npm/v/yrm.svg?style=flat-square
[npm-url]: https://npmjs.org/package/yrm