# js-py-proto

> Use your favorite Python builtins in Javascript.

Latest version **0.1.0** (published 2014-03-31) · 0 weekly downloads

## Install

```sh
npm install js-py-proto
pnpm add js-py-proto
yarn add js-py-proto
bun add js-py-proto
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-03-31 |
| First published | 2014-03-31 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Jacob Foster |
| Maintainers | spockninja |
| Keywords | python, prototype, builtin, builtins, String, Object |

## Links

- npm: https://www.npmjs.com/package/js-py-proto
- Repository: https://github.com/spockNinja/js-py-proto
- Issues: https://github.com/spockNinja/js-py-proto/issues
- npm.io page: https://npm.io/package/js-py-proto

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-03-31

## README

js-py-proto
===========

Javascript library to bring your favorite Python built-ins to the web.


Being a full-stack developer, I often find myself wishing that native Javascript entities had a bit more functionality.
In particular, I have written a few functions here and there that I come to expect because of python built-ins.

So, I decided to make a project where I can take that idea to the next level and aim to implement as many python built-ins in Javascript as I can.

### Using in Your Project

#### In the HTML...
```html
<html>
    <!-- All of your htmls... -->

    <!-- Include BEFORE your own js so the functions will be there when you want them. -->
    <script type="text/javascript" src="jspyproto.js"></script>
    <!-- If you are going to use the configurable version, put your configuration code immediately following. -->
</html>
```

#### In the JS...
```javascript
    // Use Strings, Objects, Arrays as you normally would...
    // But now... they have all of the python built-ins implemented!
    var pyString = "i am a javascript string... with python functions";
    pyString.capitalize(); // "I am a javascript string... with python functions"
    pyString.count('python'); // 1
    // And many more...
```

#### In nodejs...
`npm install js-py-proto`
```javascript
    require('js-py-proto')();
    var pyString = "i am a javascript string... with python functions";
    pyString.capitalize(); // "I am a javascript string... with python functions"
    pyString.count('python'); // 1
    // And many more...
```

#### Strings
String functions that have been implemented can be found here: http://docs.python.org/2/library/stdtypes.html#string-methods

****
### Contributing
1. Create your Fork
2. Install [nodejs](http://nodejs.org/) and [npm](https://www.npmjs.org/)
3. `npm install -g grunt-cli`
4. `cd` into your fork and `npm install` to get the dependencies
5. Make your changes.
6. Add/Fix tests.
7. Run `grunt` in the project directory.
8. Fix any issues from failing tests or jshint warnings.
9. Commit and open up a PR!

---
_Source: https://npm.io/package/js-py-proto · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
