JSPM

Found 64 results for extname

parse-filepath

Pollyfill for node.js `path.parse`, parses a filepath into an object.

  • v1.0.2
  • 107.21
  • Published

ext-name

Get the file extension and MIME type from a file

  • v5.0.0
  • 105.04
  • Published

contains-path

Return true if a file path contains the given path.

  • v1.0.0
  • 98.94
  • Published

path-complete-extname

path.extname implementation adapted to also include multiple dots extensions.

  • v1.0.0
  • 88.86
  • Published

remark-lint-file-extension

remark-lint rule to warn when the file’s extension violates the given style

  • v3.0.1
  • 79.08
  • Published

file-extension

Get the extension of a given filename or path

  • v4.0.5
  • 74.38
  • Published

@ayonli/jsext

A JavaScript extension package for building strong and modern applications.

  • v1.8.0
  • 65.28
  • Published

gulp-extname

gulp plugin to dynamically rewrite dest extensions based on src extensions.

  • v0.2.2
  • 60.90
  • Published

rewrite-ext

Automatically re-write the destination extension of a filepath based on the source extension. e.g `.coffee` => `.js`. This will only rename the ext, no other path parts are modified.

  • v1.0.0
  • 60.01
  • Published

ext-map

just an object that maps `src` file extensions to `dest` file extensions as key/value pairs (e.g. `{'.less': '.css'}`). Useful for dynamically rewriting paths in tasks/plugins. pull requests welcome.

  • v1.0.1
  • 60.01
  • Published

get-ext

Tiny path.extname method

  • v1.0.2
  • 57.29
  • Published

extname

Get the file extension and MIME type from a file

  • v0.1.5
  • 45.56
  • Published

file-suffix

A file suffix is a substring of basename after the first dot

  • v1.0.1
  • 44.27
  • Published

node-name

Basic utility methods for transforming and handling file paths.

  • v0.1.3
  • 39.87
  • Published

regex-extname-windows

Regular expression to capture a Windows filename extension.

  • v1.0.0
  • 34.25
  • Published

utils-extname

Returns a filename extension.

  • v1.0.0
  • 32.88
  • Published

filename2prism

Converts source code filenames to PrismJS language aliases.

  • v4.0.0
  • 32.60
  • Published

regex-extname-posix

Regular expression to capture a POSIX filename extension.

  • v1.0.0
  • 32.50
  • Published

regex-extname

Regular expression to capture a filename extension.

  • v1.0.0
  • 30.71
  • Published

metalsmith-paths

A metalsmith plugin that adds file path values to metadata

  • v4.0.6
  • 29.85
  • Published

ext-to-regexp

Convert extname into regexp

  • v0.1.0
  • 29.41
  • Published

ext-to-regex

Create a regex for matching file extensions.

  • v0.1.0
  • 27.43
  • Published

rte

Simple filepath re-writing for node.js projects. Useful for re-writing paths in grunt/gulp/assemble tasks or plugins.

  • v2.0.1
  • 24.56
  • Published

gulp-pathmap

Rename files with pathmap. Think of it like `sprintf` for paths.

  • v0.1.0
  • 20.27
  • Published

pathinfo

Returns consolidated info about a filesystem path without having to call multiple path.* methods.

  • v0.1.0
  • 19.34
  • Published

extra-path

Useful additions to inbuilt path module.

  • v1.2.1
  • 19.16
  • Published

extra-path.web

Useful additions to inbuilt path module {web}.

  • v1.2.1
  • 18.35
  • Published

ext-ext

Extension of the node.js path.extname method.

  • v0.1.2
  • 17.92
  • Published

mime-xdg

mimetypes, mimeheads and mimenotes from xdg/shared-mime-info

  • v1.2.5
  • 15.79
  • Published

ext-regex

Regular expression for matching file extensions. Matches single and/or multiple file extensions, like `.min.js`.

  • v1.0.0
  • 15.05
  • Published

easy-renamer

Easily rename files using custom rename functions that are automatically used against any filepaths that match the associated regex or glob patterns.

  • v0.3.1
  • 13.09
  • Published

rename-path

Return a mapped dest for a src a filepath.

  • v0.2.0
  • 13.05
  • Published

@fav/path.extname

Provides same behaviors of `path.extname` module for all versions fo node.js

  • v0.9.0
  • 12.80
  • Published

ekst

Append, prepend, replace or remove basename extensions

  • v2.0.0
  • 10.90
  • Published

namespace-data

Read data files and extend the data from each onto an object or objects named using the given string or [propstring].

  • v0.1.0
  • 9.12
  • Published

ext-name-cli

Get the file extension and MIME type from a file

  • v1.1.0
  • 8.98
  • Published

regex-filename

Regular expression to split a filename.

  • v1.0.0
  • 8.87
  • Published

files-by-ext

Give it a list of files, receive an object keyed by file extension

  • v1.0.0
  • 7.10
  • Published

match-extension

Return `true` if a file extension matches the given string, array of strings, or RegExp pattern.

  • v0.2.1
  • 7.10
  • Published

path-info-stats

NPM package for reading information about absolute paths, which can also be imported/exported via JSON. Both sync and async classes are provided.

  • v1.0.5
  • 7.03
  • Published

mimext

mime type to extension and the reverse map

  • v0.1.8
  • 6.77
  • Published

drop-extnames

Drops all extnames from file path.

  • v1.0.3
  • 4.43
  • Published

rmext

✂️ Remove file extension

  • v0.0.1
  • 4.27
  • Published

is-extname

Check file extension name

  • v0.0.1
  • 2.77
  • Published

file-language

Get the language name of a given filename or path

  • v0.0.3
  • 2.64
  • Published

file-stem

Basename without extension

  • v1.0.2
  • 2.50
  • Published

exty

A curried library to check the extension of a file

    • v1.0.1
    • 0.00
    • Published

    ext2lang

    Conversion tool between extname and language type

    • v1.0.3
    • 0.00
    • Published

    @jo-sword/file-ext

    Receives the extension or mimeType of a filename or path.

    • v1.0.2
    • 0.00
    • Published