chai-posix-path
檢查字串路徑是否符合 POSIX 路徑
使用方式
簡單範例
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
檢查字串路徑是否符合 POSIX 路徑
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