Browser
Getting Started

Getting Started

Installation

For using the pnpm package manager.

pnpm install @ponsetya/browser

Usage

By default you can include all api and functions.

import browser from '@ponsetya/browser'
 
browser.cookie.set('name', 'John Doe')
 
console.log(browser.cookie.get('name')) // John Doe

If you want to use it as a module, you need to import the module.

import { cookie } from '@ponsetya/browser'
 
cookie.set('name', 'John Doe')
 
console.log(cookie.get('name')) // John Doe

License

Released under the MIT License (opens in a new tab).