index.js 801 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*!
  2. * Marxco Iconfont MS
  3. * Icon font from upcoming Marxco component system.
  4. *
  5. * https://gitlab.com/M-O-Z-G/marxco-icf
  6. *
  7. * MIT Licensed
  8. */
  9. const stylus = require( "stylus" ),
  10. path = require( "path" ),
  11. data = require("data.json")
  12. nodes = stylus.nodes,
  13. utils = stylus.utils;
  14. exports = module.exports = function() {
  15. return function( oStyle ){
  16. oStyle.include( __dirname );
  17. };
  18. };
  19. Object.defineProperty(icons, "get", {
  20. enumerable: !1,
  21. value: function (t) {
  22. if (icons[t]) return icons[t];
  23. var c = t.toLowerCase();
  24. for (var l in icons) {
  25. var s = icons[l];
  26. if (s.title && s.title.toLowerCase() === c || s.slug && s.slug === c) return s
  27. }
  28. }
  29. }), module.exports = icons;
  30. exports.version = require( path.join( __dirname, "package.json" ) ).version;
  31. exports.path = __dirname;