MCPcopy Index your code
hub / github.com/bryanbraun/anchorjs

github.com/bryanbraun/anchorjs @5.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 5.0.0 ↗ · + Follow
13 symbols 23 edges 7 files 7 documented · 54% updated 16mo ago5.0.0 · 2023-01-18★ 8934 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

AnchorJS Build Status

A JavaScript utility for adding deep anchor links (like these) to existing page content. AnchorJS is lightweight, accessible, and has no dependencies.

See Live Examples in the Documentation.

Anchoring links

Installation

Download AnchorJS using npm,

npm install anchor-js

...and then include it into your project:

import AnchorJS from 'anchor-js';

const anchors = new AnchorJS();
anchors.add();

You could also include it in your webpage via a CDN like CDNJS or jsDelivr.

<script src="https://cdn.jsdelivr.net/npm/anchor-js/anchor.min.js"></script>
<script>
   anchors.add();
</script>

Usage

See the Documentation for detailed instructions.

Compatibility

Currently Supports: IE9+ and modern browsers

Contributing devDependency Status

To contribute:

  1. Fork/Clone the repo.
  2. Make your changes.
  3. Write tests as needed.
  4. Run tests locally to confirm everything is working:
  5. Install test modules: Run npm ci
  6. Run all tests: npm test
  7. Minify and prepare the code: npm run build
  8. Submit a Pull Request.

License

Licensed with the MIT License.

Core symbols most depended-on inside this repo

Shape

Function 13

Languages

TypeScript100%

Modules by API surface

docs/anchor.js4 symbols
anchor.js4 symbols
anchor.min.js2 symbols
test/spec/AnchorSpec.js1 symbols
docs/scripts.js1 symbols
banner.js1 symbols

For agents

$ claude mcp add anchorjs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page