Browse Source

doc: add an example about multiple extensions

`path.extname` returns only the last extension
v0.10.26-release
Maxime Quandalle 11 years ago
committed by Fedor Indutny
parent
commit
154d9d2163
  1. 4
      doc/api/path.markdown

4
doc/api/path.markdown

@ -133,6 +133,10 @@ an empty string. Examples:
// returns
'.html'
path.extname('index.coffee.md')
// returns
'.md'
path.extname('index.')
// returns
'.'

Loading…
Cancel
Save