# commonform-same-path

> check whether two Common Form paths are the same

Latest version **1.0.0** (published 2018-01-18) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install commonform-same-path
pnpm add commonform-same-path
yarn add commonform-same-path
bun add commonform-same-path
```

## 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.0 |
| Published | 2018-01-18 |
| First published | 2018-01-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kyle E. Mitchell |
| Maintainers | kemitchell |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2018-01-18

## README

check whether two Common Form paths are the same

```javascript
var assert = require('assert')
var samePath = require('commonform-same-path')

assert.strictEqual(
  samePath(['content', 0], ['content', 0]),
  true
)

assert.strictEqual(
  samePath(['content', 0], ['content', 1]),
  false
)

assert.throws(function () {
  samePath('not an array', ['content', 1])
})

assert.throws(function () {
  samePath(['content', 1], 'not an array')
})
```

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