```javascript
var main = pkgInfo.main.replace( /\.js$/, '' );
```