0.0.7 • Published 3 years ago
pakijs v0.0.7
paki
Make repetitive and long code easier
Installation
$yarn add pakijs
$npm install pakijs
Usage
with node
import "pakijs";
// or
require("pakijs");
with vanilla html
<script src="https://unpkg.com/pakijs/dist/browser.js"></script>
Examples
"World".override(0, 0, "Hello ");
// Hello World
long code to short code:
Object.values({ a: 0, b: 1 }).forEach((e) => {
// ...
});
to:
({ a: 0, b: 1 }.forEach((e) => {
// ...
}));
LICENSE
MIT License