Skip to content

sun0day/modern-api

Repository files navigation

image

Easy, tiny, modern web APIs lib based on Web API

APIs

Timer: Timer APIs based on Promise, setTimeout, setInterval.

sleep timeout pauseTimeout pauseInterval


Fullscreen: More compatibility fullscreen APIs based on Web Fullscreen API.

fullscreenSupported fullscreenElement requestFullscreen exitFullscreen onFullscreen


Styled-log: Log text in custom css style based on Web Console API.

log warn error debug styled


Battery: Get and watch battery status via Web Battery API.

batterySupported getBattery


Storage: Client storage APIs based on Web localStorage API.

storage.getItem storage.setItem storage.getJson storage.setJson storage.removeItem storage.hasItem storage.staleItem storage.clear


Clipboard: Clipboard APIs based on Web Clipboard API.

clipboardSupported readSupported readTextSupported writeSupported writeTextSupported read write