Socket
Socket
Sign inDemoInstall

scroll-down

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scroll-down - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

2

index.js
// scroll an element to the bottom
exports.now = function(element) {
module.exports = function(element) {
element.scrollTop(element[0].scrollHeight);

@@ -5,0 +5,0 @@ return false;

{
"name": "scroll-down",
"version": "1.0.0",
"version": "2.0.0",
"description": "Scroll down within an element",

@@ -5,0 +5,0 @@ "main": "index.js",

# scroll-down
Scroll down within an element
Scroll to the bottom of an element. We use it
to scroll a textarea to the bottom every time we add
content to it.
### Usage
```bash
npm install --save scroll-down
```
```javascript
var scrollDown = require('./index.js');
// scroll in element to the bottom
scrollDown(element);
```

@@ -10,4 +10,4 @@ var scrollDown = require('./index.js');

scrollDown.now(element);
scrollDown(element);
console.log('Done testing. All good');

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc