# artefactjs-loader

> load config for artefatjs.

Latest version **0.0.9** (published 2014-07-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install artefactjs-loader
pnpm add artefactjs-loader
yarn add artefactjs-loader
bun add artefactjs-loader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2014-07-16 |
| First published | 2014-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | drdrej |
| Maintainers | drdrej |

## Links

- npm: https://www.npmjs.com/package/artefactjs-loader
- Repository: https://github.com/drdrej/artefactjs-loader
- Issues: https://github.com/drdrej/artefactjs-loader/issues
- npm.io page: https://npm.io/package/artefactjs-loader

## Dependencies (4)

- [colors](https://npm.io/package/colors.md) ~0.6.2
- [string](https://npm.io/package/string.md) ~1.9.0
- [callsite](https://npm.io/package/callsite.md) ~1.0.0
- [underscore](https://npm.io/package/underscore.md) ~1.6.0

## Recent versions

- 0.0.9 (latest) — 2014-07-16
- 0.0.7 — 2014-07-15
- 0.0.6 — 2014-07-15
- 0.0.5 — 2014-07-15
- 0.0.4 — 2014-07-13
- 0.0.3 — 2014-07-13
- 0.0.2 — 2014-07-12
- 0.0.1 — 2014-07-12

## README

artefactjs-loader
=================

EXPERIMENTAL: extension for artefactjs to load jsons - abstraction of loading json with meta-data.

    state: active
    version: 0.0.9

## Use-Cases

This library/module is used in some of my other projects where i need to load functions and jsons, but
want to see more in log. ift eno 'require' says not enough, this will help.

Another point is the loader-hierarchy. This loader resolves the file
1. against the process, and if this file not exists in process-dir, then
2. against the caller-dir, where the json() or fnc() functions are called.

## Usage

**How to load a function**
```javascript
        var lib = require('../lib');

        var loaded = lib.fnc( './external_fnc.js', function(path) {
            var imported = require(path);
            return imported.test;
        });
```

LICENSE: MIT
write code and have fun,
A. Siebert

---
_Source: https://npm.io/package/artefactjs-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
