Installations
npm install chai-have-xpath
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
6.0.0
NPM Version
3.8.6
Score
68.4
Supply Chain
72.8
Quality
75.7
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
relekang
Download Statistics
Total Downloads
15,523
Last Day
1
Last Week
17
Last Month
62
Last Year
377
GitHub Statistics
4 Stars
85 Commits
2 Forks
4 Watching
2 Branches
6 Contributors
Bundle Size
2.08 kB
Minified
899.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.5.0
Package Id
chai-have-xpath@1.5.0
Size
3.57 kB
NPM Version
3.8.6
Node Version
6.0.0
Total Downloads
Cumulative downloads
Total Downloads
15,523
Last day
0%
1
Compared to previous day
Last week
88.9%
17
Compared to previous week
Last month
342.9%
62
Compared to previous month
Last year
-51.2%
377
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
chai-have-xpath
expect(element).to.have.xpath('//blink')
Installation
1> npm install --save-dev chai-have-xpath
Development
1> npm install 2> npm run watch
Usage
1var chai = require('chai'); 2var React = require('react'); 3var TestUtils = require('react-addons-test-utils'); 4var chaiHaveXpath = require('chai-have-xpath'); 5var expect = chai.expect; 6chai.use(chaiHaveXpath); 7 8var component = TestUtils.renderIntoDocument(<h1>hi there o/</h1>); 9expect(component).to.have.xpath('//h1[contains(., "hi there o/")]');
MIT © Rolf Erik Lekang
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 4/27 approved changesets -- score normalized to 1
Reason
project is archived
Details
- Warn: Repository is archived.
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 7 are checked with a SAST tool
Score
3.6
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More