diff options
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@yarnpkg/lockfile/README.md')
-rw-r--r-- | sandbox/testAppNevena/Front/node_modules/@yarnpkg/lockfile/README.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@yarnpkg/lockfile/README.md b/sandbox/testAppNevena/Front/node_modules/@yarnpkg/lockfile/README.md new file mode 100644 index 00000000..2d3efc50 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@yarnpkg/lockfile/README.md @@ -0,0 +1,22 @@ +# yarn-lockfile + +Parse and/or write `yarn.lock` files + +## Usage Examples + +```js +const fs = require('fs'); +const lockfile = require('@yarnpkg/lockfile'); +// or (es6) +import fs from 'fs'; +import * as lockfile from '@yarnpkg/lockfile'; + +let file = fs.readFileSync('yarn.lock', 'utf8'); +let json = lockfile.parse(file); + +console.log(json); + +let fileAgain = lockfile.stringify(json); + +console.log(fileAgain); +``` |