Pee.js

Pee.js Logo

Piss away your memories…

What is it?

Pee.js is a library for leaking a set amount of memory, written in JavaScript.

Why does this exist?

I wanted to make a JavaScript library named pee.js because of a typo and a pun.

Usage

Browser (pee.js)

import { leak } from './pee.js';
leak(69); // Leaks 69 MB of memory

Node

https://www.npmjs.com/package/pee.js

npm install pee.js

const pee = require('pee.js');
pee.leak(420);

See test/test.node.js for a more in-depth example

Why should I care?

You should not. Thank you for your time.

Feature Requests, Bug Reports, and Pull Requests are very welcome

GitHub

View Github