Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cheap-dream
Advanced tools
generate images, text or audio with a Markov chain
$ npm install cheap-dream
Object
Parses a string to a model that can be used to generate a new text.
string
Generates a new text from the model
Object
Parses an ndarray to a model that can be used to generate a new image.
ndarray
Generates a new image from the model
Object
Parses a string to a model that can be used to generate a new text.
Kind: global function
Returns: Object
- The model to be used with generateText
Param | Type | Description |
---|---|---|
text | string | The text to parse |
string
Generates a new text from the model
Kind: global function
Returns: string
- The new text
Param | Type | Default | Description |
---|---|---|---|
model | Object | The model generated with parseText | |
[options] | Object | Configuration options | |
[options.maxTries] | number | 100 | The maximum amount of attempts |
[options.startWith] | string | The string to start with, random by default | |
[options.endWith] | function | Function that will be called with the current word, return true to end |
Object
Parses an ndarray to a model that can be used to generate a new image.
Kind: global function
Returns: Object
- The model to be used with generateImage
Param | Type | Description |
---|---|---|
image | ndarray | The image to parse |
ndarray
Generates a new image from the model
Kind: global function
Returns: ndarray
- The new image
Param | Type | Description |
---|---|---|
model | Object | The model generated with parseImage |
options | Object | Configuration options |
options.width | number | The width of the output image |
options.height | number | The width of the output image |
[options.startWith] | Array | The color to start with, array with [red, green, blue] |
[options.endWith] | function | Function that will be called with the current color, return true to end |
FAQs
generate images, text or audio with a Markov chain
The npm package cheap-dream receives a total of 0 weekly downloads. As such, cheap-dream popularity was classified as not popular.
We found that cheap-dream 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.