🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

artefactjs-loader

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

artefactjs-loader

load config for artefatjs.

0.0.9
latest
Source
npm
Version published
Weekly downloads
3
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

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

  • against the process, and if this file not exists in process-dir, then
  • against the caller-dir, where the json() or fnc() functions are called.

Usage

How to load a function

        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

FAQs

Package last updated on 16 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts