diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 80f3fca..0000000 --- a/.editorconfig +++ /dev/null @@ -1,189 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 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. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Ignore generated lock files for GitHub Agentic Workflows: -[*.lock.yml] -charset = unset -end_of_line = unset -indent_style = unset -indent_size = unset -trim_trailing_whitespace = unset -insert_final_newline = unset - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 24b327f..0000000 --- a/.gitattributes +++ /dev/null @@ -1,68 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 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. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation - -.github/workflows/*.lock.yml linguist-generated=true merge=ours diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index c81d20c..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/string/base) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 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. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 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. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 8059c49..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 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. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/string/base) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 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. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index afc8eb6..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @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. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '41 5 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 83d50c4..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,821 +0,0 @@ -#/ -# @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. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send notification to Zulip if job fails: - - name: 'Send notification to Zulip in case of failure' - # Pin action to full length commit SHA - uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 - if: failure() - with: - api-key: ${{ secrets.ZULIP_API_KEY }} - email: 'github-actions-bot@stdlib.zulipchat.com' - organization-url: 'https://stdlib.zulipchat.com' - to: 'workflows-standalone' - type: 'stream' - topic: ${{ github.event.repository.name }} - content: | - :cross_mark: **${{ github.workflow }}** workflow failed - - **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}) - **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -216,7 +213,7 @@ str = ns.trim( str ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -281,123 +278,123 @@ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors]. -[@stdlib/string/base/altcase]: https://github.com/stdlib-js/string-base-altcase +[@stdlib/string/base/altcase]: https://github.com/stdlib-js/string-base-altcase/tree/esm -[@stdlib/string/base/atob]: https://github.com/stdlib-js/string-base-atob +[@stdlib/string/base/atob]: https://github.com/stdlib-js/string-base-atob/tree/esm -[@stdlib/string/base/base64-to-uint8array]: https://github.com/stdlib-js/string-base-base64-to-uint8array +[@stdlib/string/base/base64-to-uint8array]: https://github.com/stdlib-js/string-base-base64-to-uint8array/tree/esm -[@stdlib/string/base/camelcase]: https://github.com/stdlib-js/string-base-camelcase +[@stdlib/string/base/camelcase]: https://github.com/stdlib-js/string-base-camelcase/tree/esm -[@stdlib/string/base/capitalize]: https://github.com/stdlib-js/string-base-capitalize +[@stdlib/string/base/capitalize]: https://github.com/stdlib-js/string-base-capitalize/tree/esm -[@stdlib/string/base/code-point-at]: https://github.com/stdlib-js/string-base-code-point-at +[@stdlib/string/base/code-point-at]: https://github.com/stdlib-js/string-base-code-point-at/tree/esm -[@stdlib/string/base/constantcase]: https://github.com/stdlib-js/string-base-constantcase +[@stdlib/string/base/constantcase]: https://github.com/stdlib-js/string-base-constantcase/tree/esm -[@stdlib/string/base/distances]: https://github.com/stdlib-js/string-base-distances +[@stdlib/string/base/distances]: https://github.com/stdlib-js/string-base-distances/tree/esm -[@stdlib/string/base/dotcase]: https://github.com/stdlib-js/string-base-dotcase +[@stdlib/string/base/dotcase]: https://github.com/stdlib-js/string-base-dotcase/tree/esm -[@stdlib/string/base/ends-with]: https://github.com/stdlib-js/string-base-ends-with +[@stdlib/string/base/ends-with]: https://github.com/stdlib-js/string-base-ends-with/tree/esm -[@stdlib/string/base/first-code-point]: https://github.com/stdlib-js/string-base-first-code-point +[@stdlib/string/base/first-code-point]: https://github.com/stdlib-js/string-base-first-code-point/tree/esm -[@stdlib/string/base/first-grapheme-cluster]: https://github.com/stdlib-js/string-base-first-grapheme-cluster +[@stdlib/string/base/first-grapheme-cluster]: https://github.com/stdlib-js/string-base-first-grapheme-cluster/tree/esm -[@stdlib/string/base/first]: https://github.com/stdlib-js/string-base-first +[@stdlib/string/base/first]: https://github.com/stdlib-js/string-base-first/tree/esm -[@stdlib/string/base/for-each-code-point-right]: https://github.com/stdlib-js/string-base-for-each-code-point-right +[@stdlib/string/base/for-each-code-point-right]: https://github.com/stdlib-js/string-base-for-each-code-point-right/tree/esm -[@stdlib/string/base/for-each-code-point]: https://github.com/stdlib-js/string-base-for-each-code-point +[@stdlib/string/base/for-each-code-point]: https://github.com/stdlib-js/string-base-for-each-code-point/tree/esm -[@stdlib/string/base/for-each-grapheme-cluster]: https://github.com/stdlib-js/string-base-for-each-grapheme-cluster +[@stdlib/string/base/for-each-grapheme-cluster]: https://github.com/stdlib-js/string-base-for-each-grapheme-cluster/tree/esm -[@stdlib/string/base/for-each-right]: https://github.com/stdlib-js/string-base-for-each-right +[@stdlib/string/base/for-each-right]: https://github.com/stdlib-js/string-base-for-each-right/tree/esm -[@stdlib/string/base/for-each]: https://github.com/stdlib-js/string-base-for-each +[@stdlib/string/base/for-each]: https://github.com/stdlib-js/string-base-for-each/tree/esm -[@stdlib/string/base/format-interpolate]: https://github.com/stdlib-js/string-base-format-interpolate +[@stdlib/string/base/format-interpolate]: https://github.com/stdlib-js/string-base-format-interpolate/tree/esm -[@stdlib/string/base/format-tokenize]: https://github.com/stdlib-js/string-base-format-tokenize +[@stdlib/string/base/format-tokenize]: https://github.com/stdlib-js/string-base-format-tokenize/tree/esm -[@stdlib/string/base/headercase]: https://github.com/stdlib-js/string-base-headercase +[@stdlib/string/base/headercase]: https://github.com/stdlib-js/string-base-headercase/tree/esm -[@stdlib/string/base/invcase]: https://github.com/stdlib-js/string-base-invcase +[@stdlib/string/base/invcase]: https://github.com/stdlib-js/string-base-invcase/tree/esm -[@stdlib/string/base/kebabcase]: https://github.com/stdlib-js/string-base-kebabcase +[@stdlib/string/base/kebabcase]: https://github.com/stdlib-js/string-base-kebabcase/tree/esm -[@stdlib/string/base/last-code-point]: https://github.com/stdlib-js/string-base-last-code-point +[@stdlib/string/base/last-code-point]: https://github.com/stdlib-js/string-base-last-code-point/tree/esm -[@stdlib/string/base/last-grapheme-cluster]: https://github.com/stdlib-js/string-base-last-grapheme-cluster +[@stdlib/string/base/last-grapheme-cluster]: https://github.com/stdlib-js/string-base-last-grapheme-cluster/tree/esm -[@stdlib/string/base/last]: https://github.com/stdlib-js/string-base-last +[@stdlib/string/base/last]: https://github.com/stdlib-js/string-base-last/tree/esm -[@stdlib/string/base/left-pad]: https://github.com/stdlib-js/string-base-left-pad +[@stdlib/string/base/left-pad]: https://github.com/stdlib-js/string-base-left-pad/tree/esm -[@stdlib/string/base/left-trim]: https://github.com/stdlib-js/string-base-left-trim +[@stdlib/string/base/left-trim]: https://github.com/stdlib-js/string-base-left-trim/tree/esm -[@stdlib/string/base/lowercase]: https://github.com/stdlib-js/string-base-lowercase +[@stdlib/string/base/lowercase]: https://github.com/stdlib-js/string-base-lowercase/tree/esm -[@stdlib/string/base/pascalcase]: https://github.com/stdlib-js/string-base-pascalcase +[@stdlib/string/base/pascalcase]: https://github.com/stdlib-js/string-base-pascalcase/tree/esm -[@stdlib/string/base/percent-encode]: https://github.com/stdlib-js/string-base-percent-encode +[@stdlib/string/base/percent-encode]: https://github.com/stdlib-js/string-base-percent-encode/tree/esm -[@stdlib/string/base/remove-first-code-point]: https://github.com/stdlib-js/string-base-remove-first-code-point +[@stdlib/string/base/remove-first-code-point]: https://github.com/stdlib-js/string-base-remove-first-code-point/tree/esm -[@stdlib/string/base/remove-first-grapheme-cluster]: https://github.com/stdlib-js/string-base-remove-first-grapheme-cluster +[@stdlib/string/base/remove-first-grapheme-cluster]: https://github.com/stdlib-js/string-base-remove-first-grapheme-cluster/tree/esm -[@stdlib/string/base/remove-first]: https://github.com/stdlib-js/string-base-remove-first +[@stdlib/string/base/remove-first]: https://github.com/stdlib-js/string-base-remove-first/tree/esm -[@stdlib/string/base/remove-last-code-point]: https://github.com/stdlib-js/string-base-remove-last-code-point +[@stdlib/string/base/remove-last-code-point]: https://github.com/stdlib-js/string-base-remove-last-code-point/tree/esm -[@stdlib/string/base/remove-last-grapheme-cluster]: https://github.com/stdlib-js/string-base-remove-last-grapheme-cluster +[@stdlib/string/base/remove-last-grapheme-cluster]: https://github.com/stdlib-js/string-base-remove-last-grapheme-cluster/tree/esm -[@stdlib/string/base/remove-last]: https://github.com/stdlib-js/string-base-remove-last +[@stdlib/string/base/remove-last]: https://github.com/stdlib-js/string-base-remove-last/tree/esm -[@stdlib/string/base/repeat]: https://github.com/stdlib-js/string-base-repeat +[@stdlib/string/base/repeat]: https://github.com/stdlib-js/string-base-repeat/tree/esm -[@stdlib/string/base/replace-after-last]: https://github.com/stdlib-js/string-base-replace-after-last +[@stdlib/string/base/replace-after-last]: https://github.com/stdlib-js/string-base-replace-after-last/tree/esm -[@stdlib/string/base/replace-after]: https://github.com/stdlib-js/string-base-replace-after +[@stdlib/string/base/replace-after]: https://github.com/stdlib-js/string-base-replace-after/tree/esm -[@stdlib/string/base/replace-before-last]: https://github.com/stdlib-js/string-base-replace-before-last +[@stdlib/string/base/replace-before-last]: https://github.com/stdlib-js/string-base-replace-before-last/tree/esm -[@stdlib/string/base/replace-before]: https://github.com/stdlib-js/string-base-replace-before +[@stdlib/string/base/replace-before]: https://github.com/stdlib-js/string-base-replace-before/tree/esm -[@stdlib/string/base/replace]: https://github.com/stdlib-js/string-base-replace +[@stdlib/string/base/replace]: https://github.com/stdlib-js/string-base-replace/tree/esm -[@stdlib/string/base/reverse-code-points]: https://github.com/stdlib-js/string-base-reverse-code-points +[@stdlib/string/base/reverse-code-points]: https://github.com/stdlib-js/string-base-reverse-code-points/tree/esm -[@stdlib/string/base/reverse-grapheme-clusters]: https://github.com/stdlib-js/string-base-reverse-grapheme-clusters +[@stdlib/string/base/reverse-grapheme-clusters]: https://github.com/stdlib-js/string-base-reverse-grapheme-clusters/tree/esm -[@stdlib/string/base/reverse]: https://github.com/stdlib-js/string-base-reverse +[@stdlib/string/base/reverse]: https://github.com/stdlib-js/string-base-reverse/tree/esm -[@stdlib/string/base/right-pad]: https://github.com/stdlib-js/string-base-right-pad +[@stdlib/string/base/right-pad]: https://github.com/stdlib-js/string-base-right-pad/tree/esm -[@stdlib/string/base/right-trim]: https://github.com/stdlib-js/string-base-right-trim +[@stdlib/string/base/right-trim]: https://github.com/stdlib-js/string-base-right-trim/tree/esm -[@stdlib/string/base/slice-code-points]: https://github.com/stdlib-js/string-base-slice-code-points +[@stdlib/string/base/slice-code-points]: https://github.com/stdlib-js/string-base-slice-code-points/tree/esm -[@stdlib/string/base/slice-grapheme-clusters]: https://github.com/stdlib-js/string-base-slice-grapheme-clusters +[@stdlib/string/base/slice-grapheme-clusters]: https://github.com/stdlib-js/string-base-slice-grapheme-clusters/tree/esm -[@stdlib/string/base/slice]: https://github.com/stdlib-js/string-base-slice +[@stdlib/string/base/slice]: https://github.com/stdlib-js/string-base-slice/tree/esm -[@stdlib/string/base/snakecase]: https://github.com/stdlib-js/string-base-snakecase +[@stdlib/string/base/snakecase]: https://github.com/stdlib-js/string-base-snakecase/tree/esm -[@stdlib/string/base/startcase]: https://github.com/stdlib-js/string-base-startcase +[@stdlib/string/base/startcase]: https://github.com/stdlib-js/string-base-startcase/tree/esm -[@stdlib/string/base/starts-with]: https://github.com/stdlib-js/string-base-starts-with +[@stdlib/string/base/starts-with]: https://github.com/stdlib-js/string-base-starts-with/tree/esm -[@stdlib/string/base/stickycase]: https://github.com/stdlib-js/string-base-stickycase +[@stdlib/string/base/stickycase]: https://github.com/stdlib-js/string-base-stickycase/tree/esm -[@stdlib/string/base/trim]: https://github.com/stdlib-js/string-base-trim +[@stdlib/string/base/trim]: https://github.com/stdlib-js/string-base-trim/tree/esm -[@stdlib/string/base/truncate-middle]: https://github.com/stdlib-js/string-base-truncate-middle +[@stdlib/string/base/truncate-middle]: https://github.com/stdlib-js/string-base-truncate-middle/tree/esm -[@stdlib/string/base/uncapitalize]: https://github.com/stdlib-js/string-base-uncapitalize +[@stdlib/string/base/uncapitalize]: https://github.com/stdlib-js/string-base-uncapitalize/tree/esm -[@stdlib/string/base/uppercase]: https://github.com/stdlib-js/string-base-uppercase +[@stdlib/string/base/uppercase]: https://github.com/stdlib-js/string-base-uppercase/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index fced1fe..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# 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 (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -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/base" -%% click B href "https://github.com/stdlib-js/string-base/tree/main" -%% click C href "https://github.com/stdlib-js/string-base/tree/production" -%% click D href "https://github.com/stdlib-js/string-base/tree/esm" -%% click E href "https://github.com/stdlib-js/string-base/tree/deno" -%% click F href "https://github.com/stdlib-js/string-base/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/string/base -[production-url]: https://github.com/stdlib-js/string-base/tree/production -[deno-url]: https://github.com/stdlib-js/string-base/tree/deno -[deno-readme]: https://github.com/stdlib-js/string-base/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/string-base/tree/umd -[umd-readme]: https://github.com/stdlib-js/string-base/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/string-base/tree/esm -[esm-readme]: https://github.com/stdlib-js/string-base/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index a44b790..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var r=require('@stdlib/utils-define-read-only-property/dist'),e={};r(e,"altcase",require('@stdlib/string-base-altcase/dist'));r(e,"atob",require('@stdlib/string-base-atob/dist'));r(e,"base64ToUint8Array",require('@stdlib/string-base-base64-to-uint8array/dist'));r(e,"camelcase",require('@stdlib/string-base-camelcase/dist'));r(e,"capitalize",require('@stdlib/string-base-capitalize/dist'));r(e,"codePointAt",require('@stdlib/string-base-code-point-at/dist'));r(e,"constantcase",require('@stdlib/string-base-constantcase/dist'));r(e,"distances",require('@stdlib/string-base-distances/dist'));r(e,"dotcase",require('@stdlib/string-base-dotcase/dist'));r(e,"endsWith",require('@stdlib/string-base-ends-with/dist'));r(e,"first",require('@stdlib/string-base-first/dist'));r(e,"firstCodePoint",require('@stdlib/string-base-first-code-point/dist'));r(e,"firstGraphemeCluster",require('@stdlib/string-base-first-grapheme-cluster/dist'));r(e,"forEach",require('@stdlib/string-base-for-each/dist'));r(e,"forEachCodePoint",require('@stdlib/string-base-for-each-code-point/dist'));r(e,"forEachCodePointRight",require('@stdlib/string-base-for-each-code-point-right/dist'));r(e,"forEachGraphemeCluster",require('@stdlib/string-base-for-each-grapheme-cluster/dist'));r(e,"forEachRight",require('@stdlib/string-base-for-each-right/dist'));r(e,"formatInterpolate",require('@stdlib/string-base-format-interpolate/dist'));r(e,"formatTokenize",require('@stdlib/string-base-format-tokenize/dist'));r(e,"headercase",require('@stdlib/string-base-headercase/dist'));r(e,"invcase",require('@stdlib/string-base-invcase/dist'));r(e,"kebabcase",require('@stdlib/string-base-kebabcase/dist'));r(e,"last",require('@stdlib/string-base-last/dist'));r(e,"lastCodePoint",require('@stdlib/string-base-last-code-point/dist'));r(e,"lastGraphemeCluster",require('@stdlib/string-base-last-grapheme-cluster/dist'));r(e,"lpad",require('@stdlib/string-base-left-pad/dist'));r(e,"ltrim",require('@stdlib/string-base-left-trim/dist'));r(e,"lowercase",require('@stdlib/string-base-lowercase/dist'));r(e,"pascalcase",require('@stdlib/string-base-pascalcase/dist'));r(e,"percentEncode",require('@stdlib/string-base-percent-encode/dist'));r(e,"removeFirst",require('@stdlib/string-base-remove-first/dist'));r(e,"removeFirstCodePoint",require('@stdlib/string-base-remove-first-code-point/dist'));r(e,"removeFirstGraphemeCluster",require('@stdlib/string-base-remove-first-grapheme-cluster/dist'));r(e,"removeLast",require('@stdlib/string-base-remove-last/dist'));r(e,"removeLastCodePoint",require('@stdlib/string-base-remove-last-code-point/dist'));r(e,"removeLastGraphemeCluster",require('@stdlib/string-base-remove-last-grapheme-cluster/dist'));r(e,"repeat",require('@stdlib/string-base-repeat/dist'));r(e,"replace",require('@stdlib/string-base-replace/dist'));r(e,"replaceAfter",require('@stdlib/string-base-replace-after/dist'));r(e,"replaceAfterLast",require('@stdlib/string-base-replace-after-last/dist'));r(e,"replaceBefore",require('@stdlib/string-base-replace-before/dist'));r(e,"replaceBeforeLast",require('@stdlib/string-base-replace-before-last/dist'));r(e,"reverse",require('@stdlib/string-base-reverse/dist'));r(e,"reverseCodePoints",require('@stdlib/string-base-reverse-code-points/dist'));r(e,"reverseGraphemeClusters",require('@stdlib/string-base-reverse-grapheme-clusters/dist'));r(e,"rpad",require('@stdlib/string-base-right-pad/dist'));r(e,"rtrim",require('@stdlib/string-base-right-trim/dist'));r(e,"slice",require('@stdlib/string-base-slice/dist'));r(e,"sliceCodePoints",require('@stdlib/string-base-slice-code-points/dist'));r(e,"sliceGraphemeClusters",require('@stdlib/string-base-slice-grapheme-clusters/dist'));r(e,"snakecase",require('@stdlib/string-base-snakecase/dist'));r(e,"startcase",require('@stdlib/string-base-startcase/dist'));r(e,"startsWith",require('@stdlib/string-base-starts-with/dist'));r(e,"stickycase",require('@stdlib/string-base-stickycase/dist'));r(e,"trim",require('@stdlib/string-base-trim/dist'));r(e,"truncateMiddle",require('@stdlib/string-base-truncate-middle/dist'));r(e,"uncapitalize",require('@stdlib/string-base-uncapitalize/dist'));r(e,"uppercase",require('@stdlib/string-base-uppercase/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index dd64055..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2022 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/*\n* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils-define-read-only-property' );\n\n\n// MAIN //\n\n/**\n* Top-level namespace.\n*\n* @namespace ns\n*/\nvar ns = {};\n\n/**\n* @name altcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/altcase}\n*/\nsetReadOnly( ns, 'altcase', require( '@stdlib/string-base-altcase' ) );\n\n/**\n* @name atob\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/atob}\n*/\nsetReadOnly( ns, 'atob', require( '@stdlib/string-base-atob' ) );\n\n/**\n* @name base64ToUint8Array\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/base64-to-uint8array}\n*/\nsetReadOnly( ns, 'base64ToUint8Array', require( '@stdlib/string-base-base64-to-uint8array' ) );\n\n/**\n* @name camelcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/camelcase}\n*/\nsetReadOnly( ns, 'camelcase', require( '@stdlib/string-base-camelcase' ) );\n\n/**\n* @name capitalize\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/capitalize}\n*/\nsetReadOnly( ns, 'capitalize', require( '@stdlib/string-base-capitalize' ) );\n\n/**\n* @name codePointAt\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/code-point-at}\n*/\nsetReadOnly( ns, 'codePointAt', require( '@stdlib/string-base-code-point-at' ) );\n\n/**\n* @name constantcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/constantcase}\n*/\nsetReadOnly( ns, 'constantcase', require( '@stdlib/string-base-constantcase' ) );\n\n/**\n* @name distances\n* @memberof ns\n* @readonly\n* @type {Namespace}\n* @see {@link module:@stdlib/string/base/distances}\n*/\nsetReadOnly( ns, 'distances', require( '@stdlib/string-base-distances' ) );\n\n/**\n* @name dotcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/dotcase}\n*/\nsetReadOnly( ns, 'dotcase', require( '@stdlib/string-base-dotcase' ) );\n\n/**\n* @name endsWith\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/ends-with}\n*/\nsetReadOnly( ns, 'endsWith', require( '@stdlib/string-base-ends-with' ) );\n\n/**\n* @name first\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/first}\n*/\nsetReadOnly( ns, 'first', require( '@stdlib/string-base-first' ) );\n\n/**\n* @name firstCodePoint\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/first-code-point}\n*/\nsetReadOnly( ns, 'firstCodePoint', require( '@stdlib/string-base-first-code-point' ) );\n\n/**\n* @name firstGraphemeCluster\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/first-grapheme-cluster}\n*/\nsetReadOnly( ns, 'firstGraphemeCluster', require( '@stdlib/string-base-first-grapheme-cluster' ) );\n\n/**\n* @name forEach\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/for-each}\n*/\nsetReadOnly( ns, 'forEach', require( '@stdlib/string-base-for-each' ) );\n\n/**\n* @name forEachCodePoint\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/for-each-code-point}\n*/\nsetReadOnly( ns, 'forEachCodePoint', require( '@stdlib/string-base-for-each-code-point' ) );\n\n/**\n* @name forEachCodePointRight\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/for-each-code-point-right}\n*/\nsetReadOnly( ns, 'forEachCodePointRight', require( '@stdlib/string-base-for-each-code-point-right' ) );\n\n/**\n* @name forEachGraphemeCluster\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/for-each-grapheme-cluster}\n*/\nsetReadOnly( ns, 'forEachGraphemeCluster', require( '@stdlib/string-base-for-each-grapheme-cluster' ) );\n\n/**\n* @name forEachRight\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/for-each-right}\n*/\nsetReadOnly( ns, 'forEachRight', require( '@stdlib/string-base-for-each-right' ) );\n\n/**\n* @name formatInterpolate\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/format-interpolate}\n*/\nsetReadOnly( ns, 'formatInterpolate', require( '@stdlib/string-base-format-interpolate' ) );\n\n/**\n* @name formatTokenize\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/format-tokenize}\n*/\nsetReadOnly( ns, 'formatTokenize', require( '@stdlib/string-base-format-tokenize' ) );\n\n/**\n* @name headercase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/headercase}\n*/\nsetReadOnly( ns, 'headercase', require( '@stdlib/string-base-headercase' ) );\n\n/**\n* @name invcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/invcase}\n*/\nsetReadOnly( ns, 'invcase', require( '@stdlib/string-base-invcase' ) );\n\n/**\n* @name kebabcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/kebabcase}\n*/\nsetReadOnly( ns, 'kebabcase', require( '@stdlib/string-base-kebabcase' ) );\n\n/**\n* @name last\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/last}\n*/\nsetReadOnly( ns, 'last', require( '@stdlib/string-base-last' ) );\n\n/**\n* @name lastCodePoint\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/last-code-point}\n*/\nsetReadOnly( ns, 'lastCodePoint', require( '@stdlib/string-base-last-code-point' ) );\n\n/**\n* @name lastGraphemeCluster\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/last-grapheme-cluster}\n*/\nsetReadOnly( ns, 'lastGraphemeCluster', require( '@stdlib/string-base-last-grapheme-cluster' ) );\n\n/**\n* @name lpad\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/left-pad}\n*/\nsetReadOnly( ns, 'lpad', require( '@stdlib/string-base-left-pad' ) );\n\n/**\n* @name ltrim\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/left-trim}\n*/\nsetReadOnly( ns, 'ltrim', require( '@stdlib/string-base-left-trim' ) );\n\n/**\n* @name lowercase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/lowercase}\n*/\nsetReadOnly( ns, 'lowercase', require( '@stdlib/string-base-lowercase' ) );\n\n/**\n* @name pascalcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/pascalcase}\n*/\nsetReadOnly( ns, 'pascalcase', require( '@stdlib/string-base-pascalcase' ) );\n\n/**\n* @name percentEncode\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/percent-encode}\n*/\nsetReadOnly( ns, 'percentEncode', require( '@stdlib/string-base-percent-encode' ) );\n\n/**\n* @name removeFirst\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/remove-first}\n*/\nsetReadOnly( ns, 'removeFirst', require( '@stdlib/string-base-remove-first' ) );\n\n/**\n* @name removeFirstCodePoint\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/remove-first-code-point}\n*/\nsetReadOnly( ns, 'removeFirstCodePoint', require( '@stdlib/string-base-remove-first-code-point' ) );\n\n/**\n* @name removeFirstGraphemeCluster\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/remove-first-grapheme-cluster}\n*/\nsetReadOnly( ns, 'removeFirstGraphemeCluster', require( '@stdlib/string-base-remove-first-grapheme-cluster' ) );\n\n/**\n* @name removeLast\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/remove-last}\n*/\nsetReadOnly( ns, 'removeLast', require( '@stdlib/string-base-remove-last' ) );\n\n/**\n* @name removeLastCodePoint\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/remove-last-code-point}\n*/\nsetReadOnly( ns, 'removeLastCodePoint', require( '@stdlib/string-base-remove-last-code-point' ) );\n\n/**\n* @name removeLastGraphemeCluster\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/remove-last-grapheme-cluster}\n*/\nsetReadOnly( ns, 'removeLastGraphemeCluster', require( '@stdlib/string-base-remove-last-grapheme-cluster' ) );\n\n/**\n* @name repeat\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/repeat}\n*/\nsetReadOnly( ns, 'repeat', require( '@stdlib/string-base-repeat' ) );\n\n/**\n* @name replace\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/replace}\n*/\nsetReadOnly( ns, 'replace', require( '@stdlib/string-base-replace' ) );\n\n/**\n* @name replaceAfter\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/replace-after}\n*/\nsetReadOnly( ns, 'replaceAfter', require( '@stdlib/string-base-replace-after' ) );\n\n/**\n* @name replaceAfterLast\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/replace-after-last}\n*/\nsetReadOnly( ns, 'replaceAfterLast', require( '@stdlib/string-base-replace-after-last' ) );\n\n/**\n* @name replaceBefore\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/replace-before}\n*/\nsetReadOnly( ns, 'replaceBefore', require( '@stdlib/string-base-replace-before' ) );\n\n/**\n* @name replaceBeforeLast\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/replace-before-last}\n*/\nsetReadOnly( ns, 'replaceBeforeLast', require( '@stdlib/string-base-replace-before-last' ) );\n\n/**\n* @name reverse\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/reverse}\n*/\nsetReadOnly( ns, 'reverse', require( '@stdlib/string-base-reverse' ) );\n\n/**\n* @name reverseCodePoints\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/reverse-code-points}\n*/\nsetReadOnly( ns, 'reverseCodePoints', require( '@stdlib/string-base-reverse-code-points' ) );\n\n/**\n* @name reverseGraphemeClusters\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/reverse-grapheme-clusters}\n*/\nsetReadOnly( ns, 'reverseGraphemeClusters', require( '@stdlib/string-base-reverse-grapheme-clusters' ) );\n\n/**\n* @name rpad\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/right-pad}\n*/\nsetReadOnly( ns, 'rpad', require( '@stdlib/string-base-right-pad' ) );\n\n/**\n* @name rtrim\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/right-trim}\n*/\nsetReadOnly( ns, 'rtrim', require( '@stdlib/string-base-right-trim' ) );\n\n/**\n* @name slice\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/slice}\n*/\nsetReadOnly( ns, 'slice', require( '@stdlib/string-base-slice' ) );\n\n/**\n* @name sliceCodePoints\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/slice-code-points}\n*/\nsetReadOnly( ns, 'sliceCodePoints', require( '@stdlib/string-base-slice-code-points' ) );\n\n/**\n* @name sliceGraphemeClusters\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/slice-grapheme-clusters}\n*/\nsetReadOnly( ns, 'sliceGraphemeClusters', require( '@stdlib/string-base-slice-grapheme-clusters' ) );\n\n/**\n* @name snakecase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/snakecase}\n*/\nsetReadOnly( ns, 'snakecase', require( '@stdlib/string-base-snakecase' ) );\n\n/**\n* @name startcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/startcase}\n*/\nsetReadOnly( ns, 'startcase', require( '@stdlib/string-base-startcase' ) );\n\n/**\n* @name startsWith\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/starts-with}\n*/\nsetReadOnly( ns, 'startsWith', require( '@stdlib/string-base-starts-with' ) );\n\n/**\n* @name stickycase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/stickycase}\n*/\nsetReadOnly( ns, 'stickycase', require( '@stdlib/string-base-stickycase' ) );\n\n/**\n* @name trim\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/trim}\n*/\nsetReadOnly( ns, 'trim', require( '@stdlib/string-base-trim' ) );\n\n/**\n* @name truncateMiddle\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/truncate-middle}\n*/\nsetReadOnly( ns, 'truncateMiddle', require( '@stdlib/string-base-truncate-middle' ) );\n\n/**\n* @name uncapitalize\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/uncapitalize}\n*/\nsetReadOnly( ns, 'uncapitalize', require( '@stdlib/string-base-uncapitalize' ) );\n\n/**\n* @name uppercase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/uppercase}\n*/\nsetReadOnly( ns, 'uppercase', require( '@stdlib/string-base-uppercase' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,UAAW,QAAS,6BAA8B,CAAE,EASrED,EAAaC,EAAI,OAAQ,QAAS,0BAA2B,CAAE,EAS/DD,EAAaC,EAAI,qBAAsB,QAAS,0CAA2C,CAAE,EAS7FD,EAAaC,EAAI,YAAa,QAAS,+BAAgC,CAAE,EASzED,EAAaC,EAAI,aAAc,QAAS,gCAAiC,CAAE,EAS3ED,EAAaC,EAAI,cAAe,QAAS,mCAAoC,CAAE,EAS/ED,EAAaC,EAAI,eAAgB,QAAS,kCAAmC,CAAE,EAS/ED,EAAaC,EAAI,YAAa,QAAS,+BAAgC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,6BAA8B,CAAE,EASrED,EAAaC,EAAI,WAAY,QAAS,+BAAgC,CAAE,EASxED,EAAaC,EAAI,QAAS,QAAS,2BAA4B,CAAE,EASjED,EAAaC,EAAI,iBAAkB,QAAS,sCAAuC,CAAE,EASrFD,EAAaC,EAAI,uBAAwB,QAAS,4CAA6C,CAAE,EASjGD,EAAaC,EAAI,UAAW,QAAS,8BAA+B,CAAE,EAStED,EAAaC,EAAI,mBAAoB,QAAS,yCAA0C,CAAE,EAS1FD,EAAaC,EAAI,wBAAyB,QAAS,+CAAgD,CAAE,EASrGD,EAAaC,EAAI,yBAA0B,QAAS,+CAAgD,CAAE,EAStGD,EAAaC,EAAI,eAAgB,QAAS,oCAAqC,CAAE,EASjFD,EAAaC,EAAI,oBAAqB,QAAS,wCAAyC,CAAE,EAS1FD,EAAaC,EAAI,iBAAkB,QAAS,qCAAsC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,gCAAiC,CAAE,EAS3ED,EAAaC,EAAI,UAAW,QAAS,6BAA8B,CAAE,EASrED,EAAaC,EAAI,YAAa,QAAS,+BAAgC,CAAE,EASzED,EAAaC,EAAI,OAAQ,QAAS,0BAA2B,CAAE,EAS/DD,EAAaC,EAAI,gBAAiB,QAAS,qCAAsC,CAAE,EASnFD,EAAaC,EAAI,sBAAuB,QAAS,2CAA4C,CAAE,EAS/FD,EAAaC,EAAI,OAAQ,QAAS,8BAA+B,CAAE,EASnED,EAAaC,EAAI,QAAS,QAAS,+BAAgC,CAAE,EASrED,EAAaC,EAAI,YAAa,QAAS,+BAAgC,CAAE,EASzED,EAAaC,EAAI,aAAc,QAAS,gCAAiC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,oCAAqC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,kCAAmC,CAAE,EAS9ED,EAAaC,EAAI,uBAAwB,QAAS,6CAA8C,CAAE,EASlGD,EAAaC,EAAI,6BAA8B,QAAS,mDAAoD,CAAE,EAS9GD,EAAaC,EAAI,aAAc,QAAS,iCAAkC,CAAE,EAS5ED,EAAaC,EAAI,sBAAuB,QAAS,4CAA6C,CAAE,EAShGD,EAAaC,EAAI,4BAA6B,QAAS,kDAAmD,CAAE,EAS5GD,EAAaC,EAAI,SAAU,QAAS,4BAA6B,CAAE,EASnED,EAAaC,EAAI,UAAW,QAAS,6BAA8B,CAAE,EASrED,EAAaC,EAAI,eAAgB,QAAS,mCAAoC,CAAE,EAShFD,EAAaC,EAAI,mBAAoB,QAAS,wCAAyC,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,oCAAqC,CAAE,EASlFD,EAAaC,EAAI,oBAAqB,QAAS,yCAA0C,CAAE,EAS3FD,EAAaC,EAAI,UAAW,QAAS,6BAA8B,CAAE,EASrED,EAAaC,EAAI,oBAAqB,QAAS,yCAA0C,CAAE,EAS3FD,EAAaC,EAAI,0BAA2B,QAAS,+CAAgD,CAAE,EASvGD,EAAaC,EAAI,OAAQ,QAAS,+BAAgC,CAAE,EASpED,EAAaC,EAAI,QAAS,QAAS,gCAAiC,CAAE,EAStED,EAAaC,EAAI,QAAS,QAAS,2BAA4B,CAAE,EASjED,EAAaC,EAAI,kBAAmB,QAAS,uCAAwC,CAAE,EASvFD,EAAaC,EAAI,wBAAyB,QAAS,6CAA8C,CAAE,EASnGD,EAAaC,EAAI,YAAa,QAAS,+BAAgC,CAAE,EASzED,EAAaC,EAAI,YAAa,QAAS,+BAAgC,CAAE,EASzED,EAAaC,EAAI,aAAc,QAAS,iCAAkC,CAAE,EAS5ED,EAAaC,EAAI,aAAc,QAAS,gCAAiC,CAAE,EAS3ED,EAAaC,EAAI,OAAQ,QAAS,0BAA2B,CAAE,EAS/DD,EAAaC,EAAI,iBAAkB,QAAS,qCAAsC,CAAE,EASpFD,EAAaC,EAAI,eAAgB,QAAS,kCAAmC,CAAE,EAS/ED,EAAaC,EAAI,YAAa,QAAS,+BAAgC,CAAE,EAKzE,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index e344b79..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @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. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 28d27ed..0000000 --- a/examples/index.js +++ /dev/null @@ -1,54 +0,0 @@ -/** -* @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. -*/ - -'use strict'; - -var ns = require( './../lib' ); - -// Generate a Pascal case string... -var str = ns.pascalcase( 'beep boop' ); -console.log( str ); -// => 'BeepBoop' - -// Tokenize a string into an array of string parts and format identifier objects... -str = 'The %d %s foxes jumped over the %d %s dogs.'; -var tokens = ns.formatTokenize( str ); -console.log( tokens ); -// => [ 'The ', {...}, ' ', {...}, ' foxes jumped over the ', {...}, ' ', {...}, ' dogs.' ] - -// Generate a string from a token array by interpolating values... -str = ns.formatInterpolate( tokens, 3, 'quick', 4, 'lazy' ); -console.log( str ); -// => 'The 3 quick foxes jumped over the 4 lazy dogs.' - -// Test whether a string starts with the characters of another string... -str = 'Lorem ipsum dolor sit amet'; -var bool = ns.startsWith( str, 'Lorem' ); // eslint-disable-line no-restricted-syntax -console.log( bool ); -// => true - -// Test whether a string ends with the characters of another string... -bool = ns.endsWith( str, 'amet' ); // eslint-disable-line no-restricted-syntax -console.log( bool ); -// => true - -// Trim whitespace characters from the beginning and end of a string... -str = ' \t\n Lorem ipsum dolor sit amet \n\t '; -str = ns.trim( str ); // eslint-disable-line no-restricted-syntax -console.log( str ); -// => 'Lorem ipsum dolor sit amet' diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..ade2705 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-altcase@v0.2.3-esm/index.mjs";export{default as altcase}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-altcase@v0.2.3-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-atob@v0.1.1-esm/index.mjs";export{default as atob}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-atob@v0.1.1-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-base64-to-uint8array@v0.1.1-esm/index.mjs";export{default as base64ToUint8Array}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-base64-to-uint8array@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-camelcase@v0.2.3-esm/index.mjs";export{default as camelcase}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-camelcase@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-capitalize@v0.3.1-esm/index.mjs";export{default as capitalize}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-capitalize@v0.3.1-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-code-point-at@v0.2.3-esm/index.mjs";export{default as codePointAt}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-code-point-at@v0.2.3-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-constantcase@v0.2.3-esm/index.mjs";export{default as constantcase}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-constantcase@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-distances@v0.2.3-esm/index.mjs";export{default as distances}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-distances@v0.2.3-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-dotcase@v0.2.3-esm/index.mjs";export{default as dotcase}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-dotcase@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-ends-with@v0.2.3-esm/index.mjs";export{default as endsWith}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-ends-with@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-first@v0.2.3-esm/index.mjs";export{default as first}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-first@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-first-code-point@v0.2.3-esm/index.mjs";export{default as firstCodePoint}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-first-code-point@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-first-grapheme-cluster@v0.2.3-esm/index.mjs";export{default as firstGraphemeCluster}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-first-grapheme-cluster@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-for-each@v0.2.3-esm/index.mjs";export{default as forEach}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-for-each@v0.2.3-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-for-each-code-point@v0.2.3-esm/index.mjs";export{default as forEachCodePoint}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-for-each-code-point@v0.2.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-for-each-code-point-right@v0.0.3-esm/index.mjs";export{default as forEachCodePointRight}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-for-each-code-point-right@v0.0.3-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-for-each-grapheme-cluster@v0.2.3-esm/index.mjs";export{default as forEachGraphemeCluster}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-for-each-grapheme-cluster@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-for-each-right@v0.1.2-esm/index.mjs";export{default as forEachRight}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-for-each-right@v0.1.2-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-format-interpolate@v0.2.4-esm/index.mjs";export{default as formatInterpolate}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-format-interpolate@v0.2.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-format-tokenize@v0.2.4-esm/index.mjs";export{default as formatTokenize}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-format-tokenize@v0.2.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-headercase@v0.2.3-esm/index.mjs";export{default as headercase}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-headercase@v0.2.3-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-invcase@v0.2.3-esm/index.mjs";export{default as invcase}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-invcase@v0.2.3-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-kebabcase@v0.2.3-esm/index.mjs";export{default as kebabcase}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-kebabcase@v0.2.3-esm/index.mjs";import G from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-last@v0.1.2-esm/index.mjs";export{default as last}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-last@v0.1.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-last-code-point@v0.1.2-esm/index.mjs";export{default as lastCodePoint}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-last-code-point@v0.1.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-last-grapheme-cluster@v0.1.1-esm/index.mjs";export{default as lastGraphemeCluster}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-last-grapheme-cluster@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-left-pad@v0.2.3-esm/index.mjs";export{default as lpad}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-left-pad@v0.2.3-esm/index.mjs";import L from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-left-trim@v0.2.3-esm/index.mjs";export{default as ltrim}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-left-trim@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-lowercase@v0.4.1-esm/index.mjs";export{default as lowercase}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-lowercase@v0.4.1-esm/index.mjs";import A from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-pascalcase@v0.2.3-esm/index.mjs";export{default as pascalcase}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-pascalcase@v0.2.3-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-percent-encode@v0.2.3-esm/index.mjs";export{default as percentEncode}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-percent-encode@v0.2.3-esm/index.mjs";import B from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-remove-first@v0.2.3-esm/index.mjs";export{default as removeFirst}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-remove-first@v0.2.3-esm/index.mjs";import R from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-remove-first-code-point@v0.2.3-esm/index.mjs";export{default as removeFirstCodePoint}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-remove-first-code-point@v0.2.3-esm/index.mjs";import T from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-remove-first-grapheme-cluster@v0.2.3-esm/index.mjs";export{default as removeFirstGraphemeCluster}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-remove-first-grapheme-cluster@v0.2.3-esm/index.mjs";import W from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-remove-last@v0.2.3-esm/index.mjs";export{default as removeLast}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-remove-last@v0.2.3-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-remove-last-code-point@v0.2.3-esm/index.mjs";export{default as removeLastCodePoint}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-remove-last-code-point@v0.2.3-esm/index.mjs";import M from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-remove-last-grapheme-cluster@v0.2.3-esm/index.mjs";export{default as removeLastGraphemeCluster}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-remove-last-grapheme-cluster@v0.2.3-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-repeat@v0.2.3-esm/index.mjs";export{default as repeat}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-repeat@v0.2.3-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-replace@v0.2.3-esm/index.mjs";export{default as replace}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-replace@v0.2.3-esm/index.mjs";import D from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-replace-after@v0.1.2-esm/index.mjs";export{default as replaceAfter}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-replace-after@v0.1.2-esm/index.mjs";import H from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-replace-after-last@v0.1.2-esm/index.mjs";export{default as replaceAfterLast}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-replace-after-last@v0.1.2-esm/index.mjs";import J from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-replace-before@v0.3.1-esm/index.mjs";export{default as replaceBefore}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-replace-before@v0.3.1-esm/index.mjs";import K from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-replace-before-last@v0.1.2-esm/index.mjs";export{default as replaceBeforeLast}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-replace-before-last@v0.1.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-reverse@v0.2.3-esm/index.mjs";export{default as reverse}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-reverse@v0.2.3-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-reverse-code-points@v0.2.3-esm/index.mjs";export{default as reverseCodePoints}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-reverse-code-points@v0.2.3-esm/index.mjs";import Q from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-reverse-grapheme-clusters@v0.2.3-esm/index.mjs";export{default as reverseGraphemeClusters}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-reverse-grapheme-clusters@v0.2.3-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-right-pad@v0.2.3-esm/index.mjs";export{default as rpad}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-right-pad@v0.2.3-esm/index.mjs";import V from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-right-trim@v0.2.3-esm/index.mjs";export{default as rtrim}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-right-trim@v0.2.3-esm/index.mjs";import X from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-slice@v0.1.1-esm/index.mjs";export{default as slice}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-slice@v0.1.1-esm/index.mjs";import Y from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-slice-code-points@v0.1.1-esm/index.mjs";export{default as sliceCodePoints}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-slice-code-points@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-slice-grapheme-clusters@v0.1.1-esm/index.mjs";export{default as sliceGraphemeClusters}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-slice-grapheme-clusters@v0.1.1-esm/index.mjs";import $ from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-snakecase@v0.2.3-esm/index.mjs";export{default as snakecase}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-snakecase@v0.2.3-esm/index.mjs";import _ from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-startcase@v0.2.3-esm/index.mjs";export{default as startcase}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-startcase@v0.2.3-esm/index.mjs";import ss from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-starts-with@v0.2.3-esm/index.mjs";export{default as startsWith}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-starts-with@v0.2.3-esm/index.mjs";import es from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-stickycase@v0.1.1-esm/index.mjs";export{default as stickycase}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-stickycase@v0.1.1-esm/index.mjs";import ts from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-trim@v0.2.3-esm/index.mjs";export{default as trim}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-trim@v0.2.3-esm/index.mjs";import rs from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-truncate-middle@v0.2.3-esm/index.mjs";export{default as truncateMiddle}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-truncate-middle@v0.2.3-esm/index.mjs";import is from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-uncapitalize@v1.0.1-esm/index.mjs";export{default as uncapitalize}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-uncapitalize@v1.0.1-esm/index.mjs";import ds from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-uppercase@v1.0.1-esm/index.mjs";export{default as uppercase}from"https://cdn.jsdelivr.net/gh/stdlib-js/string-base-uppercase@v1.0.1-esm/index.mjs";var ns={};s(ns,"altcase",e),s(ns,"atob",t),s(ns,"base64ToUint8Array",r),s(ns,"camelcase",i),s(ns,"capitalize",d),s(ns,"codePointAt",n),s(ns,"constantcase",a),s(ns,"distances",m),s(ns,"dotcase",l),s(ns,"endsWith",o),s(ns,"first",j),s(ns,"firstCodePoint",p),s(ns,"firstGraphemeCluster",h),s(ns,"forEach",c),s(ns,"forEachCodePoint",v),s(ns,"forEachCodePointRight",g),s(ns,"forEachGraphemeCluster",b),s(ns,"forEachRight",f),s(ns,"formatInterpolate",x),s(ns,"formatTokenize",u),s(ns,"headercase",C),s(ns,"invcase",P),s(ns,"kebabcase",k),s(ns,"last",G),s(ns,"lastCodePoint",z),s(ns,"lastGraphemeCluster",E),s(ns,"lpad",y),s(ns,"ltrim",L),s(ns,"lowercase",w),s(ns,"pascalcase",A),s(ns,"percentEncode",F),s(ns,"removeFirst",B),s(ns,"removeFirstCodePoint",R),s(ns,"removeFirstGraphemeCluster",T),s(ns,"removeLast",W),s(ns,"removeLastCodePoint",I),s(ns,"removeLastGraphemeCluster",M),s(ns,"repeat",U),s(ns,"replace",q),s(ns,"replaceAfter",D),s(ns,"replaceAfterLast",H),s(ns,"replaceBefore",J),s(ns,"replaceBeforeLast",K),s(ns,"reverse",N),s(ns,"reverseCodePoints",O),s(ns,"reverseGraphemeClusters",Q),s(ns,"rpad",S),s(ns,"rtrim",V),s(ns,"slice",X),s(ns,"sliceCodePoints",Y),s(ns,"sliceGraphemeClusters",Z),s(ns,"snakecase",$),s(ns,"startcase",_),s(ns,"startsWith",ss),s(ns,"stickycase",es),s(ns,"trim",ts),s(ns,"truncateMiddle",rs),s(ns,"uncapitalize",is),s(ns,"uppercase",ds);export{ns as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..3afdf52 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"sourcesContent":["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2022 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/*\n* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.\n*/\n\n// MODULES //\n\nimport setReadOnly from '@stdlib/utils-define-read-only-property';\n\n\n// MAIN //\n\n/**\n* Top-level namespace.\n*\n* @namespace ns\n*/\nvar ns = {};\n\n/**\n* @name altcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/altcase}\n*/\nimport altcase from '@stdlib/string-base-altcase';\nsetReadOnly( ns, 'altcase', altcase );\n\n/**\n* @name atob\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/atob}\n*/\nimport atob from '@stdlib/string-base-atob';\nsetReadOnly( ns, 'atob', atob );\n\n/**\n* @name base64ToUint8Array\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/base64-to-uint8array}\n*/\nimport base64ToUint8Array from '@stdlib/string-base-base64-to-uint8array';\nsetReadOnly( ns, 'base64ToUint8Array', base64ToUint8Array );\n\n/**\n* @name camelcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/camelcase}\n*/\nimport camelcase from '@stdlib/string-base-camelcase';\nsetReadOnly( ns, 'camelcase', camelcase );\n\n/**\n* @name capitalize\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/capitalize}\n*/\nimport capitalize from '@stdlib/string-base-capitalize';\nsetReadOnly( ns, 'capitalize', capitalize );\n\n/**\n* @name codePointAt\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/code-point-at}\n*/\nimport codePointAt from '@stdlib/string-base-code-point-at';\nsetReadOnly( ns, 'codePointAt', codePointAt );\n\n/**\n* @name constantcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/constantcase}\n*/\nimport constantcase from '@stdlib/string-base-constantcase';\nsetReadOnly( ns, 'constantcase', constantcase );\n\n/**\n* @name distances\n* @memberof ns\n* @readonly\n* @type {Namespace}\n* @see {@link module:@stdlib/string/base/distances}\n*/\nimport distances from '@stdlib/string-base-distances';\nsetReadOnly( ns, 'distances', distances );\n\n/**\n* @name dotcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/dotcase}\n*/\nimport dotcase from '@stdlib/string-base-dotcase';\nsetReadOnly( ns, 'dotcase', dotcase );\n\n/**\n* @name endsWith\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/ends-with}\n*/\nimport endsWith from '@stdlib/string-base-ends-with';\nsetReadOnly( ns, 'endsWith', endsWith );\n\n/**\n* @name first\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/first}\n*/\nimport first from '@stdlib/string-base-first';\nsetReadOnly( ns, 'first', first );\n\n/**\n* @name firstCodePoint\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/first-code-point}\n*/\nimport firstCodePoint from '@stdlib/string-base-first-code-point';\nsetReadOnly( ns, 'firstCodePoint', firstCodePoint );\n\n/**\n* @name firstGraphemeCluster\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/first-grapheme-cluster}\n*/\nimport firstGraphemeCluster from '@stdlib/string-base-first-grapheme-cluster';\nsetReadOnly( ns, 'firstGraphemeCluster', firstGraphemeCluster );\n\n/**\n* @name forEach\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/for-each}\n*/\nimport forEach from '@stdlib/string-base-for-each';\nsetReadOnly( ns, 'forEach', forEach );\n\n/**\n* @name forEachCodePoint\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/for-each-code-point}\n*/\nimport forEachCodePoint from '@stdlib/string-base-for-each-code-point';\nsetReadOnly( ns, 'forEachCodePoint', forEachCodePoint );\n\n/**\n* @name forEachCodePointRight\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/for-each-code-point-right}\n*/\nimport forEachCodePointRight from '@stdlib/string-base-for-each-code-point-right';\nsetReadOnly( ns, 'forEachCodePointRight', forEachCodePointRight );\n\n/**\n* @name forEachGraphemeCluster\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/for-each-grapheme-cluster}\n*/\nimport forEachGraphemeCluster from '@stdlib/string-base-for-each-grapheme-cluster';\nsetReadOnly( ns, 'forEachGraphemeCluster', forEachGraphemeCluster );\n\n/**\n* @name forEachRight\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/for-each-right}\n*/\nimport forEachRight from '@stdlib/string-base-for-each-right';\nsetReadOnly( ns, 'forEachRight', forEachRight );\n\n/**\n* @name formatInterpolate\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/format-interpolate}\n*/\nimport formatInterpolate from '@stdlib/string-base-format-interpolate';\nsetReadOnly( ns, 'formatInterpolate', formatInterpolate );\n\n/**\n* @name formatTokenize\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/format-tokenize}\n*/\nimport formatTokenize from '@stdlib/string-base-format-tokenize';\nsetReadOnly( ns, 'formatTokenize', formatTokenize );\n\n/**\n* @name headercase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/headercase}\n*/\nimport headercase from '@stdlib/string-base-headercase';\nsetReadOnly( ns, 'headercase', headercase );\n\n/**\n* @name invcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/invcase}\n*/\nimport invcase from '@stdlib/string-base-invcase';\nsetReadOnly( ns, 'invcase', invcase );\n\n/**\n* @name kebabcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/kebabcase}\n*/\nimport kebabcase from '@stdlib/string-base-kebabcase';\nsetReadOnly( ns, 'kebabcase', kebabcase );\n\n/**\n* @name last\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/last}\n*/\nimport last from '@stdlib/string-base-last';\nsetReadOnly( ns, 'last', last );\n\n/**\n* @name lastCodePoint\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/last-code-point}\n*/\nimport lastCodePoint from '@stdlib/string-base-last-code-point';\nsetReadOnly( ns, 'lastCodePoint', lastCodePoint );\n\n/**\n* @name lastGraphemeCluster\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/last-grapheme-cluster}\n*/\nimport lastGraphemeCluster from '@stdlib/string-base-last-grapheme-cluster';\nsetReadOnly( ns, 'lastGraphemeCluster', lastGraphemeCluster );\n\n/**\n* @name lpad\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/left-pad}\n*/\nimport lpad from '@stdlib/string-base-left-pad';\nsetReadOnly( ns, 'lpad', lpad );\n\n/**\n* @name ltrim\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/left-trim}\n*/\nimport ltrim from '@stdlib/string-base-left-trim';\nsetReadOnly( ns, 'ltrim', ltrim );\n\n/**\n* @name lowercase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/lowercase}\n*/\nimport lowercase from '@stdlib/string-base-lowercase';\nsetReadOnly( ns, 'lowercase', lowercase );\n\n/**\n* @name pascalcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/pascalcase}\n*/\nimport pascalcase from '@stdlib/string-base-pascalcase';\nsetReadOnly( ns, 'pascalcase', pascalcase );\n\n/**\n* @name percentEncode\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/percent-encode}\n*/\nimport percentEncode from '@stdlib/string-base-percent-encode';\nsetReadOnly( ns, 'percentEncode', percentEncode );\n\n/**\n* @name removeFirst\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/remove-first}\n*/\nimport removeFirst from '@stdlib/string-base-remove-first';\nsetReadOnly( ns, 'removeFirst', removeFirst );\n\n/**\n* @name removeFirstCodePoint\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/remove-first-code-point}\n*/\nimport removeFirstCodePoint from '@stdlib/string-base-remove-first-code-point';\nsetReadOnly( ns, 'removeFirstCodePoint', removeFirstCodePoint );\n\n/**\n* @name removeFirstGraphemeCluster\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/remove-first-grapheme-cluster}\n*/\nimport removeFirstGraphemeCluster from '@stdlib/string-base-remove-first-grapheme-cluster';\nsetReadOnly( ns, 'removeFirstGraphemeCluster', removeFirstGraphemeCluster );\n\n/**\n* @name removeLast\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/remove-last}\n*/\nimport removeLast from '@stdlib/string-base-remove-last';\nsetReadOnly( ns, 'removeLast', removeLast );\n\n/**\n* @name removeLastCodePoint\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/remove-last-code-point}\n*/\nimport removeLastCodePoint from '@stdlib/string-base-remove-last-code-point';\nsetReadOnly( ns, 'removeLastCodePoint', removeLastCodePoint );\n\n/**\n* @name removeLastGraphemeCluster\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/remove-last-grapheme-cluster}\n*/\nimport removeLastGraphemeCluster from '@stdlib/string-base-remove-last-grapheme-cluster';\nsetReadOnly( ns, 'removeLastGraphemeCluster', removeLastGraphemeCluster );\n\n/**\n* @name repeat\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/repeat}\n*/\nimport repeat from '@stdlib/string-base-repeat';\nsetReadOnly( ns, 'repeat', repeat );\n\n/**\n* @name replace\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/replace}\n*/\nimport replace from '@stdlib/string-base-replace';\nsetReadOnly( ns, 'replace', replace );\n\n/**\n* @name replaceAfter\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/replace-after}\n*/\nimport replaceAfter from '@stdlib/string-base-replace-after';\nsetReadOnly( ns, 'replaceAfter', replaceAfter );\n\n/**\n* @name replaceAfterLast\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/replace-after-last}\n*/\nimport replaceAfterLast from '@stdlib/string-base-replace-after-last';\nsetReadOnly( ns, 'replaceAfterLast', replaceAfterLast );\n\n/**\n* @name replaceBefore\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/replace-before}\n*/\nimport replaceBefore from '@stdlib/string-base-replace-before';\nsetReadOnly( ns, 'replaceBefore', replaceBefore );\n\n/**\n* @name replaceBeforeLast\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/replace-before-last}\n*/\nimport replaceBeforeLast from '@stdlib/string-base-replace-before-last';\nsetReadOnly( ns, 'replaceBeforeLast', replaceBeforeLast );\n\n/**\n* @name reverse\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/reverse}\n*/\nimport reverse from '@stdlib/string-base-reverse';\nsetReadOnly( ns, 'reverse', reverse );\n\n/**\n* @name reverseCodePoints\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/reverse-code-points}\n*/\nimport reverseCodePoints from '@stdlib/string-base-reverse-code-points';\nsetReadOnly( ns, 'reverseCodePoints', reverseCodePoints );\n\n/**\n* @name reverseGraphemeClusters\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/reverse-grapheme-clusters}\n*/\nimport reverseGraphemeClusters from '@stdlib/string-base-reverse-grapheme-clusters';\nsetReadOnly( ns, 'reverseGraphemeClusters', reverseGraphemeClusters );\n\n/**\n* @name rpad\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/right-pad}\n*/\nimport rpad from '@stdlib/string-base-right-pad';\nsetReadOnly( ns, 'rpad', rpad );\n\n/**\n* @name rtrim\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/right-trim}\n*/\nimport rtrim from '@stdlib/string-base-right-trim';\nsetReadOnly( ns, 'rtrim', rtrim );\n\n/**\n* @name slice\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/slice}\n*/\nimport slice from '@stdlib/string-base-slice';\nsetReadOnly( ns, 'slice', slice );\n\n/**\n* @name sliceCodePoints\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/slice-code-points}\n*/\nimport sliceCodePoints from '@stdlib/string-base-slice-code-points';\nsetReadOnly( ns, 'sliceCodePoints', sliceCodePoints );\n\n/**\n* @name sliceGraphemeClusters\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/slice-grapheme-clusters}\n*/\nimport sliceGraphemeClusters from '@stdlib/string-base-slice-grapheme-clusters';\nsetReadOnly( ns, 'sliceGraphemeClusters', sliceGraphemeClusters );\n\n/**\n* @name snakecase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/snakecase}\n*/\nimport snakecase from '@stdlib/string-base-snakecase';\nsetReadOnly( ns, 'snakecase', snakecase );\n\n/**\n* @name startcase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/startcase}\n*/\nimport startcase from '@stdlib/string-base-startcase';\nsetReadOnly( ns, 'startcase', startcase );\n\n/**\n* @name startsWith\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/starts-with}\n*/\nimport startsWith from '@stdlib/string-base-starts-with';\nsetReadOnly( ns, 'startsWith', startsWith );\n\n/**\n* @name stickycase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/stickycase}\n*/\nimport stickycase from '@stdlib/string-base-stickycase';\nsetReadOnly( ns, 'stickycase', stickycase );\n\n/**\n* @name trim\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/trim}\n*/\nimport trim from '@stdlib/string-base-trim';\nsetReadOnly( ns, 'trim', trim );\n\n/**\n* @name truncateMiddle\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/truncate-middle}\n*/\nimport truncateMiddle from '@stdlib/string-base-truncate-middle';\nsetReadOnly( ns, 'truncateMiddle', truncateMiddle );\n\n/**\n* @name uncapitalize\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/uncapitalize}\n*/\nimport uncapitalize from '@stdlib/string-base-uncapitalize';\nsetReadOnly( ns, 'uncapitalize', uncapitalize );\n\n/**\n* @name uppercase\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/string/base/uppercase}\n*/\nimport uppercase from '@stdlib/string-base-uppercase';\nsetReadOnly( ns, 'uppercase', uppercase );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","altcase","atob","base64ToUint8Array","camelcase","capitalize","codePointAt","constantcase","distances","dotcase","endsWith","first","firstCodePoint","firstGraphemeCluster","forEach","forEachCodePoint","forEachCodePointRight","forEachGraphemeCluster","forEachRight","formatInterpolate","formatTokenize","headercase","invcase","kebabcase","last","lastCodePoint","lastGraphemeCluster","lpad","ltrim","lowercase","pascalcase","percentEncode","removeFirst","removeFirstCodePoint","removeFirstGraphemeCluster","removeLast","removeLastCodePoint","removeLastGraphemeCluster","repeat","replace","replaceAfter","replaceAfterLast","replaceBefore","replaceBeforeLast","reverse","reverseCodePoints","reverseGraphemeClusters","rpad","rtrim","slice","sliceCodePoints","sliceGraphemeClusters","snakecase","startcase","startsWith","stickycase","trim","truncateMiddle","uncapitalize","uppercase"],"mappings":";;46ZAoCA,IAAAA,GAAA,CAAA,EAUAC,EAAAD,GAAA,UAAAE,GAUAD,EAAAD,GAAA,OAAAG,GAUAF,EAAAD,GAAA,qBAAAI,GAUAH,EAAAD,GAAA,YAAAK,GAUAJ,EAAAD,GAAA,aAAAM,GAUAL,EAAAD,GAAA,cAAAO,GAUAN,EAAAD,GAAA,eAAAQ,GAUAP,EAAAD,GAAA,YAAAS,GAUAR,EAAAD,GAAA,UAAAU,GAUAT,EAAAD,GAAA,WAAAW,GAUAV,EAAAD,GAAA,QAAAY,GAUAX,EAAAD,GAAA,iBAAAa,GAUAZ,EAAAD,GAAA,uBAAAc,GAUAb,EAAAD,GAAA,UAAAe,GAUAd,EAAAD,GAAA,mBAAAgB,GAUAf,EAAAD,GAAA,wBAAAiB,GAUAhB,EAAAD,GAAA,yBAAAkB,GAUAjB,EAAAD,GAAA,eAAAmB,GAUAlB,EAAAD,GAAA,oBAAAoB,GAUAnB,EAAAD,GAAA,iBAAAqB,GAUApB,EAAAD,GAAA,aAAAsB,GAUArB,EAAAD,GAAA,UAAAuB,GAUAtB,EAAAD,GAAA,YAAAwB,GAUAvB,EAAAD,GAAA,OAAAyB,GAUAxB,EAAAD,GAAA,gBAAA0B,GAUAzB,EAAAD,GAAA,sBAAA2B,GAUA1B,EAAAD,GAAA,OAAA4B,GAUA3B,EAAAD,GAAA,QAAA6B,GAUA5B,EAAAD,GAAA,YAAA8B,GAUA7B,EAAAD,GAAA,aAAA+B,GAUA9B,EAAAD,GAAA,gBAAAgC,GAUA/B,EAAAD,GAAA,cAAAiC,GAUAhC,EAAAD,GAAA,uBAAAkC,GAUAjC,EAAAD,GAAA,6BAAAmC,GAUAlC,EAAAD,GAAA,aAAAoC,GAUAnC,EAAAD,GAAA,sBAAAqC,GAUApC,EAAAD,GAAA,4BAAAsC,GAUArC,EAAAD,GAAA,SAAAuC,GAUAtC,EAAAD,GAAA,UAAAwC,GAUAvC,EAAAD,GAAA,eAAAyC,GAUAxC,EAAAD,GAAA,mBAAA0C,GAUAzC,EAAAD,GAAA,gBAAA2C,GAUA1C,EAAAD,GAAA,oBAAA4C,GAUA3C,EAAAD,GAAA,UAAA6C,GAUA5C,EAAAD,GAAA,oBAAA8C,GAUA7C,EAAAD,GAAA,0BAAA+C,GAUA9C,EAAAD,GAAA,OAAAgD,GAUA/C,EAAAD,GAAA,QAAAiD,GAUAhD,EAAAD,GAAA,QAAAkD,GAUAjD,EAAAD,GAAA,kBAAAmD,GAUAlD,EAAAD,GAAA,wBAAAoD,GAUAnD,EAAAD,GAAA,YAAAqD,GAUApD,EAAAD,GAAA,YAAAsD,GAUArD,EAAAD,GAAA,aAAAuD,IAUAtD,EAAAD,GAAA,aAAAwD,IAUAvD,EAAAD,GAAA,OAAAyD,IAUAxD,EAAAD,GAAA,iBAAA0D,IAUAzD,EAAAD,GAAA,eAAA2D,IAUA1D,EAAAD,GAAA,YAAA4D"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index f6ade6f..0000000 --- a/lib/index.js +++ /dev/null @@ -1,573 +0,0 @@ -/** -* @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. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name altcase -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/altcase} -*/ -setReadOnly( ns, 'altcase', require( '@stdlib/string-base-altcase' ) ); - -/** -* @name atob -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/atob} -*/ -setReadOnly( ns, 'atob', require( '@stdlib/string-base-atob' ) ); - -/** -* @name base64ToUint8Array -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/base64-to-uint8array} -*/ -setReadOnly( ns, 'base64ToUint8Array', require( '@stdlib/string-base-base64-to-uint8array' ) ); - -/** -* @name camelcase -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/camelcase} -*/ -setReadOnly( ns, 'camelcase', require( '@stdlib/string-base-camelcase' ) ); - -/** -* @name capitalize -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/capitalize} -*/ -setReadOnly( ns, 'capitalize', require( '@stdlib/string-base-capitalize' ) ); - -/** -* @name codePointAt -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/code-point-at} -*/ -setReadOnly( ns, 'codePointAt', require( '@stdlib/string-base-code-point-at' ) ); - -/** -* @name constantcase -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/constantcase} -*/ -setReadOnly( ns, 'constantcase', require( '@stdlib/string-base-constantcase' ) ); - -/** -* @name distances -* @memberof ns -* @readonly -* @type {Namespace} -* @see {@link module:@stdlib/string/base/distances} -*/ -setReadOnly( ns, 'distances', require( '@stdlib/string-base-distances' ) ); - -/** -* @name dotcase -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/dotcase} -*/ -setReadOnly( ns, 'dotcase', require( '@stdlib/string-base-dotcase' ) ); - -/** -* @name endsWith -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/ends-with} -*/ -setReadOnly( ns, 'endsWith', require( '@stdlib/string-base-ends-with' ) ); - -/** -* @name first -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/first} -*/ -setReadOnly( ns, 'first', require( '@stdlib/string-base-first' ) ); - -/** -* @name firstCodePoint -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/first-code-point} -*/ -setReadOnly( ns, 'firstCodePoint', require( '@stdlib/string-base-first-code-point' ) ); - -/** -* @name firstGraphemeCluster -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/first-grapheme-cluster} -*/ -setReadOnly( ns, 'firstGraphemeCluster', require( '@stdlib/string-base-first-grapheme-cluster' ) ); - -/** -* @name forEach -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/for-each} -*/ -setReadOnly( ns, 'forEach', require( '@stdlib/string-base-for-each' ) ); - -/** -* @name forEachCodePoint -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/for-each-code-point} -*/ -setReadOnly( ns, 'forEachCodePoint', require( '@stdlib/string-base-for-each-code-point' ) ); - -/** -* @name forEachCodePointRight -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/for-each-code-point-right} -*/ -setReadOnly( ns, 'forEachCodePointRight', require( '@stdlib/string-base-for-each-code-point-right' ) ); - -/** -* @name forEachGraphemeCluster -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/for-each-grapheme-cluster} -*/ -setReadOnly( ns, 'forEachGraphemeCluster', require( '@stdlib/string-base-for-each-grapheme-cluster' ) ); - -/** -* @name forEachRight -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/for-each-right} -*/ -setReadOnly( ns, 'forEachRight', require( '@stdlib/string-base-for-each-right' ) ); - -/** -* @name formatInterpolate -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/format-interpolate} -*/ -setReadOnly( ns, 'formatInterpolate', require( '@stdlib/string-base-format-interpolate' ) ); - -/** -* @name formatTokenize -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/format-tokenize} -*/ -setReadOnly( ns, 'formatTokenize', require( '@stdlib/string-base-format-tokenize' ) ); - -/** -* @name headercase -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/headercase} -*/ -setReadOnly( ns, 'headercase', require( '@stdlib/string-base-headercase' ) ); - -/** -* @name invcase -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/invcase} -*/ -setReadOnly( ns, 'invcase', require( '@stdlib/string-base-invcase' ) ); - -/** -* @name kebabcase -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/kebabcase} -*/ -setReadOnly( ns, 'kebabcase', require( '@stdlib/string-base-kebabcase' ) ); - -/** -* @name last -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/last} -*/ -setReadOnly( ns, 'last', require( '@stdlib/string-base-last' ) ); - -/** -* @name lastCodePoint -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/last-code-point} -*/ -setReadOnly( ns, 'lastCodePoint', require( '@stdlib/string-base-last-code-point' ) ); - -/** -* @name lastGraphemeCluster -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/last-grapheme-cluster} -*/ -setReadOnly( ns, 'lastGraphemeCluster', require( '@stdlib/string-base-last-grapheme-cluster' ) ); - -/** -* @name lpad -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/left-pad} -*/ -setReadOnly( ns, 'lpad', require( '@stdlib/string-base-left-pad' ) ); - -/** -* @name ltrim -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/left-trim} -*/ -setReadOnly( ns, 'ltrim', require( '@stdlib/string-base-left-trim' ) ); - -/** -* @name lowercase -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/lowercase} -*/ -setReadOnly( ns, 'lowercase', require( '@stdlib/string-base-lowercase' ) ); - -/** -* @name pascalcase -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/pascalcase} -*/ -setReadOnly( ns, 'pascalcase', require( '@stdlib/string-base-pascalcase' ) ); - -/** -* @name percentEncode -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/percent-encode} -*/ -setReadOnly( ns, 'percentEncode', require( '@stdlib/string-base-percent-encode' ) ); - -/** -* @name removeFirst -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/remove-first} -*/ -setReadOnly( ns, 'removeFirst', require( '@stdlib/string-base-remove-first' ) ); - -/** -* @name removeFirstCodePoint -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/remove-first-code-point} -*/ -setReadOnly( ns, 'removeFirstCodePoint', require( '@stdlib/string-base-remove-first-code-point' ) ); - -/** -* @name removeFirstGraphemeCluster -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/remove-first-grapheme-cluster} -*/ -setReadOnly( ns, 'removeFirstGraphemeCluster', require( '@stdlib/string-base-remove-first-grapheme-cluster' ) ); - -/** -* @name removeLast -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/remove-last} -*/ -setReadOnly( ns, 'removeLast', require( '@stdlib/string-base-remove-last' ) ); - -/** -* @name removeLastCodePoint -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/remove-last-code-point} -*/ -setReadOnly( ns, 'removeLastCodePoint', require( '@stdlib/string-base-remove-last-code-point' ) ); - -/** -* @name removeLastGraphemeCluster -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/remove-last-grapheme-cluster} -*/ -setReadOnly( ns, 'removeLastGraphemeCluster', require( '@stdlib/string-base-remove-last-grapheme-cluster' ) ); - -/** -* @name repeat -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/repeat} -*/ -setReadOnly( ns, 'repeat', require( '@stdlib/string-base-repeat' ) ); - -/** -* @name replace -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/replace} -*/ -setReadOnly( ns, 'replace', require( '@stdlib/string-base-replace' ) ); - -/** -* @name replaceAfter -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/replace-after} -*/ -setReadOnly( ns, 'replaceAfter', require( '@stdlib/string-base-replace-after' ) ); - -/** -* @name replaceAfterLast -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/replace-after-last} -*/ -setReadOnly( ns, 'replaceAfterLast', require( '@stdlib/string-base-replace-after-last' ) ); - -/** -* @name replaceBefore -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/replace-before} -*/ -setReadOnly( ns, 'replaceBefore', require( '@stdlib/string-base-replace-before' ) ); - -/** -* @name replaceBeforeLast -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/replace-before-last} -*/ -setReadOnly( ns, 'replaceBeforeLast', require( '@stdlib/string-base-replace-before-last' ) ); - -/** -* @name reverse -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/reverse} -*/ -setReadOnly( ns, 'reverse', require( '@stdlib/string-base-reverse' ) ); - -/** -* @name reverseCodePoints -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/reverse-code-points} -*/ -setReadOnly( ns, 'reverseCodePoints', require( '@stdlib/string-base-reverse-code-points' ) ); - -/** -* @name reverseGraphemeClusters -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/reverse-grapheme-clusters} -*/ -setReadOnly( ns, 'reverseGraphemeClusters', require( '@stdlib/string-base-reverse-grapheme-clusters' ) ); - -/** -* @name rpad -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/right-pad} -*/ -setReadOnly( ns, 'rpad', require( '@stdlib/string-base-right-pad' ) ); - -/** -* @name rtrim -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/right-trim} -*/ -setReadOnly( ns, 'rtrim', require( '@stdlib/string-base-right-trim' ) ); - -/** -* @name slice -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/slice} -*/ -setReadOnly( ns, 'slice', require( '@stdlib/string-base-slice' ) ); - -/** -* @name sliceCodePoints -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/slice-code-points} -*/ -setReadOnly( ns, 'sliceCodePoints', require( '@stdlib/string-base-slice-code-points' ) ); - -/** -* @name sliceGraphemeClusters -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/slice-grapheme-clusters} -*/ -setReadOnly( ns, 'sliceGraphemeClusters', require( '@stdlib/string-base-slice-grapheme-clusters' ) ); - -/** -* @name snakecase -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/snakecase} -*/ -setReadOnly( ns, 'snakecase', require( '@stdlib/string-base-snakecase' ) ); - -/** -* @name startcase -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/startcase} -*/ -setReadOnly( ns, 'startcase', require( '@stdlib/string-base-startcase' ) ); - -/** -* @name startsWith -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/starts-with} -*/ -setReadOnly( ns, 'startsWith', require( '@stdlib/string-base-starts-with' ) ); - -/** -* @name stickycase -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/stickycase} -*/ -setReadOnly( ns, 'stickycase', require( '@stdlib/string-base-stickycase' ) ); - -/** -* @name trim -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/trim} -*/ -setReadOnly( ns, 'trim', require( '@stdlib/string-base-trim' ) ); - -/** -* @name truncateMiddle -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/truncate-middle} -*/ -setReadOnly( ns, 'truncateMiddle', require( '@stdlib/string-base-truncate-middle' ) ); - -/** -* @name uncapitalize -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/uncapitalize} -*/ -setReadOnly( ns, 'uncapitalize', require( '@stdlib/string-base-uncapitalize' ) ); - -/** -* @name uppercase -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/string/base/uppercase} -*/ -setReadOnly( ns, 'uppercase', require( '@stdlib/string-base-uppercase' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 0eb273f..a2163db 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.3.1", "description": "Base (i.e., lower-level) string functions.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,130 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/string-base-altcase": "^0.2.3", - "@stdlib/string-base-atob": "^0.1.1", - "@stdlib/string-base-base64-to-uint8array": "^0.1.1", - "@stdlib/string-base-camelcase": "^0.2.3", - "@stdlib/string-base-capitalize": "^0.3.1", - "@stdlib/string-base-code-point-at": "^0.2.3", - "@stdlib/string-base-constantcase": "^0.2.3", - "@stdlib/string-base-distances": "^0.2.3", - "@stdlib/string-base-dotcase": "^0.2.3", - "@stdlib/string-base-ends-with": "^0.2.3", - "@stdlib/string-base-first": "^0.2.3", - "@stdlib/string-base-first-code-point": "^0.2.3", - "@stdlib/string-base-first-grapheme-cluster": "^0.2.3", - "@stdlib/string-base-for-each": "^0.2.3", - "@stdlib/string-base-for-each-code-point": "^0.2.3", - "@stdlib/string-base-for-each-code-point-right": "^0.0.3", - "@stdlib/string-base-for-each-grapheme-cluster": "^0.2.3", - "@stdlib/string-base-for-each-right": "^0.1.2", - "@stdlib/string-base-format-interpolate": "^0.2.4", - "@stdlib/string-base-format-tokenize": "^0.2.4", - "@stdlib/string-base-headercase": "^0.2.3", - "@stdlib/string-base-invcase": "^0.2.3", - "@stdlib/string-base-kebabcase": "^0.2.3", - "@stdlib/string-base-last": "^0.1.2", - "@stdlib/string-base-last-code-point": "^0.1.2", - "@stdlib/string-base-last-grapheme-cluster": "^0.1.1", - "@stdlib/string-base-left-pad": "^0.2.3", - "@stdlib/string-base-left-trim": "^0.2.3", - "@stdlib/string-base-lowercase": "^0.4.1", - "@stdlib/string-base-pascalcase": "^0.2.3", - "@stdlib/string-base-percent-encode": "^0.2.3", - "@stdlib/string-base-remove-first": "^0.2.3", - "@stdlib/string-base-remove-first-code-point": "^0.2.3", - "@stdlib/string-base-remove-first-grapheme-cluster": "^0.2.3", - "@stdlib/string-base-remove-last": "^0.2.3", - "@stdlib/string-base-remove-last-code-point": "^0.2.3", - "@stdlib/string-base-remove-last-grapheme-cluster": "^0.2.3", - "@stdlib/string-base-repeat": "^0.2.3", - "@stdlib/string-base-replace": "^0.2.3", - "@stdlib/string-base-replace-after": "^0.1.2", - "@stdlib/string-base-replace-after-last": "^0.1.2", - "@stdlib/string-base-replace-before": "^0.3.1", - "@stdlib/string-base-replace-before-last": "^0.1.2", - "@stdlib/string-base-reverse": "^0.2.3", - "@stdlib/string-base-reverse-code-points": "^0.2.3", - "@stdlib/string-base-reverse-grapheme-clusters": "^0.2.3", - "@stdlib/string-base-right-pad": "^0.2.3", - "@stdlib/string-base-right-trim": "^0.2.3", - "@stdlib/string-base-slice": "^0.1.1", - "@stdlib/string-base-slice-code-points": "^0.1.1", - "@stdlib/string-base-slice-grapheme-clusters": "^0.1.1", - "@stdlib/string-base-snakecase": "^0.2.3", - "@stdlib/string-base-startcase": "^0.2.3", - "@stdlib/string-base-starts-with": "^0.2.3", - "@stdlib/string-base-stickycase": "^0.1.1", - "@stdlib/string-base-trim": "^0.2.3", - "@stdlib/string-base-truncate-middle": "^0.2.3", - "@stdlib/string-base-uncapitalize": "^1.0.1", - "@stdlib/string-base-uppercase": "^1.0.1", - "@stdlib/utils-define-read-only-property": "^0.2.3" - }, - "devDependencies": { - "@stdlib/array-base-zeros": "^0.2.3", - "@stdlib/array-uint8": "^0.2.3", - "@stdlib/assert-has-atob-support": "^0.1.1", - "@stdlib/assert-is-array": "^0.2.3", - "@stdlib/assert-is-boolean": "^0.2.3", - "@stdlib/assert-is-nonnegative-integer": "^0.2.3", - "@stdlib/assert-is-string": "^0.2.3", - "@stdlib/assert-is-uint8array": "^0.2.3", - "@stdlib/buffer-from-string": "^0.2.3", - "@stdlib/console-log-each": "^0.2.4", - "@stdlib/constants-float64-ninf": "^0.2.3", - "@stdlib/constants-float64-pi": "^0.2.3", - "@stdlib/constants-float64-pinf": "^0.2.3", - "@stdlib/constants-unicode-max": "^0.2.3", - "@stdlib/dstructs-circular-buffer": "^0.1.1", - "@stdlib/math-base-assert-is-even": "^0.2.5", - "@stdlib/math-base-assert-is-odd": "^0.3.2", - "@stdlib/math-base-special-ceil": "^0.2.3", - "@stdlib/math-base-special-fast-max": "^0.3.1", - "@stdlib/math-base-special-min": "^0.2.4", - "@stdlib/math-base-special-round": "^0.3.1", - "@stdlib/random-array-discrete-uniform": "^0.2.2", - "@stdlib/random-base-bernoulli": "^0.2.2", - "@stdlib/random-base-discrete-uniform": "^0.2.2", - "@stdlib/regexp-utf16-surrogate-pair": "^0.2.3", - "@stdlib/regexp-whitespace": "^0.2.3", - "@stdlib/string-base-distances-hamming": "^0.2.3", - "@stdlib/string-base-distances-levenshtein": "^0.2.3", - "@stdlib/string-format": "^0.2.3", - "@stdlib/string-from-code-point": "^0.2.3", - "@stdlib/string-next-grapheme-cluster-break": "^0.2.3", - "@stdlib/string-num-code-points": "^0.1.1", - "@stdlib/string-num-grapheme-clusters": "^0.2.3", - "@stdlib/string-utf16-to-utf8-array": "^0.2.3", - "@stdlib/utils-keys": "^0.2.3", - "@stdlib/utils-map": "^0.2.2", - "@stdlib/utils-nary-function": "^0.2.4", - "@stdlib/utils-noop": "^0.2.3", - "@stdlib/utils-papply": "^0.2.3", - "@stdlib/utils-papply-right": "^0.2.3", - "proxyquire": "^2.0.0", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.3" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdstring", diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..75a7037 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 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. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index caec920..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @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. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base (i.e., lower-level) string functions', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -});