New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

keepfast-contrib-phantomas

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keepfast-contrib-phantomas - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

demo/test.js

26

index.js
#!/usr/bin/env node
var phantomas = require('phantomas');
var Promise = require('bluebird');
var phantomas = Promise.promisifyAll(require('phantomas'));
exports.extract = function(url) {
phantomas(
url,
{'analyze-css': false},
function(err, json, results) {
console.log(['phantomas results', err, json, results]);
exports.output = function(url) {
return new Promise(
function (resolve, reject) {
resolve()
})
.then(function() {
return phantomas(
url,
{timeout: 30}
).then(
function() {
return arguments[0].json.metrics;
},
function() {
return arguments;
}
);
});
};
{
"name": "keepfast-contrib-phantomas",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -21,3 +21,7 @@ "main": "index.js",

},
"homepage": "https://github.com/keepfast/keepfast-contrib-phantomas#readme"
"homepage": "https://github.com/keepfast/keepfast-contrib-phantomas#readme",
"dependencies": {
"bluebird": "^3.2.1",
"phantomas": "^1.14.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc