open-index/open-npm huggingface dataset:
npm package: @prismicio/prismic-yeoman-generator
Description: custom yeoman generator for building projects with prismic
Author: prismic.io developers
Latest version: 4.2.3

<h1 align="center">Welcome to @prismicio/prismic-yeoman-generator 👋</h1>
<p>
  <img alt="Version" src="https://img.shields.io/badge/version-4.0.0-blue.svg?cacheSeconds=2592000" />
  <img src="https://img.shields.io/badge/node-%3E%3D15.0.0-blue.svg" />
  <a href="#" target="_blank">
    <img alt="License: Apache--2.0" src="https://img.shields.io/badge/License-Apache--2.0-yellow.svg" />
  </a>
</p>

> custom yeoman generator for building projects with prismic this provides methods that help write yeoman generators for prismic projects

## Install

```sh
yarn install @prismicio/prismic-yeoman-generator
```

## Usage 

```js

import Generator from '@prismicio/prismic-yeoman-generator'

export default class extends Generator {}

```

## Run tests

```sh
yarn test
```
npm package: @prismicio/service-token
Description: Validate Prismic Context
Author: Prismic
Latest version: 0.0.6

# service-token

Validate Prismic Context.

### Example

```javascript
import { decodeContext } from "@prismicio/service-token";

const token = "user-or-wroom-or-m2m-token-string";

async function main() {
	const res = await fetch(`https://auth.wroom.io/validate?token=${token}`);
	const body = await res.json();

	const decodedContext = decodeContext(body);

	if (decodedContext.isValid) {
		console.log(decodedContext.decoded);
	} else {
		console.error(decodedContext.error);
	}
}

main();
```