Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "h3", | ||
"version": "1.0.0", | ||
"description": "A better HTMLElement constructor", | ||
"homepage": "https://github.com/twhb/h3-js", | ||
"bugs": "https://github.com/twhb/h3-js/issues", | ||
"license": "ISC", | ||
"author": "Tristan Berger <tristanberger@gmail.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/twhb/h3-js.git" | ||
} | ||
"version": "2.0.0", | ||
"description": "DEPRECATED" | ||
} |
@@ -1,38 +0,1 @@ | ||
# h3-js | ||
A better HTMLElement constructor | ||
## Example | ||
```javascript | ||
var body = h('div', 'example', | ||
h('h1', null, 'Example'), | ||
h('label', {htmlFor: 'task'}, | ||
h('input', {id: 'task', type: 'checkbox', checked: true}), | ||
'Check out h3-js' | ||
) | ||
); | ||
``` | ||
## API | ||
### h(tagName, props, ...children) | ||
Creates and returns a new HTMLElement. | ||
Primary interface: `tagName` sets the tag name, each key-value pair of `props` is copied onto the result, and each of `children` is appended to the result. | ||
Conveniences: | ||
- `props.style` sets `result.style.cssText` | ||
- If `props` is falsy then it is ignored | ||
- If `props` is a string then it instead sets `result.className` | ||
- Children that are falsy are ignored | ||
- Children that are strings are converted to `Text` instances | ||
- Children that are Arrays are flattened into `children` | ||
## Setup | ||
Install: `npm install h3` | ||
Import: `const h = require('h3');` | ||
DEPRECATED |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
81
2
1
0
2
1
1
1