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

dom7

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom7 - npm Package Compare versions

Comparing version 2.1.3 to 3.0.0-alpha.2

dom7.cjs.js

41

package.json
{
"name": "dom7",
"version": "2.1.3",
"version": "3.0.0-alpha.2",
"description": "Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API",
"main": "dist/dom7.js",
"types": "dist/dom7.d.ts",
"jsnext:main": "dist/dom7.module.js",
"module": "dist/dom7.module.js",
"scripts": {
"build-dev": "cross-env NODE_ENV=development gulp build",
"build-prod": "cross-env NODE_ENV=production gulp build",
"dev": "cross-env NODE_ENV=development gulp build && cross-env NODE_ENV=development gulp demo && gulp server",
"prod": "cross-env NODE_ENV=production gulp demo && cross-env NODE_ENV=production gulp server",
"test": "npm run build-dev"
},
"sideEffects": false,
"main": "dom7.cjs.js",
"types": "dom7.d.ts",
"jsnext:main": "dom7.esm.js",
"module": "dom7.esm.js",
"repository": {

@@ -32,23 +26,6 @@ "type": "git",

},
"homepage": "http://framework7.io/docs/dom.html",
"devDependencies": {
"cross-env": "^5.2.0",
"eslint": "^5.13.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.16.0",
"gulp": "^4.0.0",
"gulp-connect": "^5.7.0",
"gulp-header": "^2.0.7",
"gulp-modify-file": "^1.0.1",
"gulp-open": "^3.0.1",
"gulp-rename": "^1.4.0",
"gulp-sourcemaps": "^2.6.4",
"gulp-uglify": "^3.0.1",
"rollup": "^1.1.2",
"rollup-plugin-buble": "^0.19.6",
"rollup-plugin-node-resolve": "^4.0.0"
},
"homepage": "https://framework7.io/docs/dom7.html",
"dependencies": {
"ssr-window": "^1.0.1"
"ssr-window": "^3.0.0-alpha.1"
}
}
}

@@ -1,7 +0,4 @@

<a href="https://www.patreon.com/vladimirkharlampidi"><img src="https://cdn.framework7.io/i/support-badge.png" height="20"></a>
[![devDependency Status](https://david-dm.org/nolimits4web/dom7/dev-status.svg)](https://david-dm.org/nolimits4web/dom7#info=devDependencies)
# Dom7
## Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API
### Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API

@@ -12,30 +9,32 @@ Dom7 - is the default DOM manipulation library built-in [Framework7](https://framework7.io). It utilizes most edge and high-performance methods for DOM manipulation. You don’t need to learn something new, its usage is very simple because it has the same syntax as well known jQuery library with support of the most popular and widely used methods and jQuery-like chaining.

## Build
## Installation
You will need Node.js installed on your system.
Dom7 can be installed with NPM:
First, install all required dependencies
```
$ npm install
npm install dom7 --save
```
To build development version:
```
$ npm run build-dev
```
## Usage
The resulting files are:
```js
// import Dom7 and methods you need
import { $, addClass, removeClass, toggleClass, on } from 'dom7';
1. buid/dom7.js
2. buid/dom7.module.js
// install methods
$.fn.addClass = addClass;
$.fn.removeClass = removeClass;
$.fn.toggleClass = toggleClass;
$.fn.on = on;
To build production (minified) version:
// use
$('p').addClass('custom-paragraph');
$('p').on('click', function() {
$(this).toggleClass('custom-paragraph');
});
```
$ npm run build-prod
```
The resulting files are:
## Documentation
1. dist/dom7.js
2. dist/dom7.min.js
3. dist/dom7.module.js
See [full documenation here](https://framework7.io/docs/dom7.html)
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