open-index/open-npm huggingface dataset:
npm package: @nacelle/interphase-node
Description: Utility for interacting with Shopify's Storefront Metafield Visibilities
Latest version: 1.0.5

# Interphase Node

Interphase is Node abstraction of the Shopify Admin App (Interphase). This utility can be used in one of scripts or other Javascript/Typescript projects.

## Table of Contents

1. Built With
1. Installation
1. Directory Structure
1. Serverless and Plugins
1. Test Suite
1. Deployment

## Built With

Hail Frequency makes use of the following technology:

1. [Node.js](https://nodejs.org/en/)
2. [TypeScript](https://www.typescriptlang.org/)
7. [Mocha](https://mochajs.org/)

## Installation

### Pre-Requisites

1. TypeScript with TSC version Version 3.5.3 or greater
2. Node with Version 10.15.3 or greater

### Installation

1. `npm install @nacelle/interphase-node --save`

### Usage

#### Init
```js
import { Interphase } from '@nacelle/interphase-node'

const store = 'starship-furniture' // Shopify Store Name
const accessToken = 'xxxxxxxxxxxxxxxxxxxx'  // Shopify GraphQL Admin API

const interphase = new Interphase(store, accessToken)
```

#### Create
```js
const response = interphase.create({
  input: {
    namespace: 'test_namespace',
    key: 'test_key',
    ownerType: 'PRODUCT'
  }
})
```

#### Get
```js
const response = interphase.get()
```

#### Delete
```js
const response = interphase.delete({
  id: node.id
})
```

#### Recharge (creates all recharge metafieldVisibilities)
```js
const response = interphase.Recharge.createAll()
```

### Development

1. Clone repo
2. Run `npm install` via terminal inside the project directory
3. Run `npm run start` (will watch for changes in `./src`)


## Test Suite

This project uses [Mocha](https://mochajs.org/) and [Chai](https://www.chaijs.com/). To run tests run `npm run test` in your terminal.

This project expects a TDD workflow.

## Contributions

1. Original Author - Caleb Bodtorf
npm package: @nacelle/nacelle-attentive-nuxt-module
Description: Integrates Attentive into your Nacelle Nuxt project
Latest version: 0.0.5
Deprecated: This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html

# [DEPRECATED]

This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html
npm package: @nacelle/nacelle-gorgias-nuxt-module
Description: Integrates Gorgias into your Nacelle Nuxt project
Latest version: 0.0.5
Deprecated: This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html

# [DEPRECATED]

This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html
npm package: @nacelle/nacelle-justuno-nuxt-module
Description: Integrates Justuno into your Nacelle Nuxt project
Latest version: 0.0.9
Deprecated: This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html

# [DEPRECATED]

This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html
npm package: @nacelle/nacelle-nuxt-module
Description: Nacelle module for usage with Nuxt
Latest version: 5.6.4

# nacelle-nuxt-module

---

⚠️ @nacelle/nacelle-nuxt-module is deprecated ⚠️

Please refer to https://docs.getnacelle.com to learn about the recommended approaches to powering your Nuxt storefront with Nacelle.

---

<!-- [![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Circle CI][circle-ci-src]][circle-ci-href]
[![Codecov][codecov-src]][codecov-href]
[![Dependencies][david-dm-src]][david-dm-href]
[![Standard JS][standard-js-src]][standard-js-href] -->

[📖 **Release Notes**](./CHANGELOG.md)

## Setup

1. Add the `nacelle-nuxt-module` dependency to your project with the package manager of your choosing
2. Add `nacelle-nuxt-module` to the `modules` section of `nuxt.config.js`

View the rest of the configuration and setup in our docs: https://docs.getnacelle.com/nuxt/nuxt-config.html

## Development

1. Clone this repository
2. Install dependencies using `npm install`
3. Start development server using `npm run dev`

## License

[MIT License](./LICENSE)

Copyright (c) Nacelle

<!-- Badges -->

<!-- [npm-version-src]: https://img.shields.io/npm/dt/nacelle-nuxt-module.svg?style=flat-square
[npm-version-href]: https://npmjs.com/package/nacelle-nuxt-module
[circle-ci-src]: https://img.shields.io/circleci/project/github/ShopElf/nacelle-nuxt-module.svg?style=flat-square
[circle-ci-href]: https://circleci.com/gh/ShopElf/nacelle-nuxt-module
[codecov-src]: https://img.shields.io/codecov/c/github/ShopElf/nacelle-nuxt-module.svg?style=flat-square
[codecov-href]: https://codecov.io/gh/ShopElf/nacelle-nuxt-module
[david-dm-src]: https://david-dm.org/ShopElf/nacelle-nuxt-module/status.svg?style=flat-square
[david-dm-href]: https://david-dm.org/ShopElf/nacelle-nuxt-module
[standard-js-src]: https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square
[standard-js-href]: https://standardjs.com -->
npm package: @nacelle/nacelle-pepperjam-nuxt-module
Description: Integrates Pepperjam into your Nacelle Nuxt project
Latest version: 0.0.11
Deprecated: This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html

# [DEPRECATED]

This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html
npm package: @nacelle/nacelle-shopmessage-nuxt-module
Description: Integrates ShopMessage into your Nacelle Nuxt project
Latest version: 0.0.4
Deprecated: This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html

# [DEPRECATED]

This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html
npm package: @nacelle/nacelle-stamped-nuxt-module
Description: Integrates Stamped.io into your Nacelle Nuxt project
Latest version: 0.0.10
Deprecated: This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html

# [DEPRECATED]

This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html
npm package: @nacelle/nacelle-swell-nuxt-module
Description: Integrates Swell into your Nacelle Nuxt project
Latest version: 0.0.3
Deprecated: This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html

# [DEPRECATED]

This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html
# Nacelle Swell Nuxt Module

Adds Vue.js components for integrating [Swell](https://www.swellrewards.com/) loyalty and referrals in your [Nacelle](https://getnacelle.com/) Nuxt project.

## Requirements

* A Nacelle project set up locally. See https://docs.getnacelle.com for getting started.
* A Swell app installed and setup on your Shopify store.

## Setup

### Add Module to Nacelle

Once you hace Nacelle and Swell set up you can install this module in your project from `npm`:

```
npm install @nacelle/nacelle-swell-nuxt-module --save
```

After the package has installed, open `nuxt.config.js`. Under `modules` add `@nacelle/nacelle-swell-nuxt-module` to the array. It should look something like this:

```
modules: [
  '@nuxtjs/pwa',
  '@nuxtjs/dotenv',
  '@nacelle/nacelle-nuxt-module',
  '@nuxtjs/sitemap',
  '@nacelle/nacelle-swell-nuxt-module'
],
```

Then add your Swell GUID to your environment variables `.env` file.
[![Swell](swell_settings_guide.png)](./swell_settings_guid.png)
```
SWELL_GUID=xxxxxxxxxxxxx
```

### Add the components to your Nacelle Storefront

To make the Swell widget visible in your store, open up `layouts/default.vue` and paste `<swell-widget />` just before the closing `div` in the template.

### Shopify Setup

To complete the integration a liquid snippet needs to be added to your Shopify theme.

Open your Shopify theme code editor under "Actions > Edit Code". Under "Snippets" click "Add new snippet". Name the snippet `swell-nacelle-init.liquid`, paste the following code found [here](liquid/swell-nacelle-init.md).

Open `layout/theme.liquid` and and before the closing `body` tag paste `{% include 'swell-nacelle-init' %}`. Your Shopify account pages will now set the correct Swell data to be used in your Nacelle store.
npm package: @nacelle/nuxt-iterable-module
Description: Integrates Iterable into your Nacelle Nuxt project
Latest version: 1.0.2
Deprecated: This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html

# [DEPRECATED]

This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html
npm package: @nacelle/rich-text-plain-text-renderer
Description: Convert Rich Text field to plain text
Author: Caleb Bodtorf
Latest version: 1.0.5

![Node.js CI](https://github.com/getnacelle/rich-text/workflows/Node.js%20CI/badge.svg)

# rich-text-plain-text-renderer

Plain text renderer for the Rich Text document.

## Installation

Using [npm](http://npmjs.org/):

```sh
npm install rich-text-plain-text-renderer
```

Using [yarn](https://yarnpkg.com/):

```sh
yarn add rich-text-plain-text-renderer
```

## Usage

```javascript
import { render } from 'rich-text-plain-text-renderer';

const richText = {
  value: {
    schema: 'rast',
    document: {
      type: 'root',
      children: [
        {
          type: 'heading',
          level: 1,
          children: [
            {
              type: 'span',
              value: 'This\nis a\ntitle!',
            },
          ],
        },
      ],
    },
  },
};

render(richText); // -> "This is a title!"
```

You can also pass custom renderers for `entryLink`, `inlineEntry`, `block` as optional parameters like so:

```javascript
import { render } from 'rich-text-plain-text-renderer';

const graphqlResponse = {
  value: {
    schema: 'rast',
    document: {
      type: 'root',
      children: [
        {
          type: 'paragraph',
          children: [
            {
              type: 'span',
              value: 'A ',
            },
            {
              type: 'entryLink',
              entry: '344312',
              children: [
                {
                  type: 'span',
                  value: 'record hyperlink',
                },
              ],
            },
            {
              type: 'span',
              value: ' and an inline record: ',
            },
            {
              type: 'inlineEntry',
              entry: '344312',
            },
          ],
        },
        {
          type: 'block',
          entry: '812394',
        },
      ],
    },
  },
  blocks: [
    {
      id: '812394',
      image: { url: 'http://www.assets.com/1312/image.png' },
    },
  ],
  links: [{ id: '344312', title: 'Foo', slug: 'foo' }],
};

const options = {
  renderBlock({ record }) {
    return `[Image ${record.image.url}]`;
  },
  renderInlineRecord({ record, adapter: { renderNode } }) {
    return `[Inline ${record.slug}]${children}[/Inline]`;
  },
  renderLinkToRecord({ record, children, adapter: { renderNode } }) {
    return `[Link to ${record.slug}]${children}[/Link]`;
  },
};

render(document, options);
// -> A [Link to foo]record hyperlink[/Link] and an inline record: [Inline foo]Foo[/Inline]
//    [Image http://www.assets.com/1312/image.png]
```
npm package: @nacelle/segmentation-sdk
Description: ## How to use
Author: Caleb Bodtorf
Latest version: 0.0.2

# Nacelle Segmentation SDK

## How to use

```console
npm install @nacelle/segmentation-sdk
```

### Localizer Initialization

```javascript
import { Localizer } from '@nacelle/segmentation-sdk'

const localizer = new Localizer({
  defaultLocale: 'en-US',
  navigator: window.navigator,
  positionOptions: {
    enableHighAccuracy: true,
    maximumAge: 30000,
    timeout: 27000
  }
})
```

### API

#### getPosition
- Utilizes the browser's `navigator` API to request location services from user.

```javascript
const position = await localizer.getPosition()
/**
 * position =>
 *  { coords: { latitude: 32, longitude: -117, ... } }
 * /
```

#### getLocation
- Utilizes external service to get more location details.

```javascript
const location = await localizer.getLocation(32, -117)
/**
 * location =>
 *  { address: { country_code: "us", ... }, lat: "32", lon: "-117" }
 * /
```

#### getIp
- Pings Cloudflare to get some IP data.

```javascript
const { ip } = await localizer.getIp()
/**
 * ip =>
 *  "2600:8801:9300:90a:g043:c54a:fg1d:12rd"
 * /
```

### getLocale
- Utilizes the browser's `navigator` API to return browser locale preference

```javascript
const locale = localizer.getLocale()
/**
 * locale =>
 *  "en-US"
 * /
```

### getUserAgent
- Utilizes the browser's `navigator` API to return browser userAgent

```javascript
const userAgent = localizer.getUserAgent()
/**
 * userAgent =>
 *  "Mozilla/5.0 (darwin) AppleWebKit/537.36 (KHTML, like Gecko) jsdom/11.12.0"
 * /
```