Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.13 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.13 KB

chai-posix-path

Checks whether a string path matches a posix path

npm version npm downloads js-semistandard-style Module type: ESM Types in JS Follow @voxpelli@mastodon.social

Usage

Simple

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