Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
The ultimate JavaScript string library https://vocajs.com
Voca is a JavaScript library for manipulating strings.
See the complete documentation at https://vocajs.com
Voca can be used in various environments.
Install the library with npm into your local modules directory:
npm install voca
Then in your application import the entire library:
var v = require('voca');
v.trim(' Hello World! ');
// => 'Hello World'
v.sprintf('%s costs $%.2f', 'Coffee', 1.5);
// => 'Coffee costs $1.50'
Or individual functions:
var words = require('voca/words');
words('welcome to Earth');
// => ['welcome', 'to', 'Earth']
Load the UMD builds directly into browser's web page:
dist/voca.min.js
minified production-readydist/voca.js
uncompressed with comments<script src="voca.js" type="text/javascript"></script>
Then a global variable v
is exposed for the entire library:
<script type="text/javascript">
v.isBlank(' ');
// => true
</script>
For bug reports, documentation typos or feature requests feel free to create an issue.
Please make sure that the same problems wasn't reported already.
For general usage questions please ask on StackOverflow.
Contribution is welcome!
Visit the development section to find more details.
Licensed under MIT
FAQs
The ultimate JavaScript string library
The npm package voca receives a total of 73,170 weekly downloads. As such, voca popularity was classified as popular.
We found that voca 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.