Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

libmarkov

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libmarkov - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

6

package.json
{
"name": "libmarkov",
"version": "1.1.2",
"version": "1.1.3",
"description": "Libmarkov in JS",

@@ -9,3 +9,5 @@ "keywords": [

"markov chain sentence",
"sentence generator"
"markov chain sentence generator",
"sentence generator",
"lorem ipsum generator"
],

@@ -12,0 +14,0 @@ "main": "markov.js",

@@ -24,8 +24,8 @@ # Libmarkov - Javascript

```js
const Markov = require('libmarkov');
import Markov from 'libmarkov'
let text = 'This is my sample text.';
let text = document.getElementById('myinput').value;
let generator = new Markov(text);
alert(generator.generate(10));
document.getElementById('myresults').textContent = generator.generate(10)
```

@@ -50,5 +50,1 @@

```
### Todo
runtime is slow, something like `0(log(n))`, need to get the runtime down to be able to generate millions of lines with ease.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc