Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

file extension name in js

const path = require('path')

path.extname('picture.png') //.png
path.extname('picture.of.a.dog.png') //.png
path.extname('picture.of.a.dog.jpg') //.jpg
path.extname('picture.of.a.dog.jpeg') //.jpeg
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #file #extension #js
ADD COMMENT
Topic
Name
7+2 =