grequirejs

0.0.10 • Public • Published

GRequire/Siteres

Description

GRequire/Siteres is a simple module that allows you to use requirejs in a synchronous way.

Features

  • auto load requirejs by cdn
  • return a promise

Installation

npm install grequirejs

Usage

var grequire = require('grequirejs');
const [module1,module2] = await grequire(['module1', 'module2']);
const module3 = await grequire('module3');

描述

GRequire 是一个简单的模块,允许您以同步的方式使用 requirejs。

特点

  • 自动加载 requirejs 通过 cdn
  • 返回一个 promise

安装

npm install grequirejs

用法

javascript

var grequire = require('grequirejs');
const [module1,module2] = await grequire(['module1', 'module2']);
const module3 = await grequire('module3');

License

MIT


Package Sidebar

Install

npm i grequirejs

Weekly Downloads

0

Version

0.0.10

License

ISC

Unpacked Size

86.7 kB

Total Files

5

Last publish

Collaborators

  • pengzai-dev