Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

min-dom

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

min-dom - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

.jshintrc

2

lib/classes.js

@@ -1,1 +0,1 @@

module.exports = require('classes');
module.exports = require('component-classes');
{
"name": "min-dom",
"version": "0.1.2",
"version": "0.2.0",
"description": "A minimal dom utility toolbelt",
"scripts": {
"test": "echo \"no tests\"; exit 1;"
"test": "karma start test/config/karma.conf.js --single-run --no-auto-watch"
},

@@ -24,24 +24,5 @@ "keywords": [

"license": "MIT",
"browser": {
"isArray": "is-array",
"each": "foreach",
"event": "component-event",
"query": "component-query",
"classes": "component-classes",
"delegate": "component-delegate",
"matches-selector": "component-matches-selector",
"css": "component-css",
"keys": "./vendor/keys.js",
"trim": "./vendor/trim.js",
"value": "./vendor/value.js",
"type": "./vendor/type.js",
"text": "./vendor/text.js",
"traverse": "./vendor/traverse.js",
"props": "./vendor/props.js",
"to-function": "./vendor/to-function.js"
},
"dependencies": {
"component-classes": "^1.2.3",
"component-closest": "^0.1.4",
"component-css": "^0.0.6",
"component-delegate": "^0.2.3",

@@ -51,6 +32,14 @@ "component-event": "^0.1.4",

"component-query": "^0.0.3",
"domify": "^1.3.1",
"foreach": "^2.0.5",
"is-array": "^1.0.1"
"domify": "^1.3.1"
},
"devDependencies": {
"chai": "^2.0.0",
"karma": "^0.12.31",
"karma-browserify": "^3.0.2",
"karma-chai": "^0.1.0",
"karma-cli": "0.0.4",
"karma-mocha": "^0.1.10",
"karma-phantomjs-launcher": "^0.1.4",
"mocha": "^2.1.0"
}
}
# min-dom
[![Build Status](https://travis-ci.org/bpmn-io/min-dom.svg?branch=master)](https://travis-ci.org/bpmn-io/min-dom)
A minimal dom utility toolbelt. Library friendly and based on utilities provided by [component](https://github.com/component).

@@ -11,3 +13,6 @@

```
$ browserify index.js --standalone=dom | bundle-collapser | uglifyjs | gzip > min-dom.min.js.gz
$ browserify index.js --standalone=dom | \
bundle-collapser | \
uglifyjs | \
gzip > min-dom.min.js.gz
$ du min-dom.min.js.gz

@@ -17,8 +22,21 @@ 4 min-dom.min.js.gz

Bigger when exposing the [component/dom](https://github.com/component/dom) api.
```
$ browserify dom/index.js --standalone=dom | bundle-collapser | uglifyjs | gzip > dom.min.js.gz
$ du dom.min.js.gz
12 dom.min.js.gz
```
## Features
The library exposes the following tiny dom helpers:
* `attr` - get and set node attributes
* `classes` - class name helper; [component-classes](https://github.com/component/classes)
* `clear` - remove children from a node
* `closest` - get the closest parent by selector; [component-closest](https://github.com/component/closest)
* `delegate` - event deletation support; [component-delegate](https://github.com/component/delegate)
* `domify` - html to elements; [domify](https://github.com/component/domify)
* `event` - event binding; [component-event](https://github.com/component/event)
* `matches` - selector match check; [component-matches-selector](https://github.com/component/matches-selector)
* `query` - selector query support; [component-query](https://github.com/component/query)
* `remove` - detach a node from its parent
## License
MIT
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc