Socket
Socket
Sign inDemoInstall

@alsolovyev/sorter

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @alsolovyev/sorter

JavaScript package for sorting lists by drag-and-drop


Version published
Maintainers
1
Created

Readme

Source

📦 Sorter

JavaScript package for sorting lists by drag-and-drop.
Demo: alsolovyev.github.io/npm-packages/sorter

License: MIT

Sorter


🚀 Usage

Install with NPM:
npm install @alsolovyev/sorter --save
<ul id="list">
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
</ul>
import Sorter from '@alsolovyev/sorter'

new Sorter(document.getElementById('list'))
Through the script tag:
<ul id="list">
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
</ul>

<script src="https://cdn.jsdelivr.net/npm/@alsolovyev/sorter@latest/dist/sorter.min.js"></script>
<!-- or -->
<script src="https://unpkg.com/@alsolovyev/sorter@latest/dist/sorter.min.js"></script>
new Sorter(document.getElementById('list'))

🧑 Authors


📖 License

This project is licensed under the MIT License

Keywords

FAQs

Last updated on 20 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc