Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@tenon-io/tenon-node
Advanced tools
Install the module with: npm install @tenon-io/tenon-node
const tenonNode = require('tenon-node');
// Create an instance with your API key
const tenonApi = new tenonNode({
key: 'YOUR_API_KEY_HERE',
endPoint: 'http://tenon.io' // or your private tenon instance
});
tenonApi.analyze('http://www.example.com', function(err, result) {
if (err) {
console.error(err);
} else {
console.log('Tenon.checkUrl', result);
}
});
Each of the following methods takes an optional options object that can be More information about available options can be found in the Tenon API documentation.
analyze(string, [options,] callback)
Tests a given url, code snippet or full HTML page for accessibility issues.
checkUrl(url, [options,] callback)
Tests a given URL for accessibility issues.
checkSrc(src, [options,] callback)
Tests a complete HTML document for accessibility issues.
Note: if you want to test a fragment, block or snippet of code against Tenon, then use checkFragment()
or specify fragment: '1'
in your options.
checkFragment(src, [options,] callback)
Tests a fragment, block or snippet of code for accessibility issues.
See example/tenon-node_example.js
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Copyright (c) 2014 Justin Stockton
Licensed under the MIT license.
FAQs
Node.js wrapper for the Tenon.io API
The npm package @tenon-io/tenon-node receives a total of 5 weekly downloads. As such, @tenon-io/tenon-node popularity was classified as not popular.
We found that @tenon-io/tenon-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.