lazyplace
A Node module to set element sizes of HTML.
↓
Installation
Install with npm. (Make sure you have installed Node.)
npm install --save lazyplace
API
var lazyPlace = ;
lazyPlace(filename, options, callback)
options.attr
Type: String
(Required)
options.selector
Type: String
(Required)
options.baseDir
Type: String
options.responsive
Type: Boolean
It returns a Number
of heading level, when the argument is a heading tag name, such as "h3"
and "H4"
.
It returns null
when the argument is not a heading tag name.
It throws an error when the argument is not a String
.
var result = ;forvar i = 0; i <= 7; i++ result; result; //=> [null, 1, 2, 3, 4, 5, 6, null]
lazyPlace.htmlString(string, options, callback)
License
Copyright (c) 2014 Shinnosuke Watanabe
Licensed under the MIT LIcense.