Code Monkey home page Code Monkey logo

filler.js's Introduction

Filler.js npm (scoped)

Filler.js is a light weight and easy to use JavaScript plugin that makes adding Lorem Ipsum text to HTML quick and painless. No copy pasting or searching online. It's perfect for website templates, mockups, or anywhere you might need gibberish text.

Installation

Install via npm:

$ npm i @usertiff/filler.js --save

or yarn:

$yarn add @usertiff/filler.js

or you can download this repo and add filler.js or filler.min.js into your project folder.

Usage

To use filler.js add a script tag at the bottom of the body tag.

<body>
   /*content here...*/

   <script src="./filler.js"></script>
</body>

Or within appropiate JavaScript files

const filler = require('./filler');

The Magic

To add text to an element add the filler class. Finally add the data attribute data-lorem assigned with the desired word count to the element. If the element already has text then filler.js will append the lorem ipsum. That's it!

Example:

<p class="filler" data-lorem="50"><p>

License

Filler.js is licensed under the MIT license. (http://opensource.org/licenses/MIT)

filler.js's People

Contributors

devchamploo avatar

Watchers

James Cloos 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.