Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voxpelli/chai-posix-path
Checks whether a string path matches a posix path
https://github.com/voxpelli/chai-posix-path
chai chai-plugin
Last synced: 15 days ago
JSON representation
Checks whether a string path matches a posix path
- Host: GitHub
- URL: https://github.com/voxpelli/chai-posix-path
- Owner: voxpelli
- License: mit
- Created: 2023-07-14T16:22:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-14T02:54:11.000Z (4 months ago)
- Last Synced: 2024-12-14T16:19:09.103Z (about 1 month ago)
- Topics: chai, chai-plugin
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# chai-posix-path
Checks whether a string path matches a posix path
[![npm version](https://img.shields.io/npm/v/chai-posix-path.svg?style=flat)](https://www.npmjs.com/package/chai-posix-path)
[![npm downloads](https://img.shields.io/npm/dm/chai-posix-path.svg?style=flat)](https://www.npmjs.com/package/chai-posix-path)
[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-7fffff?style=flat&labelColor=ff80ff)](https://github.com/neostandard/neostandard)
[![Module type: ESM](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)
[![Types in JS](https://img.shields.io/badge/types_in_js-yes-brightgreen)](https://github.com/voxpelli/types-in-js)
[![Follow @[email protected]](https://img.shields.io/mastodon/follow/109247025527949675?domain=https%3A%2F%2Fmastodon.social&style=social)](https://mastodon.social/@voxpelli)## Usage
### Simple
```javascript
import chaiPosixPath from 'chai-posix-path';chai.use(chaiPosixPath);
'foo\\bar'.should.be.posixPath('foo/bar'); // Passes
'foo/bar'.should.be.posixPath('foo/bar'); // Passes
```## See also
* [Chai](https://www.chaijs.com/)