Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/hamrishealth.aplikasipos.info/node_modules/import-cwd/
Upload File :
Current File : /home/aplikasiposinfo/public_html/hamrishealth.aplikasipos.info/node_modules/import-cwd/index.d.ts

declare const importCwd: {
	/**
	Import a module like with [`require()`](https://nodejs.org/api/globals.html#globals_require) but from the current working directory.

	@param moduleId - What you would use in `require()`.
	@throws Like `require()`, throws when the module can't be found.

	@example
	```
	import importCwd = require('import-cwd');

	// Target module is at '/Users/sindresorhus/unicorn/foo.js'

	console.log(__dirname);
	//=> '/Users/sindresorhus/rainbow'

	console.log(process.cwd());
	//=> '/Users/sindresorhus/unicorn'

	const foo = importCwd('./foo');
	```
	*/
	(moduleId: string): unknown;


	/**
	Import a module like with [`require()`](https://nodejs.org/api/globals.html#globals_require) but from the current working directory.

	@param moduleId - What you would use in `require()`.
	@returns `undefined` instead of throwing when the module can't be found.

	@example
	```
	import importCwd = require('import-cwd');

	// '/Users/sindresorhus/empty/' is empty

	console.log(__dirname);
	//=> '/Users/sindresorhus/rainbow'

	console.log(process.cwd());
	//=> '/Users/sindresorhus/empty'

	const foo = importCwd.silent('./nonexistent');
	//=> undefined
	```
	*/
	silent(moduleId: string): unknown;
};

export = importCwd;

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]