https://github.com/salesforcecommercecloud/commerce-sdk-core
https://github.com/salesforcecommercecloud/commerce-sdk-core
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/salesforcecommercecloud/commerce-sdk-core
- Owner: SalesforceCommerceCloud
- License: bsd-3-clause
- Created: 2020-06-17T15:44:05.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2025-03-31T14:42:41.000Z (about 1 year ago)
- Last Synced: 2025-04-01T06:34:21.808Z (about 1 year ago)
- Language: TypeScript
- Size: 804 KB
- Stars: 11
- Watchers: 8
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# core
The Core package provides a variety of functions that make interacting with Salesforce Commerce APIs easy. The following are some of the Core package functions:
* Authentication - An easy way to authenticate with the APIs that require Account Manager authentication.
* HTTP operations - TypeScript functions for all the HTTP operations.
* Caching - Ability to specify whether or not the results of HTTP requests should be cached.
[commerce-sdk](https://www.npmjs.com/package/commerce-sdk) uses core to communicate with Salesforce Commerce APIs.
## Setup
To install dependencies and build core:
# To setup
npm install
# To build
npm run build
```
## Testing
To run tests:
```bash
npm run test
```
To print the detailed test results and the errors on the console:
```bash
npm run test:debug
```
## License Information
This package is licensed under BSD-3-Clause license. See the [license](./LICENSE.txt) for details.