
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
gozer is a phantomJS wrapper. It can do normal phantomJS stuff, using promises:
var Gozer = require('gozer');
// Load an instance pointed at http://localhost:3000
var gozer = new Gozer({port: 3000});
// Get a page
var page = gozer.visit('/');
// Do some stuff with the page
page
.run(function() {
return document.title;
})
.then(function(title) {
console.log('The page title is', title);
});
but that's not why we built it. We built gozer to test our CSS, so it really shines when it's used in a test framework. Here's an example using mocha and chai-as-promised:
var Gozer = require('gozer');
describe('google.com', function() {
var gozer, page;
before(function() {
gozer = new Gozer({host: 'google.com'});
});
describe('the homepage', function() {
beforeEach(function() {
page = gozer.visit('/');
});
it('uses the arial font', function() {
var fontPromise = page.getStyle('body', 'font-family');
return expect(fontPromise).to.eventually.have.string('arial');
});
});
});
For more examples, check out gozer's own tests.
Gozer is meant to be used as a node module, so it's as simple as
npm install gozer
FAQs
A phantomJS wrapper for testing your CSS
We found that gozer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.