GithubHelp home page GithubHelp logo

wilkerhop / mussum-ipsum Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diegofelipece/mussum-ipsum

0.0 2.0 0.0 3.7 MB

JS Lorem Ipsum generator

Home Page: http://mussumipsum.com

License: MIT License

JavaScript 100.00%

mussum-ipsum's Introduction

mIpsum v2.2.2

This is a Javascript Lorem Ipsum generator, created for mussumipsum.com, a brasilian dummy text generator. You can use it to develop anything that concern Mussum Ipsum (like a plugin for Sublime or Atom or whatever), or to create your own customized Lorem Ipsum.


Add it to your project using Bower or just download the code.

bower install mipsum --save

Just add mipsum.min.js to your project and add a call via JS.

<script src="path/to/mipsum.min.js"></script>

mIpsum was created using plane Javascript (ES2015 and beyond), to allow you to decide if you want to include it in any context, even jQuery for example:

$(function(){
  var mussumIpsum = mIpsum({pNum: 10}); //How many paragraphs do you want
  $('body').append('<div id="mussum-ipsum">'+mussumIpsum+'</div>');
  // This will add to the body of the documment a div with 10 paragraphs.
});

There are another customized options to you. More examples at demo/index.html

Options (with defaults to exemplify):

mIpsum({
  pNum: 1, //number of paragraphs requested
  quotes: mussumQuotes, //array of quotes to generate paragraphs
  mainQuote: mussumMainQuote, //main quote to start your "Lorem Ipsum"
  genLimit: 1000, //limit of paragraphs that can be requested
  resultType: 'html', //format of the response: html or text
  tagBefore: '<p>', //anything you want to put before each paragraph
  tagAfter: '</p>', //anything you want to put after each paragraph
  pQuotes: 4 //number of quotes used to build a paragraph
);

Created by Diego Esteves under The MIT License (MIT)

mussum-ipsum's People

Contributors

diegofelipece avatar wilkerhop avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.