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

dog-picture

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

dog-picture - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

16

index.js

@@ -1,8 +0,8 @@

var fs = require('fs');
var dog = fs.readFileSync(__dirname + '/dog.jpg', 'hex');
dog = new BUffer(dog.toString(), 'hex').toString('base64');
dog = 'data:image/jpeg;base64,' + dog;
var img = document.createElement('img');
img.setAttribute('src', dog);
img.setAttribute('class', 'dog-picture');
document.body.appendChild(img);
var fs = require('fs')
var dog = fs.readFileSync(__dirname + '/dog.jpg', 'hex')
dog = new Buffer(dog.toString(), 'hex').toString('base64')
dog = 'data:image/jpeg;base64,' + dog
var img = document.createElement('img')
img.setAttribute('src', dog)
img.setAttribute('class', 'dog-picture')
document.body.appendChild(img)
{
"name": "dog-picture",
"version": "0.0.1",
"version": "0.0.2",
"description": "require('dog-picture')",

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

@@ -5,5 +5,9 @@ # dog-picture

`npm -i --save dog-picture`
`require('dog-picture')`
```bash
npm -i --save dog-picture
```
```js
require('dog-picture')
```
heavily ~inspired~ borrowed from [Max Ogden's](https://github.com/maxogden) [cat-picture](https://github.com/maxogden/cat-picture).
heavily ~~inspired~~ borrowed from [max ogden's](https://github.com/maxogden) [cat-picture](https://github.com/maxogden/cat-picture).
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