All front end utility methods live here
npm install @copart/front-end-utilsRepository containing javascript utility methods for string, date and regex based manipulation
1. Clone this repository and install its dependencies
``bash`
$ git clone https://github.com/copartit/front-end-utils
$ cd front-end-utils
$ yarn install && yarn typed
yarn typed searches the libdef repo and download all the libdefs that are relevant for project and install them.
2. Watch files and recompile whenever they change
`bash`
$ yarn start
yarn start builds the library, then keeps rebuilding it whenever the source files change.
3. Compile and bundle code
`bash`
$ yarn build
yarn build builds the library to dist, generating three major files:
- dist/frontendutils.cjs.js a CommonJS bundle, suitable for use in Node.js, that requires the external dependency. This corresponds to the "main" field in package.jsondist/frontendutils.esm.js
- an ES module bundle, suitable for use in other people's libraries and applications, that imports the external dependency. This corresponds to the "module" field in package.jsondist/frontendutils.umd.js
- a UMD build, suitable for use in any environment (including the browser, as a