
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Node module to get CSS from a URL.
Returns a promise for an object with details about a document's CSS, used in http://cssstats.com.
npm i --save get-css
For the CLI
npm i -g get-css
var getCss = require('get-css')
var options = {
timeout: 5000
}
getCss('http://github.com', options)
.then(function(response) {
console.log(response)
})
.catch(function(error) {
console.error(error)
})
npm i -g get-css
getcss google.com > google.css
links
An array of objects base on rel=stylesheet
links found in the document.
Each object has the following:
link
- the value from the href
attribute for each link tagurl
- an absolute url representation of the linkcss
- the contents of the file in the linkimports
- an array of urls for @import
rulesstyles
An array of contents from style
tags found in the document.
css
A concatenated string of all css found in links and styles
pageTitle
The contents of the title
tag in the document.
timeout
An integer to reflect the timeout for the request. Default: 5000
ignoreCerts
A boolean to determine whether invalid certificates are ignored. Default: false
verbose
A boolean to determine whether errors should be console.log
ged. Default: false
MIT
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Get CSS from a URL
We found that get-css 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.