# serialize-sanity-path

> This utility can be used to serialize a sanity "Path" as a object accessor string. The code was pulled from `@sanity/import/src/serializePath.js` and converted into TypeScript.

Latest version **1.0.1** (published 2021-12-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install serialize-sanity-path
pnpm add serialize-sanity-path
yarn add serialize-sanity-path
bun add serialize-sanity-path
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-12-14 |
| First published | 2021-12-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | liammartens |

## Links

- npm: https://www.npmjs.com/package/serialize-sanity-path
- Repository: https://github.com/LiamMartens/serialize-sanity-path
- Homepage: https://github.com/LiamMartens/serialize-sanity-path#readme
- Issues: https://github.com/LiamMartens/serialize-sanity-path/issues
- npm.io page: https://npm.io/package/serialize-sanity-path

## Recent versions

- 1.0.1 (latest) — 2021-12-14
- 1.0.0 — 2021-12-14

## README

# serialize-sanity-path

This utility can be used to serialize a sanity "Path" as a object accessor string.
The code was pulled from `@sanity/import/src/serializePath.js` and converted into TypeScript.

The utility can be useful for Sanity custom inplut plugin developers.

## Example
```js
import { serializePath } from 'serialize-sanity-path';
const serialized = serializePath(path);
```

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