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

freeze-view

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freeze-view

gets all the computed styles in a given moment in time and allows to reset them

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

FreezeView

holds all the style informations in a given point in time (and allows to reset them)

Installation

	npm install freeze-view

Usage

	var freeze = require("freeze-view");

Initializing the object looks like this:

	var view = new freeze();
	
	// now the **view** object holds all the style information 

If you want to reset the view to its original state, you just evoke

	view.set();

If you want to read in a modified view (ater having added a dom element for example), you evoke:

	view.get();

Since freeze is an object, you can have multiple instances representing the state of the view in a given moment in time

Non npm usage

If you want to use freeze-view in a non-ppm environment, you can embed the library in your html-file as well:

 	<script src="FreezeView.js"></script>

Keywords

css

FAQs

Package last updated on 30 Oct 2015

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