JSPM

windows-1250-codes

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 183
  • Score
    100M100P100Q123820F
  • License MIT

Convert characters to windows-1250 codes and back.

Package Exports

  • windows-1250-codes
  • windows-1250-codes/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (windows-1250-codes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

windows-1250-codes

npm NPM npm bundle size

A converter from characters to windows-1250 codes and the other way around.

Installation

NodeJS

npm install windows-1250-codes --save

Browser

Import the script:

<script src="https://joker876.github.io/windows-1250-codes/windows-1250-codes.min.js">

Usage

import { charToCode, codeToChar } from 'windows-1250-codes';

Characters to codes

charToCode(char: string): number;

The 1charToCode1 function takes a single string argument char, representing the character to be converted.

It returns a number representing the Windows-1250 encoding code for the character, or -1 if the character is not supported by Windows-1250.

Codes to characters

codeToChar(code: number): string;

The codeToChar function takes a single number argument code, representing the Windows-1250 encoding code to be converted.

It returns a string representing the character corresponding to the Windows-1250 encoding code, or a placeholder character if the code is not supported by Windows-1250.