character-entities-legacy
Advanced tools
Comparing version 1.1.4 to 2.0.0
{ | ||
"name": "character-entities-legacy", | ||
"version": "1.1.4", | ||
"version": "2.0.0", | ||
"description": "HTML legacy character entity information", | ||
@@ -25,26 +25,32 @@ "license": "MIT", | ||
], | ||
"main": "index.json", | ||
"sideEffects": false, | ||
"type": "module", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"index.json" | ||
"index.d.ts", | ||
"index.js" | ||
], | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@types/tape": "^4.0.0", | ||
"bail": "^1.0.0", | ||
"browserify": "^16.0.0", | ||
"c8": "^7.6.0", | ||
"concat-stream": "^2.0.0", | ||
"prettier": "^1.0.0", | ||
"remark-cli": "^7.0.0", | ||
"remark-preset-wooorm": "^6.0.0", | ||
"tape": "^4.0.0", | ||
"tinyify": "^2.0.0", | ||
"xo": "^0.25.0" | ||
"prettier": "^2.0.0", | ||
"remark-cli": "^9.0.0", | ||
"remark-preset-wooorm": "^8.0.0", | ||
"rimraf": "^3.0.0", | ||
"tape": "^5.0.0", | ||
"typescript": "^4.0.0", | ||
"xo": "^0.38.0" | ||
}, | ||
"scripts": { | ||
"generate": "node build", | ||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix", | ||
"build-bundle": "browserify index.json -s characterEntitiesLegacy -o character-entities-legacy.js", | ||
"build-mangle": "browserify index.json -s characterEntitiesLegacy -p tinyify -o character-entities-legacy.min.js", | ||
"build": "npm run build-bundle && npm run build-mangle", | ||
"test-api": "node test", | ||
"test": "npm run generate && npm run format && npm run build && npm run test-api" | ||
"prepublishOnly": "npm run build && npm run format", | ||
"prebuild": "rimraf \"*.d.ts\"", | ||
"build": "tsc", | ||
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", | ||
"test-api": "node test.js", | ||
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js", | ||
"test": "npm run generate && npm run build && npm run format && npm run test-coverage" | ||
}, | ||
@@ -61,6 +67,7 @@ "prettier": { | ||
"prettier": true, | ||
"esnext": false, | ||
"ignores": [ | ||
"character-entities-legacy.js" | ||
] | ||
"rules": { | ||
"import/no-mutable-exports": "off", | ||
"no-var": "off", | ||
"prefer-arrow-callback": "off" | ||
} | ||
}, | ||
@@ -67,0 +74,0 @@ "remarkConfig": { |
# character-entities-legacy | ||
[![Build][build-badge]][build] | ||
[![Coverage][coverage-badge]][coverage] | ||
[![Downloads][downloads-badge]][downloads] | ||
@@ -13,2 +14,5 @@ [![Size][size-badge]][size] | ||
This package is ESM only: Node 12+ is needed to use it and it must be `import`ed | ||
instead of `require`d. | ||
[npm][]: | ||
@@ -23,3 +27,3 @@ | ||
```js | ||
var characterEntitiesLegacy = require('character-entities-legacy') | ||
import {characterEntitiesLegacy} from 'character-entities-legacy' | ||
@@ -33,2 +37,5 @@ console.log(characterEntitiesLegacy.copy) // => '©' | ||
This package exports the following identifiers: `characterEntitiesLegacy`. | ||
There is no default export. | ||
### `characterEntitiesLegacy` | ||
@@ -59,6 +66,10 @@ | ||
[build-badge]: https://img.shields.io/travis/wooorm/character-entities-legacy.svg | ||
[build-badge]: https://github.com/wooorm/character-entities-legacy/workflows/main/badge.svg | ||
[build]: https://travis-ci.org/wooorm/character-entities-legacy | ||
[build]: https://github.com/wooorm/character-entities-legacy/actions | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/character-entities-legacy.svg | ||
[coverage]: https://codecov.io/github/wooorm/character-entities-legacy | ||
[downloads-badge]: https://img.shields.io/npm/dm/character-entities-legacy.svg | ||
@@ -78,2 +89,2 @@ | ||
[html]: https://raw.githubusercontent.com/whatwg/html/master/json-entities-legacy.inc | ||
[html]: https://github.com/whatwg/html-build/blob/HEAD/entities/json-entities-legacy.inc |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
9446
5
216
86
Yes
11
1