Noiseless Peaceful Morning

    @commonshost/static-directories

    1.0.0 • Public • Published

    @commonshost/static-directories 📁

    List of output directories of most static site generators.

    These are the default directories into which static sites are generated. This can be useful when detecting the presence of a static site.

    Usage

    Simply an array of strings.

    const { staticDirectories } =
      require('@commonshost/static-directories')
    
    // [ 'dist', 'public', '_site', ... ]

    Caveat

    Scan the list in-order. Some frameworks use one directory for output (e.g. dist) and another directory for source assets (e.g. site). The list is carefully maintained to find the output directory before matching a false-positive source directory.

    Colophon

    Made with 💗 by Sebastiaan Deckers for Commons Host.

    Install

    npm i @commonshost/static-directories

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    2.66 kB

    Total Files

    5

    Last publish

    Collaborators

    • qoelet
    • seb
    • sophieyang0813