@jtorm/attrs-method

1.0.0 • Public • Published

jTorm Attributes Method

Manipulate multiple attributes with help of the attribute method.

Install

npm install @jtorm/attrs-method

Properties

Option Type Required Description
n string true Attribute names.
v string false Attribute values.
m string false Method a:append, p:prepend, r:remove, (empty):replace.

Example

div->attrs {
    n: 'class,id';
    v: 'row,row-1';
    m: 'a';
}

Readme

Keywords

none

Package Sidebar

Install

npm i @jtorm/attrs-method

Weekly Downloads

2

Version

1.0.0

License

GPL-3.0

Unpacked Size

3.02 kB

Total Files

3

Last publish

Collaborators

  • jtorm