Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dtex/schiffer-ipsum
Funky dope technobabble
https://github.com/dtex/schiffer-ipsum
Last synced: 3 months 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-02-23T04:24:46.000Z (almost 5 years ago)
- Last Synced: 2024-10-19T19:15:45.921Z (3 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 6
- Watchers: 2
- 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);
````