معرفی شرکت ها


configstore-6.0.0


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Easily load and save config without having to think about where and how
ویژگی مقدار
سیستم عامل -
نام فایل configstore-6.0.0
نام configstore
نسخه کتابخانه 6.0.0
نگهدارنده ['sindresorhus', 'sboudrias', 'eddiemonge', 'addyosmani', 'mischah', 'zckrs', 'ulisesgascon', 'mshima', 'ruyadorno']
ایمیل نگهدارنده ['sindresorhus@gmail.com', 'admin@simonboudrias.com', 'eddie+npm@eddiemonge.com', 'addyosmani@gmail.com', 'mail@michael-kuehnel.de', 'mehdy.dara.fr@gmail.com', 'ulisesgascondev@gmail.com', 'marceloshima@gmail.com', 'ruyadorno@hotmail.com']
نویسنده Sindre Sorhus
ایمیل نویسنده sindresorhus@gmail.com
آدرس صفحه اصلی git+https://github.com/yeoman/configstore.git
آدرس اینترنتی https://github.com/yeoman/configstore#readme
مجوز BSD-2-Clause
# configstore > Easily load and persist config without having to think about where and how The config is stored in a JSON file located in `$XDG_CONFIG_HOME` or `~/.config`.\ Example: `~/.config/configstore/some-id.json` *If you need this for Electron, check out [`electron-store`](https://github.com/sindresorhus/electron-store) instead.*\ *And check out [`conf`](https://github.com/sindresorhus/conf) for a more modern version of `configstore`.* ## Install ``` $ npm install configstore ``` ## Usage ```js import Configstore from 'configstore'; const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8')); // Create a Configstore instance. const config = new Configstore(packageJson.name, {foo: 'bar'}); console.log(config.get('foo')); //=> 'bar' config.set('awesome', true); console.log(config.get('awesome')); //=> true // Use dot-notation to access nested properties. config.set('bar.baz', true); console.log(config.get('bar')); //=> {baz: true} config.delete('awesome'); console.log(config.get('awesome')); //=> undefined ``` ## API ### Configstore(packageName, defaults?, options?) Returns a new instance. #### packageName Type: `string` Name of your package. #### defaults Type: `object` Default config. #### options Type: `object` ##### globalConfigPath Type: `boolean`\ Default: `false` Store the config at `$CONFIG/package-name/config.json` instead of the default `$CONFIG/configstore/package-name.json`. This is not recommended as you might end up conflicting with other tools, rendering the "without having to think" idea moot. ##### configPath Type: `string`\ Default: Automatic **Please don't use this option unless absolutely necessary and you know what you're doing.** Set the path of the config file. Overrides the `packageName` and `globalConfigPath` options. ### Instance You can use [dot-notation](https://github.com/sindresorhus/dot-prop) in a `key` to access nested properties. ### .set(key, value) Set an item. ### .set(object) Set multiple items at once. ### .get(key) Get an item. ### .has(key) Check if an item exists. ### .delete(key) Delete an item. ### .clear() Delete all items. ### .size Get the item count. ### .path Get the path to the config file. Can be used to show the user where the config file is located or even better open it for them. ### .all Get all the config as an object or replace the current config with an object: ```js config.all = { hello: 'world' }; ``` --- <div align="center"> <b> <a href="https://tidelift.com/subscription/pkg/npm-configstore?utm_source=npm-configstore&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a> </b> <br> <sub> Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. </sub> </div>


نیازمندی

مقدار نام
^6.0.1 dot-prop
^4.2.6 graceful-fs
^3.0.0 unique-string
^3.0.3 write-file-atomic
^5.0.1 xdg-basedir


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

مقدار نام
12.20.1 Npm


نحوه نصب


نصب پکیج tgz configstore-6.0.0:

    npm install configstore-6.0.0.tgz