1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
<!--
@license Apache-2.0
Copyright (c) 2022 The Stdlib Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
# Branches
This repository has the following branches:
- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place.
- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network).
- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers.
- **deno**: [Deno][deno-url] branch for use in Deno.
- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments.
The following diagram illustrates the relationships among the above branches:
```mermaid
graph TD;
A[stdlib]-->|generate standalone package|B;
B[main] -->|productionize| C[production];
C -->|bundle| D[esm];
C -->|bundle| E[deno];
C -->|bundle| F[umd];
click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/string"
click B href "https://github.com/stdlib-js/string/tree/main"
click C href "https://github.com/stdlib-js/string/tree/production"
click D href "https://github.com/stdlib-js/string/tree/esm"
click E href "https://github.com/stdlib-js/string/tree/deno"
click F href "https://github.com/stdlib-js/string/tree/umd"
```
[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/string
[production-url]: https://github.com/stdlib-js/string/tree/production
[deno-url]: https://github.com/stdlib-js/string/tree/deno
[umd-url]: https://github.com/stdlib-js/string/tree/umd
[esm-url]: https://github.com/stdlib-js/string/tree/esm
|