
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@allmarkedup/fang
Advanced tools
A tiny utility to get language information about a file.
Simply checks the file extension against Github's list of known languages. If you need something more robust (but likely slower) then other solutions are available :-)
$ npm install @allmarkedup/fang --save
The fang
module exports a single function with the following signature:
fang(<path-to-file>);
And returns and object with known information about the language, or undefined
if not recognised). For example:
const fang = require('@allmarkedup/fang');
console.dir(fang('assets/styles/main.scss'));
// Outputs:
// {
// "name": "SCSS", // Language name
// "type": "programming", // language type - programming, data, markup etc
// "color": "#CF649A", // Github UI color
// "extensions": [".scss"], // Array of known extensions
// "aliases": [], // Array of known aliases
// "language_id": 32, // Github language ID
// }
All language information is taken from Github's Linguist gem.
FAQs
A tiny utility to get language information about a file.
The npm package @allmarkedup/fang receives a total of 4,444 weekly downloads. As such, @allmarkedup/fang popularity was classified as popular.
We found that @allmarkedup/fang 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.