New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

html-encode

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-encode - npm Package Compare versions

Comparing version
2.1.6
to
2.1.7
+21
LICENSE.md
The MIT License (MIT)
Copyright © 2024 Kiko Beats <josefrancisco.verdu@gmail.com> (kikobeats.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
+30
-26
{
"name": "html-encode",
"description": "A Node.js library for converting HTML documents of arbitrary encoding into a target encoding (utf8, utf16, etc).",
"homepage": "https://nicedoc.io/Kikobeats/html-encode",
"version": "2.1.6",
"homepage": "https://github.com/Kikobeats/html-encode",
"version": "2.1.7",
"main": "index.js",

@@ -11,2 +11,12 @@ "author": {

},
"contributors": [
{
"name": "Kiko Beats",
"email": "josefrancisco.verdu@gmail.com"
},
{
"name": "Tomasz Szczęśniak-Szlagowski",
"email": "spect88@gmail.com"
}
],
"repository": {

@@ -30,5 +40,5 @@ "type": "git",

"charset": "~1.0.1",
"iconv-lite": "~0.6.2",
"iconv-lite": "~0.6.3",
"is-buffer": "~2.0.5",
"jschardet": "~3.0.0"
"jschardet": "~3.1.0"
},

@@ -38,15 +48,12 @@ "devDependencies": {

"@commitlint/config-conventional": "latest",
"@ksmithut/prettier-standard": "latest",
"ava": "latest",
"c8": "latest",
"chai": "latest",
"ci-publish": "latest",
"conventional-github-releaser": "latest",
"coveralls": "latest",
"finepack": "latest",
"git-authors-cli": "latest",
"git-dirty": "latest",
"got": "latest",
"lint-staged": "latest",
"mocha": "latest",
"github-generate-release": "latest",
"nano-staged": "latest",
"npm-check-updates": "latest",
"nyc": "latest",
"prettier-standard": "latest",
"simple-git-hooks": "latest",

@@ -62,6 +69,7 @@ "standard": "latest",

"clean": "rm -rf node_modules",
"contributors": "(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"dev": "nodemon --exec \"npm start\" -e \"js\"",
"lint": "standard-markdown README.md && standard",
"postrelease": "npm run release:tags && npm run release:github && ci-publish",
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
"prelint": "npm run pretty",

@@ -72,6 +80,6 @@ "prerelease": "npm run update:check",

"release": "standard-version -a",
"release:github": "conventional-github-releaser -p angular",
"release:github": "github-generate-release",
"release:tags": "git push --follow-tags origin HEAD:master",
"start": "node index.js",
"test": "nyc mocha",
"test": "c8 ava",
"update": "ncu -u",

@@ -86,11 +94,12 @@ "update:check": "ncu -- --error-level 2"

},
"lint-staged": {
"package.json": [
"finepack"
],
"nano-staged": {
"*.js": [
"prettier-standard"
"prettier-standard",
"standard --fix"
],
"*.md": [
"standard-markdown"
],
"package.json": [
"finepack"
]

@@ -100,9 +109,4 @@ },

"commit-msg": "npx commitlint --edit",
"pre-commit": "npx lint-staged"
},
"standard": {
"env": [
"mocha"
]
"pre-commit": "npx nano-staged"
}
}
# html-encode
![Last version](https://img.shields.io/github/tag/Kikobeats/html-encode.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/Kikobeats/html-encode/master.svg?style=flat-square)](https://travis-ci.org/Kikobeats/html-encode)
[![Coverage Status](https://img.shields.io/coveralls/Kikobeats/html-encode.svg?style=flat-square)](https://coveralls.io/github/Kikobeats/html-encode)

@@ -26,3 +25,3 @@ [![NPM Status](https://img.shields.io/npm/dm/html-encode.svg?style=flat-square)](https://www.npmjs.org/package/html-encode)

;(async () => {
const { body: buffer, headers } = await got(url, { encoding: null })
const { body: buffer, headers } = await got(url, { responseType: 'buffer' })
const str = toUTF8(buffer, headers['content-type'])

@@ -35,4 +34,7 @@ console.log(str)

### License
## License
The code is available under [MIT license](LICENSE).
**html-encode** © [Kiko Beats](https://kikobeats.com), released under the [MIT](https://github.com/Kikobeats/html-encode/blob/master/LICENSE.md) License.<br>
Authored and maintained by Kiko Beats with help from [contributors](https://github.com/Kikobeats/html-encode/contributors).
> [kikobeats.com](https://kikobeats.com) · GitHub [Kiko Beats](https://github.com/Kikobeats) · Twitter [@Kikobeats](https://twitter.com/Kikobeats)
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [2.1.6](https://github.com/kikobeats/html-encode/compare/v2.1.5...v2.1.6) (2021-04-16)
### Bug Fixes
* linter ([9d37a1b](https://github.com/kikobeats/html-encode/commit/9d37a1b3cb3a2c60723dc90a60bc75d37c9be4f4))
### [2.1.5](https://github.com/kikobeats/html-encode/compare/v2.1.4...v2.1.5) (2021-02-24)
### [2.1.4](https://github.com/kikobeats/html-encode/compare/v2.1.3...v2.1.4) (2020-06-29)
### [2.1.3](https://github.com/kikobeats/html-encode/compare/v2.1.2...v2.1.3) (2020-06-09)
### [2.1.2](https://github.com/kikobeats/html-encode/compare/v0.1.0...v2.1.2) (2019-06-27)
### Bug Fixes
* **package:** update iconv-lite to version 0.5.0 ([d93f709](https://github.com/kikobeats/html-encode/commit/d93f709))
### Build System
* add missing dependency ([bec9cdb](https://github.com/kikobeats/html-encode/commit/bec9cdb))
* ignore envrc ([207bf9e](https://github.com/kikobeats/html-encode/commit/207bf9e))
* tweaks ([1ef0732](https://github.com/kikobeats/html-encode/commit/1ef0732))
* update dependencies ([7396c7d](https://github.com/kikobeats/html-encode/commit/7396c7d))
### 2.1.1 (2018-11-17)
## 2.1.0 (2018-11-17)
### 2.0.1 (2018-01-29)
### Bug Fixes
* **package:** update is-buffer to version 2.0.0 ([cd53885](https://github.com/kikobeats/html-encode/commit/cd53885))
## 2.0.0 (2017-11-22)
## 1.0.0 (2017-11-22)
<a name="2.1.1"></a>
## 2.1.1 (2018-11-17)
* Avoid rewrite html charset ([9159dd2](https://github.com/kikobeats/html-encode/commit/9159dd2))
<a name="2.1.0"></a>
# 2.1.0 (2018-11-17)
* Ensure to resolve base64 entities ([227b24a](https://github.com/kikobeats/html-encode/commit/227b24a))
* Update package.json ([0806424](https://github.com/kikobeats/html-encode/commit/0806424))
<a name="2.0.1"></a>
## 2.0.1 (2018-01-29)
* fix(package): update is-buffer to version 2.0.0 ([cd53885](https://github.com/kikobeats/html-encode/commit/cd53885))
<a name="2.0.0"></a>
# 2.0.0 (2017-11-22)
<a name="1.0.0"></a>
# 1.0.0 (2017-11-22)
* A new born ([29729ef](https://github.com/kikobeats/html-encode/commit/29729ef))
* Add bumped init ([c0b46b6](https://github.com/kikobeats/html-encode/commit/c0b46b6))
* Add charset replace ([5aafa2a](https://github.com/kikobeats/html-encode/commit/5aafa2a))
* Add editorconfig ([01637a3](https://github.com/kikobeats/html-encode/commit/01637a3))
* Add examples ([9f0e174](https://github.com/kikobeats/html-encode/commit/9f0e174))
* Add replace test ([5895fc0](https://github.com/kikobeats/html-encode/commit/5895fc0))
* Add stream example ([89cc920](https://github.com/kikobeats/html-encode/commit/89cc920))
* Ensure always provide a buffer as input ([ca08bc3](https://github.com/kikobeats/html-encode/commit/ca08bc3))
* Fix unnecessary check ([67736b0](https://github.com/kikobeats/html-encode/commit/67736b0))
* Improve scaffold ([c56d1f7](https://github.com/kikobeats/html-encode/commit/c56d1f7))
* Setup travis ([dda430f](https://github.com/kikobeats/html-encode/commit/dda430f))
* Update deps ([b19ac8c](https://github.com/kikobeats/html-encode/commit/b19ac8c))
* Update pkg name ([eb36fcb](https://github.com/kikobeats/html-encode/commit/eb36fcb))
* Update README.md ([ad89891](https://github.com/kikobeats/html-encode/commit/ad89891))
* docs(readme): add Greenkeeper badge ([51bc086](https://github.com/kikobeats/html-encode/commit/51bc086))
<a name="1.0.0"></a>
# 1.0.0 (2017-11-22)
* A new born ([29729ef](https://github.com/kikobeats/html-encode/commit/29729ef))
* Add bumped init ([c0b46b6](https://github.com/kikobeats/html-encode/commit/c0b46b6))
* Add charset replace ([5aafa2a](https://github.com/kikobeats/html-encode/commit/5aafa2a))
* Add editorconfig ([01637a3](https://github.com/kikobeats/html-encode/commit/01637a3))
* Add examples ([9f0e174](https://github.com/kikobeats/html-encode/commit/9f0e174))
* Add replace test ([5895fc0](https://github.com/kikobeats/html-encode/commit/5895fc0))
* Add stream example ([89cc920](https://github.com/kikobeats/html-encode/commit/89cc920))
* Ensure always provide a buffer as input ([ca08bc3](https://github.com/kikobeats/html-encode/commit/ca08bc3))
* Fix unnecessary check ([67736b0](https://github.com/kikobeats/html-encode/commit/67736b0))
* Improve scaffold ([c56d1f7](https://github.com/kikobeats/html-encode/commit/c56d1f7))
* Setup travis ([dda430f](https://github.com/kikobeats/html-encode/commit/dda430f))
* Update deps ([b19ac8c](https://github.com/kikobeats/html-encode/commit/b19ac8c))
* Update README.md ([ad89891](https://github.com/kikobeats/html-encode/commit/ad89891))
* docs(readme): add Greenkeeper badge ([51bc086](https://github.com/kikobeats/html-encode/commit/51bc086))
<a name="0.1.0"></a>
# 0.1.0 (2015-10-07)
* Initial commit ([3495eea](https://github.com/kikobeats/html-encode/commit/3495eea))
The MIT License (MIT)
Copyright (c) 2015 Tomasz Szczęśniak-Szlagowski
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.