Welcome to mirror list, hosted at ThFree Co, Russian Federation.

shrinkwrap.js « bin « arborist « workspaces - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 56603224e99882229cd8364e6d301e1386234af9 (plain)
1
2
3
4
5
6
7
const Shrinkwrap = require('../lib/shrinkwrap.js')

module.exports = (options, time) => Shrinkwrap
  .load(options)
  .then((s) => s.commit())
  .then(time)
  .then(({ result: s }) => JSON.stringify(s, 0, 2))