freestyle 0.0.4 → 0.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,41 +1,35 @@
1
1
  {
2
- "name" : "freestyle",
3
- "description" : "Really terrible freestyle markov rapping",
4
- "version" : "0.0.4",
5
- "repository" : {
6
- "type" : "git",
7
- "url" : "git://github.com/substack/node-freestyle.git"
2
+ "name": "freestyle",
3
+ "version": "0.1.45",
4
+ "type": "module",
5
+ "exports": {
6
+ "require": {
7
+ "types": "./index.d.cts",
8
+ "default": "./index.cjs"
8
9
  },
9
- "keywords" : [
10
- "rap",
11
- "battle",
12
- "freestyle",
13
- "rhyme",
14
- "rhyming",
15
- "mic",
16
- "beats",
17
- "poet",
18
- "poem",
19
- "couplet"
20
- ],
21
- "main" : "./index.js",
22
- "directories" : {
23
- "lib" : ".",
24
- "example" : "./example"
25
- },
26
- "engines" : {
27
- "node" : ">=0.4.0"
28
- },
29
- "dependencies" : {
30
- "rhyme" : ">=0.0.3",
31
- "markov" : ">=0.0.4",
32
- "deck" : ">=0.0.3",
33
- "seq" : ">=0.2.4"
34
- },
35
- "license" : "MIT/X11",
36
- "author" : {
37
- "name" : "James Halliday",
38
- "email" : "mail@substack.net",
39
- "url" : "http://substack.net"
10
+ "import": {
11
+ "types": "./index.d.mts",
12
+ "default": "./index.mjs"
40
13
  }
14
+ },
15
+ "main": "./index.cjs",
16
+ "module": "./index.mjs",
17
+ "types": "./index.d.cts",
18
+ "keywords": [
19
+ "freestyle",
20
+ "sandboxes",
21
+ "ai-agents",
22
+ "agents",
23
+ "ai",
24
+ "code-interpreter"
25
+ ],
26
+ "optionalDependencies": {
27
+ "glob": "^13.0.0",
28
+ "yargs": "^18.0.0",
29
+ "dotenv": "^17.3.1"
30
+ },
31
+ "bin": {
32
+ "freestyle": "./cli.mjs",
33
+ "freestyle-sandboxes": "./cli.mjs"
34
+ }
41
35
  }
package/README.markdown DELETED
@@ -1,57 +0,0 @@
1
- freestyle
2
- =========
3
-
4
- Really terrible freestyle rhyming markov rap generation
5
-
6
- examples
7
- ========
8
-
9
- rap.js
10
- ------
11
-
12
- var freestyle = require('freestyle');
13
- var fs = require('fs');
14
-
15
- var s = fs.createReadStream(__dirname + '/qwantz.txt');
16
-
17
- freestyle(s, function (r) {
18
- var A = r.couplet();
19
- var B = r.couplet();
20
-
21
- console.log([
22
- A[0], B[0], A[1], B[1], ''
23
- ].join('\n'));
24
- });
25
-
26
- output:
27
-
28
- $ node examples/rap.js
29
- house up as a a rare rare pleasure kernes
30
- require extraordinary Extraordinary claims claims require require extraordinary bull
31
- out there is a part of it turns
32
- REMEMBER it turns out of the future full
33
-
34
- methods
35
- =======
36
-
37
- freestyle(stream, order=1, cb)
38
- ------------------------------
39
-
40
- Seed a markov system of `order` with `stream` and call `cb` with a freestyle
41
- handle when it's ready.
42
-
43
- freestyle handle
44
- ================
45
-
46
- r.couplet(syllables)
47
- --------------------
48
-
49
- Generate a couplet with approximately `syllables`.
50
- If `syllables` is falsy then lines can be any length.
51
-
52
- installation
53
- ============
54
-
55
- With [npm](http://npmjs.org):
56
-
57
- npm install freestyle