Skip to content

Checks whether a string path matches a posix path

License

Notifications You must be signed in to change notification settings

voxpelli/chai-posix-path

Repository files navigation

chai-posix-path

Checks whether a string path matches a posix path

npm version npm downloads neostandard javascript 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

About

Checks whether a string path matches a posix path

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published