coolcake
v0.0.4
Published
A package for doing some utility things
Downloads
40
Maintainers
Readme
CoolCake
A package for doing some utility things
Installation
To install CoolCake, run one of the following commands based on your preferred package manager:
NPM
npm install coolcake
PNPM
pnpm add coolcake
Yarn
yarn add coolcake
Uses
Uptime
const { uptime } = require("coolcake")
setTimeout(() => {
console.log(uptime()) // return 1s 2ms
console.log(uptime(true)) // return 1 second 2 milliseconds
}, 1200)
appendJSON
const { appendJSON } = require("coolcake")
appendJSON("test.json", { data: "this is important data" })