Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

magic-virtual-element

Package Overview
Dependencies
14
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 2.0.0-rc1

.babelrc

37

package.json
{
"name": "magic-virtual-element",
"version": "1.0.6",
"version": "2.0.0-rc1",
"repository": "dekujs/magic-virtual-element",
"description": "Build virtual tree elements with magic attributes",
"main": "index.js",
"main": "lib/index.js",
"devDependencies": {
"babelify": "^6.1.1",
"bfc": "^0.3.1",
"browserify": "^11.0.1",
"hihat": "^2.4.0",
"snazzy": "^1.0.1",
"standard": "^4.5.4",
"babel-cli": "^6.4.0",
"babel-preset-es2015": "^6.3.13",
"babelify": "^7.2.0",
"hihat": "^2.6.1",
"rimraf": "^2.5.0",
"snazzy": "^2.0.1",
"standard": "^5.4.1",
"tap-dev-tool": "^1.3.0",
"tape": "^4.0.1"
"tape": "^4.4.0"
},
"dependencies": {
"classnames": "^2.1.3",
"component-type": "~1.1.0",
"sliced": "^1.0.1",
"to-style": "^1.3.3",
"virtual-element": "^1.1.2"
"deku": "~2.0.0-rc",
"classnames": "^2.2.3",
"component-type": "~1.2.0",
"to-style": "^1.3.3"
},
"scripts": {
"build": "mkdir -p build && browserify -s magic-virtual-element -e index.js | bfc > build/magic-virtual-element.js",
"clean": "rimraf lib",
"build": "babel index.js --out-dir lib",
"prepublish": "npm run clean && npm run build",
"preversion": "npm run clean && npm run test",
"version": "npm run build",
"postversion": "git push && git push --tags && npm run clean",
"test": "standard index.js && hihat test/index.js -- --debug -t babelify -p tap-dev-tool"
}
}
}
# magic-virtual-element
[![version](https://img.shields.io/npm/v/magic-virtual-element.svg?style=flat-square)](https://www.npmjs.com/package/magic-virtual-element) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
A library for building virtual tree elements, with enhanced support for class and style properties.
```
npm install magic-virtual-element
```
You can also use Duo, Bower or [download the files manually](https://github.com/dekujs/magic-virtual-element/releases).
## Top-Level API
```js
element(component: string|Function , [props: object], [...children: Array]): Component
```
## Example
```js
import element from 'magic-virtual-element';
let divStyle = {
color: 'white',
backgroundImage: 'url(' + imgUrl + ')',
WebkitTransition: 'all', // note the capital 'W' here
msTransition: 'all' // 'ms' is the only lowercase vendor prefix
};
element('div', { class: ["App", "foo", "bar"], style: divStyle }, [
element('button', { class: "Button" }, 'Click Me!')
]);
```
See https://github.com/dekujs/deku#virtual-elements

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc