# js-yaml-js-types

> js-yaml extra types

Latest version **1.0.1** (published 2022-10-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install js-yaml-js-types
pnpm add js-yaml-js-types
yarn add js-yaml-js-types
bun add js-yaml-js-types
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-10-21 |
| First published | 2021-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Maintainers | vitaly |
| Keywords | yaml, parser |

## Links

- npm: https://www.npmjs.com/package/js-yaml-js-types
- Repository: https://github.com/nodeca/js-yaml-js-types
- Homepage: https://github.com/nodeca/js-yaml-js-types#readme
- Issues: https://github.com/nodeca/js-yaml-js-types/issues
- npm.io page: https://npm.io/package/js-yaml-js-types

## Dependencies (1)

- [esprima](https://npm.io/package/esprima.md) ^4.0.1

## Alternatives

- [monaco-yaml](https://npm.io/package/monaco-yaml.md) — 420.1K weekly downloads
- [@crewx/workflow](https://npm.io/package/@crewx/workflow.md) — 3.1K weekly downloads
- [yaml-cat](https://npm.io/package/yaml-cat.md) — 38 weekly downloads
- [nunjucks-in-yaml](https://npm.io/package/nunjucks-in-yaml.md) — 9 weekly downloads
- [shopify-symlinks](https://npm.io/package/shopify-symlinks.md) — 3 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-10-21
- 1.0.0 — 2021-01-04

## README

js-yaml-js-types
================

[![CI](https://github.com/nodeca/js-yaml-js-types/workflows/CI/badge.svg?branch=master)](https://github.com/nodeca/js-yaml-js-types/actions)
[![NPM version](https://img.shields.io/npm/v/js-yaml-js-types.svg)](https://www.npmjs.org/package/js-yaml-js-types)

> js-yaml extra types:
>
> - !!js/regexp /pattern/gim
> - !!js/undefined ''
> - !!js/function 'function () {...}'


Installation
------------

```sh
npm install js-yaml-js-types
```


Usage
-----

```js
const yaml = require('js-yaml');
const unsafe = require('js-yaml-js-types').all;

const schema = yaml.DEFAULT_SCHEMA.extend(unsafe);

const src = `
- !!js/regexp /pattern/gim
- !!js/undefined ''
- !!js/function 'function () { return true }'
`

yaml.load(src, { schema });
```

---
_Source: https://npm.io/package/js-yaml-js-types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
