1.0.1 • Published 2 years ago
oen-browser v1.0.1
Introduction
安装 (Introduction)
npm install oen-browser
Loading
加载此模块 (Loading the module)
// CommonJS
const browser = require('oen-browser');
// ES Module
import browser from 'oen-browser';
如果你想在全局使用 (if you want to use the global)
const browser = require('oen-browser');
if (!globalThis.browser) {
globalThis.browser = browser;
}
Usage
常用APIs (Common Usage)
down
const browser = require('oen-browser');
let url = "http://google.com";
let data = await browser.down(url);
console.log(data);