معرفی شرکت ها


clear-module-4.1.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Clear a module from the cache
ویژگی مقدار
سیستم عامل -
نام فایل clear-module-4.1.2
نام clear-module
نسخه کتابخانه 4.1.2
نگهدارنده ['sindresorhus']
ایمیل نگهدارنده ['sindresorhus@gmail.com']
نویسنده Sindre Sorhus
ایمیل نویسنده sindresorhus@gmail.com
آدرس صفحه اصلی git+https://github.com/sindresorhus/clear-module.git
آدرس اینترنتی https://github.com/sindresorhus/clear-module#readme
مجوز MIT
# clear-module > Clear a module from the [cache](https://nodejs.org/api/modules.html#modules_caching) Useful for testing purposes when you need to freshly import a module. ## Install ``` $ npm install clear-module ``` ## Usage ```js // foo.js let i = 0; module.exports = () => ++i; ``` ```js const clearModule = require('clear-module'); require('./foo')(); //=> 1 require('./foo')(); //=> 2 clearModule('./foo'); require('./foo')(); //=> 1 ``` ## API ### clearModule(moduleId) #### moduleId Type: `string` What you would use with `require()`. ### clearModule.all() Clear all modules from the cache. ### clearModule.match(regex) Clear all matching modules from the cache. #### regex Type: `RegExp` Regex to match against the module IDs. ### clearModule.single(moduleId) Clear a single module from the cache non-recursively. No parent or children modules will be affected. This is mostly only useful if you use singletons, where you would want to clear a specific module without causing any side effects. #### moduleId Type: `string` What you would use with `require()`. ## Related - [import-fresh](https://github.com/sindresorhus/import-fresh) - Import a module while bypassing the cache - [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path - [import-cwd](https://github.com/sindresorhus/import-cwd) - Import a module from the current working directory - [import-lazy](https://github.com/sindresorhus/import-lazy) - Import a module lazily


نیازمندی

مقدار نام
^2.0.0 parent-module
^5.0.0 resolve-from


زبان مورد نیاز

مقدار نام
17.0.1 Npm


نحوه نصب


نصب پکیج tgz clear-module-4.1.2:

    npm install clear-module-4.1.2.tgz