Skip to content
/ pyfn Public

Python built-in functions implemented in Javascript

License

Notifications You must be signed in to change notification settings

victorze/pyfn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python built-in functions implemented in Javascript

Installation

npm install pyfn

Usage

const { all, range, list, chr, sum, bin, callable } = require("pyfn");

console.log(all([], {}, 1, " "));
// => true

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

console.log(callable(console.log));
// => true

Implemented functions

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

About

Python built-in functions implemented in Javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published