How to use requirish - 5 common examples

To help you get started, we’ve selected a few requirish examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-opcua / node-opcua / lib / datamodel / SessionAuthenticationToken.js View on Github external
require("requirish")._(module);

var factories = require("lib/misc/factories");

// OPC Unified Architecture, Part 4  $7.29 page 139
var SessionAuthenticationToken_Schema = {
    name: "SessionAuthenticationToken",
    subtype: "NodeId"
};
factories.registerBasicType(SessionAuthenticationToken_Schema);
github node-opcua / node-opcua / test / fixtures / fixture_AsymmetricAlgorithmSecurityHeader.js View on Github external
require("requirish")._(module);

var s = require("lib/datamodel/structures");
var sc = require("lib/services/secure_channel_service");

exports.fixture1 = (function () {

    var securityHeader = new sc.AsymmetricAlgorithmSecurityHeader();
    securityHeader.securityPolicyUri = "http://opcfoundation.org/UA/SecurityPolicy#None";
    securityHeader.senderCertificate = new Buffer(0);
    securityHeader.receiverCertificateThumbprint = new Buffer(0);

    return securityHeader;
})();
github node-opcua / node-opcua / schemas / EUInformation_schema.js View on Github external
"use strict";
require("requirish")._(module);
var factories = require("lib/misc/factories");

var EUInformation_Schema = {
    name:"EUInformation",
    fields: [
        {   name:"NamespaceUri", fieldType:"String"        },
        {   name:"unitId",       fieldType:"Int32"         },
        {   name:"displayName",  fieldType:"LocalizedText" },
        {   name:"description",  fieldType:"LocalizedText" }
    ]
};
exports.EUInformation_Schema = EUInformation_Schema;
github node-opcua / node-opcua / schemas / AxisScale_enum.js View on Github external
"use strict";
require("requirish")._(module);
var factories = require("lib/misc/factories");
var AxisScaleEnumeration_Schema = {
    name:"AxisScaleEnumeration",
    enumValues: {
        Linear: 0,
        Log:    1,
        Ln:     2
    }
};
exports.AxisScaleEnumeration_Schema =AxisScaleEnumeration_Schema;
exports.AxisScale = factories.registerEnumeration(AxisScaleEnumeration_Schema);
github node-opcua / node-opcua / lib / datamodel / buildinfo.js View on Github external
require("requirish")._(module);

exports.BuildInfo = require("_generated_/_auto_generated_BuildInfo").BuildInfo;

requirish

Tool for avoiding the ../../../ relative paths problem, includes browserify-transform to rewrites require() for browser

MIT
Latest version published 10 years ago

Package Health Score

42 / 100
Full package analysis

Popular requirish functions