Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weffe/shopify-checkout-step-manager
Easily execute code during Shopify Checkout.
https://github.com/weffe/shopify-checkout-step-manager
Last synced: 18 days ago
JSON representation
Easily execute code during Shopify Checkout.
- Host: GitHub
- URL: https://github.com/weffe/shopify-checkout-step-manager
- Owner: Weffe
- License: mit
- Created: 2019-10-17T22:22:20.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:15:18.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T00:58:32.234Z (22 days ago)
- Language: TypeScript
- Homepage: https://weffe.github.io/shopify-checkout-step-manager
- Size: 983 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Shopify Checkout Step Manager
Easily execute code during Shopify Checkout.
## Getting Started
Let's get you all set up!
## Install
First install the package.
### Using npm
`npm i shopify-checkout-step-manager`
### Using yarn
`yarn add shopify-checkout-step-manager`
## Use in your project
Once installed, you can then import and start using it in your project:
```js
import { CheckoutStepManager } from 'shopify-checkout-step-manager';const csm = new CheckoutStepManager();
function runOnRepaint() {
console.log('There was a repaint!');
}const removeListener = csm.onAnyRepaint().execute(runOnRepaint);
// remove the repaint listener after 3 seconds
setTimeout(removeListener, 3000);
```## Documentation
[Visit the online docs here](https://weffe.github.io/shopify-checkout-step-manager)