JSPM

Found 64 results for extname

parse-filepath

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

  • v1.0.2
  • 107.72
  • Published

contains-path

Return true if a file path contains the given path.

  • v1.0.0
  • 104.05
  • Published

ext-name

Get the file extension and MIME type from a file

  • v5.0.0
  • 103.75
  • Published

path-complete-extname

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

  • v1.0.0
  • 90.24
  • Published

remark-lint-file-extension

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

  • v3.0.1
  • 78.90
  • Published

file-extension

Get the extension of a given filename or path

  • v4.0.5
  • 73.28
  • Published

@ayonli/jsext

A JavaScript extension package for building strong and modern applications.

  • v1.8.0
  • 63.67
  • Published

gulp-extname

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

  • v0.2.2
  • 61.48
  • 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.24
  • 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.23
  • Published

get-ext

Tiny path.extname method

  • v1.0.2
  • 56.82
  • Published

extname

Get the file extension and MIME type from a file

  • v0.1.5
  • 45.61
  • Published

file-suffix

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

  • v1.0.1
  • 44.42
  • Published

metalsmith-paths

A metalsmith plugin that adds file path values to metadata

  • v4.0.6
  • 38.78
  • 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
  • 38.65
  • Published

node-name

Basic utility methods for transforming and handling file paths.

  • v0.1.3
  • 36.33
  • Published

filename2prism

Converts source code filenames to PrismJS language aliases.

  • v4.0.0
  • 35.35
  • Published

regex-extname-windows

Regular expression to capture a Windows filename extension.

  • v1.0.0
  • 30.83
  • 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
  • 30.49
  • Published

regex-extname

Regular expression to capture a filename extension.

  • v1.0.0
  • 29.36
  • Published

regex-extname-posix

Regular expression to capture a POSIX filename extension.

  • v1.0.0
  • 29.16
  • Published

utils-extname

Returns a filename extension.

  • v1.0.0
  • 29.15
  • Published

ext-to-regexp

Convert extname into regexp

  • v0.1.0
  • 28.54
  • Published

ext-to-regex

Create a regex for matching file extensions.

  • v0.1.0
  • 26.54
  • Published

extra-path

Useful additions to inbuilt path module.

  • v1.2.1
  • 22.30
  • Published

mime-xdg

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

  • v1.2.5
  • 22.06
  • Published

pathinfo

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

  • v0.1.0
  • 20.99
  • Published

extra-path.web

Useful additions to inbuilt path module {web}.

  • v1.2.1
  • 20.33
  • Published

ext-ext

Extension of the node.js path.extname method.

  • v0.1.2
  • 20.00
  • 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
  • 19.72
  • Published

rename-path

Return a mapped dest for a src a filepath.

  • v0.2.0
  • 19.13
  • Published

gulp-pathmap

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

  • v0.1.0
  • 18.48
  • Published

mimext

mime type to extension and the reverse map

  • v0.1.8
  • 16.95
  • Published

ext-regex

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

  • v1.0.0
  • 15.68
  • 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
  • 14.60
  • Published

ekst

Append, prepend, replace or remove basename extensions

  • v2.0.0
  • 14.36
  • Published

match-extension

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

  • v0.2.1
  • 14.32
  • Published

@fav/path.extname

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

  • v0.9.0
  • 14.20
  • Published

file-stem

Basename without extension

  • v1.0.2
  • 14.07
  • Published

regex-filename

Regular expression to split a filename.

  • v1.0.0
  • 13.26
  • Published

ext-name-cli

Get the file extension and MIME type from a file

  • v1.1.0
  • 12.98
  • Published

files-by-ext

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

  • v1.0.0
  • 11.68
  • Published

ext2lang

Conversion tool between extname and language type

  • v1.0.3
  • 11.11
  • Published

@jo-sword/file-ext

Receives the extension or mimeType of a filename or path.

  • v1.0.2
  • 11.11
  • Published

is-extname

Check file extension name

  • v0.0.1
  • 10.99
  • Published

rmext

✂️ Remove file extension

  • v0.0.1
  • 10.95
  • Published

file-language

Get the language name of a given filename or path

  • v0.0.3
  • 10.50
  • Published

drop-extnames

Drops all extnames from file path.

  • v1.0.3
  • 8.84
  • Published

exty

A curried library to check the extension of a file

    • v1.0.1
    • 8.13
    • Published