Needless Patchouli Manufacture
    Have ideas to improve npm?Join in the discussion! »

    @nextcloud/paths
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.0 • Public • Published

    @nextcloud/paths

    Build Status npm Documentation

    Path helpers for Nextcloud apps.

    Installation

    npm i -S @nextcloud/paths
    

    Usage

    import { basename, dirname, encodePath, isSamePath, joinPaths } from '@nextcloud/paths'
    
    basename('/my/file.txt')
    // -> 'file.txt'
    
    dirname('/my/file.txt')
    // -> '/my'
    
    encodePath('/my/other file.txt')
    // -> '/my/other%20file'
    
    isSamePath('/my/file.txt', 'my/file.txt')
    // -> true
    
    basename('/my/file.txt')
    // -> 'file.txt'

    Keywords

    Install

    npm i @nextcloud/paths

    DownloadsWeekly Downloads

    2,385

    Version

    2.0.0

    License

    GPL-3.0-or-later

    Unpacked Size

    375 kB

    Total Files

    25

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar