Common patterns, functions, etc... used when building javascript applications
This package is installed via npm or yarn
# npm
npm install --save-dev andculturecode-javascript-core
# yarn
yarn add andculturecode-javascript-core --dev
From there you can import the variety of modules.
import {
CollectionUtils,
CoreUtils
} from "andculturecode-javascript-core";
You can also reference the global distribution package within a website which gives you access to the AndcultureCode
namespace. See the example below
<script src="https://unpkg.com/browse/andculturecode-javascript-core@[version-number]/dist/global/index.js"></script>
<script>
var myAuthObject = AndcultureCode.RouteUtils.queryStringToObject('#token=bada55cafe')
</script>
NOTE - This source code relies on several peer dependencies, most of which are not included in this bundled global distribution. You will likely want to reference these in your website prior to referencing the andculture-javascript-core
global package. See test-global-distribution.html for the full list of dependencies. Also note that peer dependencies are only required if your code will be executing code paths that utilize any of those peer dependencies.
Information on contributing to this repo is in the Contributing Guide