open-index/open-npm huggingface dataset:
npm package: @justeat/browserslist-config-fozzie
Description: Just Eat's Browserslist config used in UI packages
Latest version: 2.0.0

# browserslist-config-fozzie
[![npm version](https://badge.fury.io/js/%40justeat%2Fbrowserslist-config-fozzie.svg)](https://badge.fury.io/js/%40justeat%2Fbrowserslist-config-fozzie)
[![Build Status](https://travis-ci.org/justeat/browserslist-config-fozzie.svg?branch=master)](https://travis-ci.org/justeat/browserslist-config-fozzie)

This package provides Just Eat's base JS .eslintrc as an extensible shared config.

It extends the [eslint-config-airbnb-base](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base) ruleset with our own set of JS linting rules.

Many thanks to the work that the Airbnb team have put in on creating their template for extension rules – we have liberally borrowed from their structure and documentation in creating this ruleset.

## Usage

### browserslist-config-fozzie

The default export contains a browserlist array.  Full information on browsrlist shareable configs [can be found in their README](https://github.com/browserslist/browserslist#shareable-configs).


To use this config, add the following to your package.json once you have installed the `@justeat/browserslist-config-fozzie` package.

```json
"browserslist": [
  "extends @justeat/browserslist-config-fozzie"
]
```
npm package: @justeat/cloudinary
Description: Javascript library for working with Just Eat's Cloudinary service
Latest version: 0.6.0

# Cloudinary
Javascript library for working with Just Eat's Cloudinary service

## Installation

```
npm install @justeat/cloudinary
```

```
yarn add @justeat/cloudinary
```

## Usage

### Create an instance

```js
import Cloudinary from '@justeat/cloudinary';

const cloudinary = Cloudinary({
  tenant: 'uk',
  env: 'prod'
});
```

#### Tenant

- Set the instance's tenant
- Defaults to `uk` for undefined value

```js
const cloudinary = Cloudinary({ tenant: 'uk' });
```

#### Environment

- Set the instance's environment
- Using a non-configured environment throws an `INVALID_ENV` error

```js
const cloudinary = Cloudinary({ env: 'prod' });
```

| Value     | Description          |
| --------- | -------------------- |
| `prod`    | (default) Production |
| `staging` | Staging              |
| `test`    | Test                 |

### Methods

_Please check the source documentation for more detail on how to use the below methods_

**restaurant**: Returns the cloudinary path of a restaurant image

```js
const restaurantId = 2782084;
const opts = {
  cuisine: 'thai',
  quality: 'auto'
};
const url = cloudinary.restaurant(restaurantId, opts);
```

**dishes**: Returns the cloudinary path of a restaurant dish image

```js
const restaurantId = 2782084;
const dishImage = 'assorted-meal.jpg'
const opts = {
  quality: 'auto'
};
const url = cloudinary.dishes(restaurantId, dishImage, opts);
```

**url**: Returns cloudinary url of restaurant image

```js
const resourcePath = '/path/to/resource.jpg';
const params = {
  height: 100,
  width: 100
};
const url = cloudinary.url(resourcePath, params);
```

## Development and Testing

Build: `npm run build`

Lint: `npm run lint`

Release: `npm run release`

Single run test: `jest`

Continuous test: `jest --watchAll`