"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/npm/lib/install/inflate-bundled.js" (11 Apr 2017, 492 Bytes) of package /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 'use strict'
    2 var validate = require('aproba')
    3 var childPath = require('../utils/child-path.js')
    4 
    5 module.exports = function inflateBundled (parent, children) {
    6   validate('OA', arguments)
    7   children.forEach(function (child) {
    8     child.fromBundle = true
    9     child.parent = parent
   10     child.path = childPath(parent.path, child)
   11     child.realpath = childPath(parent.path, child)
   12     child.isLink = child.isLink || parent.isLink || parent.target
   13     inflateBundled(child, child.children)
   14   })
   15 }