https://github.com/bahmutov/cypress-plugin-config
Utilities for making Cypress plugin configuration easier
https://github.com/bahmutov/cypress-plugin-config
cypress-plugin
Last synced: 10 months ago
JSON representation
Utilities for making Cypress plugin configuration easier
- Host: GitHub
- URL: https://github.com/bahmutov/cypress-plugin-config
- Owner: bahmutov
- Created: 2022-07-27T22:07:01.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-27T01:06:58.000Z (almost 2 years ago)
- Last Synced: 2024-12-27T20:52:18.525Z (over 1 year ago)
- Topics: cypress-plugin
- Language: JavaScript
- Homepage:
- Size: 406 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cypress-plugin-config  [](https://github.com/bahmutov/cypress-plugin-config/actions/workflows/ci.yml)
> Utilities for making Cypress plugin configuration easier
## Install
```
$ npm install cypress-plugin-config
```
## Use
Include this plugin from your support file
```js
import {
getPluginConfigValue,
setPluginConfigValue,
} from 'cypress-plugin-config'
// to save a value
setPluginConfigValue('name', 'Joe')
// to read a value
getPluginConfigValue('name') // "Joe"
```
Set and get are synchronous commands.
## See also
- [cypress-data-session](https://github.com/bahmutov/cypress-data-session)
## Small print
Author: Gleb Bahmutov <gleb.bahmutov@gmail.com> © 2022
- [@bahmutov](https://twitter.com/bahmutov)
- [glebbahmutov.com](https://glebbahmutov.com)
- [blog](https://glebbahmutov.com/blog)
- [videos](https://www.youtube.com/glebbahmutov)
- [presentations](https://slides.com/bahmutov)
- [cypress.tips](https://cypress.tips)
- [Cypress Tips & Tricks Newsletter](https://cypresstips.substack.com/)
- [my Cypress courses](https://cypress.tips/courses)
License: MIT - do anything with the code, but don't blame me if it does not work.
Support: if you find any problems with this module, email / tweet /
[open issue](https://github.com/bahmutov/cypress-plugin-config/issues) on Github
## MIT License
Copyright (c) 2022 Gleb Bahmutov <gleb.bahmutov@gmail.com>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.