Socket
Socket
Sign inDemoInstall

sell

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sell

Cross-browser text selection made simple


Version published
Weekly downloads
4.9K
increased by9.13%
Maintainers
1
Install size
5.38 kB
Created
Weekly downloads
 

Readme

Source

Sell

Cross-browser text selection made simple

Install

npm install sell --save

Use

Note that el must be either an <input> element or a <textarea>.

sell(el)

Returns an object like { start: 1, end: 3 } indicating where the selection starts and ends.

sell(el, p)

Sets text selection on element el to a range p, like the ones returned from sell(el). Note that you can set either start or end to the special 'end' value, in which case el.value.length will be used.

License

MIT

FAQs

Last updated on 09 Mar 2015

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