0.1.0 • Published 3 years ago

pyfn v0.1.0

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

Python built-in functions implemented in Javascript

Installation

npm install pyfn

Usage

const { range, list, chr, sum, bin } = require('gray-matter');

console.log(list(range(10)));
// => [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]

console.log(chr(128515));
// => 😃

console.log(sum(range(10, 20)));
// => 145

console.log(bin(255))
// => 0b11111111

Implemented functions

abs, all, any, bin, sum, callable, chr, ord, range, len, list