
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
atom-themes
Advanced tools
Obtain info on the available themes for the Atom editor.
Download: npm i --save atom-themes
const themes = require('atom-themes');
Browser version? - Nope. We can't scrape cross domain
themes.get(input, options);
input
: Number, string or array. Check below for explanations.
options
: Optional configuration object. Available options depend on the type of input.
themes.get(3, opts).then((names) => console.log(names));
With options:
sort
: One of 'downloads'
, 'stars'
, 'created_at'
, or 'updated_at'
. Default is 'downloads'
direction
: One of 'desc'
or 'asc'
. Default is 'desc'
.In the example above, we obtain an array of theme names from the third page of atom.io/themes.
How many pages are there? We don't know, you can keep calling this until you receive an empty array. Then you'll know there are no more pages.
themes.get('monokai').then((theme) => console.log(theme));
Without options:
// themes.get('monokai')
{
"name": "monokai",
"author": {
"name": "kevinsawicki",
"image": "https://github.com/kevinsawicki.png",
"url": "https://atom.io/users/kevinsawicki"
},
"repo": "https://github.com/kevinsawicki/monokai",
"downloads": 330348,
"stars": 658,
"images": [
{
"url": "https://f.cloud.github.com/assets/671378/2265671/d02ebee8-9e85-11e3-9b8c-12b2cb7015e3.png"
}
]
}
With options:
package: true
- Include package.json as the package
prop.
readme
property and any property beginning with _
are removed.readme: true
- Include the repository's readme.
images: true
- Include image metadata such as size and colors.
// themes.get('monokai', {package: true, readme: true, images: true})
{
"name": "monokai",
"author": {
"name": "kevinsawicki",
"image": "https://github.com/kevinsawicki.png",
"url": "https://atom.io/users/kevinsawicki"
},
"repo": "https://github.com/kevinsawicki/monokai",
"downloads": 330350,
"stars": 658,
"package": {
"name": "monokai",
"theme": "syntax",
"version": "0.18.0",
"private": true,
"description": "A monokai theme",
"repository": "https://github.com/kevinsawicki/monokai",
"license": "MIT",
"engines": {
"atom": ">0.39.0"
}
},
"images": [
{
"url": "https://f.cloud.github.com/assets/671378/2265671/d02ebee8-9e85-11e3-9b8c-12b2cb7015e3.png",
"dimensions": {
"width": 1414,
"height": 1002
},
"background": {
"isDark": true,
"color": {
"r": 37,
"g": 45,
"b": 37
}
},
"palette": [
{
"r": 37,
"g": 45,
"b": 37
},
{
"r": 219,
"g": 197,
"b": 177
},
{
"r": 100,
"g": 206,
"b": 209
},
{
"r": 114,
"g": 120,
"b": 106
},
{
"r": 105,
"g": 117,
"b": 165
},
{
"r": 103,
"g": 67,
"b": 65
},
{
"r": 72,
"g": 75,
"b": 98
}
]
}
],
"readme": "# Monokai theme\n\nA monokai syntax theme for Atom.\n\nOriginally converted from the [TextMate](http://www.monokai.nl/blog/wp-content/asdev/Monokai.tmTheme)\ntheme using the [TextMate bundle converter](http://atom.io/docs/latest/converting-a-text-mate-theme).\n\n\n"
}
© 2016 Andrea Stella, ISC license.
FAQs
API and scraper to traverse the Atom themes database
The npm package atom-themes receives a total of 5 weekly downloads. As such, atom-themes popularity was classified as not popular.
We found that atom-themes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.