
Security News
Research
Destructive npm Packages Disguised as Utilities Enable Remote System Wipe
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
spongemock ########## .. line-block:: Me: Mock some text like spongebob would. You: mOCk SoMe TexT lIKe SpONGebOb wOuLd.
.. image:: http://pixel.nymag.com/imgs/daily/vulture/2017/05/16/16-spongebob-explainer.w710.h473.2x.jpg :alt: spongemock
pip install spongemock
or (for python3 specifically)
pip3 install spongemock
spongemock [-h] [-c] [-b BIAS] [-s SEED | -S STRSEED] text [text ...]
text
- the text to mock. ThE tExT tO mOCk.
-h
, --help
- show this help message and exit
-c
, --copy
- copy the mocked text to the clipboard.
-b BIAS
, --bias BIAS
- this bias is used to successively increase the chance of swapping from the previously-mocked case. A value of 0
will ensure the chance is always 50/50, and a value of 1
will ensure that after the first random choice the capitalization perfectly oscilates. Default is 0.5
.
-s SEED
, --seed SEED
- seed for random number generator. Can be any number or string (numbers are parsed).
-S STRSEED
, --strseed STRSEED
- seed for random number generator. Does not attempt to parse the string to a number.
from spongemock import spongemock
for use as spongemock.mock()
, or
from spongemock.spongemock import mock
Pass the text
, and optional diversity_bias
or random_seed
keyword arguments, to the mock()
function.
A big thanks to dgw <https://github.com/dgw>
_ for their contributions.
FAQs
Mock some text like spongebob would. mOCk SoMe TexT lIKe SpONGebOb wOuLd.
We found that spongemock demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.
Research
Security News
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.