0.0.3 • Published 8 years ago

ordr v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

ordr

NPM

Given a string representing one Unicode character, return an integer representing the Unicode code point of that character.
ES6 implementation of Python built-in ord() function

This is the inverse of char.

Install

$ npm install --save ordr

Usage

const ord = require('ordr')

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

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

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

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

License

MIT © Nicolás Quiroz

0.0.3

8 years ago

0.0.2

8 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago