Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

background-image

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

background-image - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1-security

33

package.json
{
"name": "background-image",
"version": "0.0.0",
"description": "Set background image for given element",
"version": "0.0.1-security",
"description": "",
"main": "index.js",
"scripts": {
"test": "fox"
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"new-format": "0.0.x",
"select-dom": "0.0.0"
"repository": {
"type": "git",
"url": "git+https://github.com/npm/security-holder.git"
},
"devDependencies": {
"prova": "*"
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/npm/security-holder/issues"
},
"keywords": [
"dom",
"background",
"image"
],
"repository": {
"url": "git@github.com:azer/background-image.git",
"type": "git"
},
"author": "Azer Koçulu <azer@kodfabrik.com>",
"license": "BSD"
}
"homepage": "https://github.com/npm/security-holder#readme"
}

@@ -1,29 +0,9 @@

## background-image
# Security holding package
Set background image for given element
This package name is not currently in use, but was formerly occupied
by a popular package. To avoid malicious use, npm is hanging on to
the package name, but loosely, and we'll probably give it to you if
you want it.
## Install
```bash
$ npm install background-image
```
## Usage
Call it with a DOM element or a selector, and a image url:
```js
backgroundImage = require('background-image')
backgroundImage('.container', 'http://foo.com/foo.jpg')
```
It'll show the image as a cover background. You can pass following options as third parameter to customize:
```js
{
repeat: 'no-repeat',
position: 'center center',
size: 'cover'
}
```
You may adopt this package by contacting support@npmjs.com and
requesting the name.
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