jspm / npm

NPM Location Service
19 stars 34 forks source link

Move normalization features into endpoint #3

Closed guybedford closed 10 years ago

guybedford commented 10 years ago

Specifically -

            format: 'cjs',
            normalize: function(name) {
              if (name.substr(name.length - 3, 3) == '.js')
                return name.substr(0, name.length - 3);
              return name;
            }