Skip to content
/ char Public

Get the string representing a character whose Unicode code point is the integer i. ES6 implementation of Python built-in chr() function

License

Notifications You must be signed in to change notification settings

nhsz/char

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

char

Return the string representing a character whose Unicode code point is the integer code.
ES6 implementation of Python built-in chr() function

Build Status Coverage Status codebeat badge Codacy Badge Code Climate

NPM

This is the inverse of ordr.

The valid range for the argument is from 0 through 1114111 (0x10FFFF in base 16). RangeError will be raised if code is outside that range.

Install

$ npm install char

Usage

const chr = require('char')

console.log(chr(65))
// => 'A'

console.log(chr(97))
// => 'a'

console.log(chr(8364))
// => '€'

console.log(chr(64))
// => '@'

console.log(chr(-1))
// => RangeError: Invalid code point -1

License

MIT © Nicolás Quiroz

About

Get the string representing a character whose Unicode code point is the integer i. ES6 implementation of Python built-in chr() function

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published