Sha256: 6fa11ae517d59d375c10f1acb3b9587d04bce8d6f34030ea6cd350102b7ad8d3

Contents?: true

Size: 347 Bytes

Versions: 34

Compression:

Stored size: 347 Bytes

Contents

var constants = exports;

// Helper
constants._reverse = function reverse(map) {
  var res = {};

  Object.keys(map).forEach(function(key) {
    // Convert key to integer if it is stringified
    if ((key | 0) == key)
      key = key | 0;

    var value = map[key];
    res[value] = key;
  });

  return res;
};

constants.der = require('./der');

Version data entries

34 entries across 34 versions & 12 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/asn1.js/lib/asn1/constants/index.js
disco_app-0.18.2 test/dummy/node_modules/asn1.js/lib/asn1/constants/index.js
disco_app-0.16.1 test/dummy/node_modules/asn1.js/lib/asn1/constants/index.js
disco_app-0.15.2 test/dummy/node_modules/asn1.js/lib/asn1/constants/index.js
disco_app-0.18.4 test/dummy/node_modules/asn1.js/lib/asn1/constants/index.js
disco_app-0.18.1 test/dummy/node_modules/asn1.js/lib/asn1/constants/index.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/asn1.js/lib/asn1/constants/index.js
disco_app-0.14.0 test/dummy/node_modules/asn1.js/lib/asn1/constants/index.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/asn1.js/lib/asn1/constants/index.js
enju_library-0.3.8 spec/dummy/node_modules/asn1.js/lib/asn1/constants/index.js
ilog-0.4.1 node_modules/asn1.js/lib/asn1/constants/index.js
ilog-0.4.0 node_modules/asn1.js/lib/asn1/constants/index.js
ilog-0.3.3 node_modules/asn1.js/lib/asn1/constants/index.js
jester-data-8.0.0 node_modules/asn1.js/lib/asn1/constants/index.js
ezii-os-5.2.1 node_modules/asn1.js/lib/asn1/constants/index.js
ezii-os-2.0.1 node_modules/asn1.js/lib/asn1/constants/index.js
ezii-os-1.1.0 node_modules/asn1.js/lib/asn1/constants/index.js
ezii-os-1.0.0 node_modules/asn1.js/lib/asn1/constants/index.js
ezii-os-0.0.0.1.0 node_modules/asn1.js/lib/asn1/constants/index.js
ezii-os-0.0.0.0.1 node_modules/asn1.js/lib/asn1/constants/index.js