Nose Picking Mechanisms

    anchor-js
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/anchor-js package

    4.3.1 • Public • Published

    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:
      • Install test modules: Run npm ci
      • Run all tests: npm test
    5. Minify and prepare the code: npm run build
    6. Submit a Pull Request.

    License

    Licensed with the MIT License.

    Install

    npm i anchor-js

    DownloadsWeekly Downloads

    4,339

    Version

    4.3.1

    License

    MIT

    Unpacked Size

    26.7 kB

    Total Files

    5

    Last publish

    Collaborators

    • bryanbraun