use standard modules
```coffee
path = require 'path'
path.basename str, path.extname str # returns same result
```