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: 3 months 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-15T03:46:39.000Z (12 months ago)
- Last Synced: 2025-09-26T19:42:12.513Z (8 months ago)
- Topics: chai, chai-plugin
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
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
[](https://www.npmjs.com/package/chai-posix-path)
[](https://www.npmjs.com/package/chai-posix-path)
[](https://github.com/neostandard/neostandard)
[](https://github.com/voxpelli/badges-cjs-esm)
[](https://github.com/voxpelli/types-in-js)
[](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/)