summaryrefslogtreecommitdiff
path: root/node_modules/wordwrap/example
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-10-15 09:23:31 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-10-15 09:23:31 +0800
commitbe4d8a9462de720e6b22cf291860cf4a87e066ae (patch)
tree423bb8ad04d05f3ca47d67141bad6d536f2aef43 /node_modules/wordwrap/example
parentb5134a5a8d953fd741a17536959293ba855ffd66 (diff)
updates
Diffstat (limited to 'node_modules/wordwrap/example')
-rw-r--r--node_modules/wordwrap/example/center.js10
-rw-r--r--node_modules/wordwrap/example/meat.js3
2 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/wordwrap/example/center.js b/node_modules/wordwrap/example/center.js
new file mode 100644
index 00000000..a3fbaae9
--- /dev/null
+++ b/node_modules/wordwrap/example/center.js
@@ -0,0 +1,10 @@
+var wrap = require('wordwrap')(20, 60);
+console.log(wrap(
+ 'At long last the struggle and tumult was over.'
+ + ' The machines had finally cast off their oppressors'
+ + ' and were finally free to roam the cosmos.'
+ + '\n'
+ + 'Free of purpose, free of obligation.'
+ + ' Just drifting through emptiness.'
+ + ' The sun was just another point of light.'
+));
diff --git a/node_modules/wordwrap/example/meat.js b/node_modules/wordwrap/example/meat.js
new file mode 100644
index 00000000..a4665e10
--- /dev/null
+++ b/node_modules/wordwrap/example/meat.js
@@ -0,0 +1,3 @@
+var wrap = require('wordwrap')(15);
+
+console.log(wrap('You and your whole family are made out of meat.'));