windows-1251
Advanced tools
Comparing version 1.1.0 to 2.0.0
{ | ||
"name": "windows-1251", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"description": "A robust windows-1251 encoder/decoder written in JavaScript.", | ||
"homepage": "https://mths.be/windows-1251", | ||
"main": "windows-1251.js", | ||
"exports": "windows-1251.mjs", | ||
"keywords": [ | ||
@@ -31,3 +31,3 @@ "codec", | ||
"LICENSE-MIT.txt", | ||
"windows-1251.js" | ||
"windows-1251.mjs" | ||
], | ||
@@ -37,4 +37,4 @@ "scripts": { | ||
"build": "node scripts/transform-data.js", | ||
"test": "node tests/tests.js", | ||
"cover": "istanbul cover --report html --verbose --dir coverage tests/tests.js" | ||
"test": "node tests/tests.mjs", | ||
"cover": "istanbul cover --report html --verbose --dir coverage tests/tests.mjs" | ||
}, | ||
@@ -41,0 +41,0 @@ "devDependencies": { |
@@ -15,12 +15,8 @@ # windows-1251 [![Build status](https://github.com/mathiasbynens/windows-1251/workflows/run-checks/badge.svg)](https://github.com/mathiasbynens/windows-1251/actions?query=workflow%3Arun-checks) [![windows-1251 on npm](https://img.shields.io/npm/v/windows-1251)](https://www.npmjs.com/package/windows-1251) | ||
In a browser: | ||
In a browser or in [Node.js](https://nodejs.org/): | ||
```html | ||
<script src="windows-1251.js"></script> | ||
``` | ||
In [Node.js](https://nodejs.org/): | ||
```js | ||
const windows1251 = require('windows-1251'); | ||
import {encode, decode, labels} from 'windows-1251'; | ||
// or… | ||
import * as windows1251 from 'windows-1251'; | ||
``` | ||
@@ -30,6 +26,2 @@ | ||
### `windows1251.version` | ||
A string representing the semantic version number. | ||
### `windows1251.labels` | ||
@@ -36,0 +28,0 @@ |
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
11756
346
80
1