A JavaScript utility for adding deep anchor links to online docs.
npm install anchor-jsA 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.
Download AnchorJS using npm,
``bash`
npm install anchor-js
...and then include it into your project:
`js
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.
`html`
See the Documentation for detailed instructions.
Currently Supports: IE9+ and modern browsers
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:
- Install test modules: Run npm cinpm test
- Run all tests: npm run build`
5. Minify and prepare the code:
6. Submit a Pull Request.
Licensed with the MIT License.