pyfn

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i pyfn

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

3.64 kB

Total Files

4

Last publish

Collaborators

  • victorze