mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2025-10-11 15:14:59 +00:00
structure, layout and automation
This commit is contained in:
12
node_modules/import-from/index.js
generated
vendored
Normal file
12
node_modules/import-from/index.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
const resolveFrom = require('resolve-from');
|
||||
|
||||
module.exports = (fromDir, moduleId) => require(resolveFrom(fromDir, moduleId));
|
||||
|
||||
module.exports.silent = (fromDir, moduleId) => {
|
||||
try {
|
||||
return require(resolveFrom(fromDir, moduleId));
|
||||
} catch (err) {
|
||||
return null;
|
||||
}
|
||||
};
|
21
node_modules/import-from/license
generated
vendored
Normal file
21
node_modules/import-from/license
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
70
node_modules/import-from/package.json
generated
vendored
Normal file
70
node_modules/import-from/package.json
generated
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
{
|
||||
"_from": "import-from@^2.1.0",
|
||||
"_id": "import-from@2.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-M1238qev/VOqpHHUuAId7ja387E=",
|
||||
"_location": "/import-from",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "import-from@^2.1.0",
|
||||
"name": "import-from",
|
||||
"escapedName": "import-from",
|
||||
"rawSpec": "^2.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^2.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/import-cwd"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/import-from/-/import-from-2.1.0.tgz",
|
||||
"_shasum": "335db7f2a7affd53aaa471d4b8021dee36b7f3b1",
|
||||
"_spec": "import-from@^2.1.0",
|
||||
"_where": "/home/outis/Documents/Sites/BBB/node_modules/import-cwd",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/import-from/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"resolve-from": "^3.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Import a module like with `require()` but from a given path",
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/import-from#readme",
|
||||
"keywords": [
|
||||
"require",
|
||||
"resolve",
|
||||
"path",
|
||||
"module",
|
||||
"from",
|
||||
"like",
|
||||
"import",
|
||||
"path"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "import-from",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/import-from.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"version": "2.1.0"
|
||||
}
|
70
node_modules/import-from/readme.md
generated
vendored
Normal file
70
node_modules/import-from/readme.md
generated
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
# import-from [](https://travis-ci.org/sindresorhus/import-from)
|
||||
|
||||
> Import a module like with [`require()`](https://nodejs.org/api/globals.html#globals_require) but from a given path
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save import-from
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const importFrom = require('import-from');
|
||||
|
||||
// There is a file at `./foo/bar.js`
|
||||
|
||||
importFrom('foo', './bar');
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### importFrom(fromDir, moduleId)
|
||||
|
||||
Like `require()`, throws when the module can't be found.
|
||||
|
||||
### importFrom.silent(fromDir, moduleId)
|
||||
|
||||
Returns `null` instead of throwing when the module can't be found.
|
||||
|
||||
#### fromDir
|
||||
|
||||
Type: `string`
|
||||
|
||||
Directory to import from.
|
||||
|
||||
#### moduleId
|
||||
|
||||
Type: `string`
|
||||
|
||||
What you would use in `require()`.
|
||||
|
||||
|
||||
## Tip
|
||||
|
||||
Create a partial using a bound function if you want to import from the same `fromDir` multiple times:
|
||||
|
||||
```js
|
||||
const importFromFoo = importFrom.bind(null, 'foo');
|
||||
|
||||
importFromFoo('./bar');
|
||||
importFromFoo('./baz');
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [import-cwd](https://github.com/sindresorhus/import-cwd) - Import a module from the current working directory
|
||||
- [resolve-from](https://github.com/sindresorhus/resolve-from) - Resolve the path of a module from a given path
|
||||
- [resolve-cwd](https://github.com/sindresorhus/resolve-cwd) - Resolve the path of a module from the current working directory
|
||||
- [resolve-pkg](https://github.com/sindresorhus/resolve-pkg) - Resolve the path of a package regardless of it having an entry point
|
||||
- [import-lazy](https://github.com/sindresorhus/import-lazy) - Import modules lazily
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Reference in New Issue
Block a user