Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "filenames"

Filenames

Split filename to name and extions.

import { filenames } from '@mochen/yuumi';

Index

Functions

Functions

Const parse

  • parse(filename: string): [string, string]
  • Split filename to name and extions.

    example
    filenames.parse('c.7z') // ['c', '7z']
    filenames.parse('.ignore') // ['.ignore', '']
    filenames.parse('abc'); // ['abc', '']
    filenames.parse('1.0.1'); // ['1.0.1', '']
    filenames.parse('a.ZIP'); // ['a', 'ZIP']

    Parameters

    • filename: string

    Returns [string, string]

Generated using TypeDoc