Wondering what’s next for npm?Check out our public roadmap! »

    yarn-lockfile-exists

    0.2.0 • Public • Published

    yarn-lockfile-exists

    Check for a Yarn lockfile in the current working directory.

    Install

    $ yarn add yarn-lockfile-exists # Or alternatively: `npm install --save yarn-lockfile-exists` 

    Usage

    'use strict';
     
    const yarnLockfileExists = require('yarn-lockfile-exists');
     
    // Returns `true` or `false` based off of if there is a `yarn.lock`
    // file in the location that `process.cwd()` points to.
    yarnLockfileExists();
     
    // Optionally you can specify the current working directory for the
    // function to operate in.
    const cwd = '/home/myself/awesome-project';
     
    yarnLockfileExists({cwd});

    Testing

    $ yarn test # Or alternatively: `npm test` 

    License

    The MIT License (Expat). See the license file for details.

    Install

    npm i yarn-lockfile-exists

    DownloadsWeekly Downloads

    4

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • avatar