https://github.com/dtex/schiffer-ipsum
Funky dope technobabble
https://github.com/dtex/schiffer-ipsum
Last synced: over 1 year ago
JSON representation
Funky dope technobabble
- Host: GitHub
- URL: https://github.com/dtex/schiffer-ipsum
- Owner: dtex
- License: mit
- Created: 2014-05-08T16:25:46.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2020-02-23T04:24:46.000Z (over 6 years ago)
- Last Synced: 2025-03-17T09:11:24.594Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
schiffer-ipsum
===============
Lorum ipsum generator. Pass in a Medium.com author name and a callback and get an array of 5 paragraphs of varying length assembled from random sentences by that author.
###Installation###
````
npm install schiffer-ipsum
````
###Sample usage###
````
var http = require("http")
, schiffer = require("schiffer-ipsum")
;
var server = http.createServer(function(req, res) {
schiffer('jennschiffer', function(technoBabble) {
res.writeHead(200, {
'Content-Type': 'application/javascript',
'vary': 'Accept-Encoding'
});
res.end('babble('+JSON.stringify(technoBabble)+')');
});
});
server.listen(3000);
````