Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Support for .json extension on require() #584

Closed
wants to merge 1 commit into from
Closed

Support for .json extension on require() #584

wants to merge 1 commit into from

Commits on Jan 26, 2011

  1. Added support for loading .json files through require, where the cont…

    …ents of said required file is simply a JS value (string, bool, float, int, array, object)
    
    equiv to module.exports = { foo: 'bar'; } but cleaner and name files .json.
    
    Test cases included and ensures that .js still has priority over .json
    aikar committed Jan 26, 2011
    Configuration menu
    Copy the full SHA
    ee49867 View commit details
    Browse the repository at this point in the history