From 0d2dd9bf05904c0c39e87e174fff22f3191ab6ad Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Wed, 13 Mar 2024 12:11:52 +0530 Subject: [PATCH] remove api section from bare modules --- bare-reference/bare-modules.md | 137 --------------------------------- 1 file changed, 137 deletions(-) diff --git a/bare-reference/bare-modules.md b/bare-reference/bare-modules.md index 8cfefbc..bb3e140 100644 --- a/bare-reference/bare-modules.md +++ b/bare-reference/bare-modules.md @@ -184,140 +184,3 @@ If a package defines only a single export, `"."`, it may leave out the subpath e } ``` -#### `"imports"` - -##### Subpath imports - -##### Conditional imports - -##### Private imports - -## API - -#### `Module.constants` - -#### `Module.constants.states` - -Constant | Description -:-- | :-- -`EVALUATED` | -`SYNTHESIZED` | -`DESTROYED` | - -#### `Module.constants.types` - -Constant | Description -:-- | :-- -`SCRIPT` | -`MODULE` | -`JSON` | -`BUNDLE` | -`ADDON` | - -#### `Module.cache` - -#### `const url = Module.resolve(specifier, parentURL[, options])` - -Options include: - -```js -{ - referrer = null, - protocol, - imports, - resolutions, - builtins, - conditions -} -``` - -#### `const module = Module.load(url[, source][, options])` - -Options include: - -```js -{ - referrer = null, - type, - defaultType = constants.types.SCRIPT, - cache, - main, - protocol, - imports, - resolutions, - builtins, - conditions -} -``` - -#### `module.url` - -#### `module.filename` - -#### `module.dirname` - -#### `module.type` - -#### `module.defaultType` - -#### `module.cache` - -#### `module.main` - -#### `module.exports` - -#### `module.imports` - -#### `module.resolutions` - -#### `module.builtins` - -#### `module.conditions` - -#### `module.protocol` - -#### `module.destroy()` - -### Custom `require()` - -#### `const require = Module.createRequire(parentURL[, options])` - -Options include: - -```js -{ - referrer = null, - type = constants.types.SCRIPT, - defaultType = constants.types.SCRIPT, - cache, - main, - protocol, - imports, - resolutions, - builtins, - conditions -} -``` - -### Protocols - -#### `const protocol = new Module.Protocol(options)` - -Options include: - -```js -{ - preresolve, - postresolve, - resolve, - exists, - read, - load -} -``` - -### Bundles - -#### `const bundle = new Module.Bundle()` - -For more info, see [Bare Bundle](https://github.com/holepunchto/bare-bundle). \ No newline at end of file