File: index.js

package info (click to toggle)
node-postcss-load-config 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 432 kB
  • sloc: makefile: 2; sh: 2
file content (10 lines) | stat: -rw-r--r-- 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
'use strict';
const resolveFrom = require('resolve-from');

module.exports = (fromDirectory, moduleId) => require(resolveFrom(fromDirectory, moduleId));

module.exports.silent = (fromDirectory, moduleId) => {
	try {
		return require(resolveFrom(fromDirectory, moduleId));
	} catch (_) {}
};