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

yo-fs

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yo-fs - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

12

index.js
var relative = require('relative-date')
var data = require('render-data')
var pretty = require('pretty-bytes')

@@ -60,12 +59,3 @@ var path = require('path')

onclick(e, entry)
if (entry.type === 'directory') {
render(widget, entry.name, entries, onclick)
} else if (entry.type === 'file') {
var el = yo`<div id="data-viewport"></div>`
data.render(entry, el, function (err, elem) {
if (err) throw err
console.log('done')
yo.update(widget, elem)
})
}
if (entry.type === 'directory') render(widget, entry.name, entries, onclick)
}

@@ -72,0 +62,0 @@ return yo`<li class='entry ${entry.type}' onclick=${click}>

3

package.json
{
"name": "yo-fs",
"version": "1.0.3",
"version": "1.0.4",
"description": "A client-side modular stream-friendly ui browser widget for navigating directories.",

@@ -33,5 +33,4 @@ "main": "index.js",

"relative-date": "^1.1.3",
"render-data": "^1.0.0",
"yo-yo": "^1.2.1"
}
}

@@ -9,3 +9,3 @@ # yo-fs

#### `yofs(widget, root, entries, onclick)`
#### `yofs(widget, path, entries, onclick)`

@@ -12,0 +12,0 @@ * `widget`: if we already have a widget, update it, otherwise make a new one.

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