
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
a simple wrapper around the google language detection API (V1)
http://code.google.com/apis/language/translate/v1/using_rest_langdetect.html
install
var whatlang = require('/path/to/whatlang.js');
usage
//whatlang(query, callback, parameterObject)
whatlang('Ich bin ein kleines maedchen und tanze auf der berliner mauer.');
/* prints on the console
{ responseData: {
language: 'de',
isReliable: true,
confidence: 0.66124046
},
responseDetails: null,
responseStatus: 200,
requestData: {
query: 'Ich bin ein kleines maedchen und tanze auf der berliner mauer.'
}
}
*/
//with a custom callback function
var langinfo = whatlang('Ich bin ein kleines maedchen.',
function(langinf){ console.log(langinf.responseData.language); });
// -> de
//with a parameterObject
//see http://code.google.com/apis/language/translate/v1/using_rest_langdetect.html#request_format for list of parameters
var langinfo = whatlang('Ich bin ein kleines maedchen.',
function(langinf){ console.log(langinf.responseData.language); },
{ userip:'74.125.224.72', key:'boguskey' });
//throws an "ResponseStatus 400 Error: invalid key"
additional methods (chaining supported)
whatlang.setDefaultKey('your key here').setDefaultUserIp('74.125.224.72').detect('this is a very english english sentence');
//set your google key
whatlang.setDefaultKey('your key here');
//set your default user ip
whatlang.setDefaultUserIp('74.125.224.72');
//whatlang.detect() === whatlog()
whatlang.detect('a string');
FAQs
simple language detection module
The npm package whatlang receives a total of 0 weekly downloads. As such, whatlang popularity was classified as not popular.
We found that whatlang demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.