New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

jsFeed

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsFeed

It will test your layout to its maximum by testing its tolerance by dynamic content. This way you can see if your layout breaks.

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

jsFeeder - test your design's tolerance for dynamic content

What can you do with jsFeeder?

It will test your layout to its maximum by testing its tolerance by dynamic content. This way you can see if your layout breaks. If it breaks, fix it! For example: check if your navigation doesn't break with menu items with more than 2 words. Or you can use it to insert test content if you don't have your final copy yet.

How to use jsFeeder

jsFeed is available via npm install jsFeed

Include the script right above the closing body tag.

<script src="path/jsfeed.js"></script>

Simple add data-feed attribute to your element to feed your elements with random content. Refresh your page and new content will be inserted into your elements.

Words

<a href="#" data-feed="w=2">Nav item 1</a>

The content "Nav item 1" will be replaced with 2 random words

Sentences

<div data-feed="s=5">
    Lorem ipsum dolor sit amet, consectetur adipisicing elit.
</div>

The content between the div will be replaced with 5 sentences.

Paragraphs

Sometimes you want to insert paragraphs, jsFeed can do that for you by adding the p value

<div data-feed="p=2">
    
</div>

2 random paragraphs are added inside the div

Options

There is only 1 option at the moment. You can highlight the feeded elements on your by adding the option highlight and highlightColour. Hightlight is default on false.

$(function(){
    site.feedEm({
        highlight: true,
        highlightColour: '#eeeeff'
    })
});

F5 the shit out of it!

Keep pressing ctrl + f5 or cmd + f5 to test your layout.

To do

  • clean up js
  • bower install

Keywords

layout

FAQs

Package last updated on 14 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts