github sindresorhus/conf v4.0.0

latest releases: v12.0.0, v11.0.2, v11.0.1...
5 years ago

Breaking

  • The config is now stored in %APPDATA% instead of %LOCALAPPDATA% on Windows, which is more correct. There's unfortunately no automatic migration path. To continue using the old config location, run npm i 'env-paths@^1.0.0' and set the cwd option:

     const Conf = require('conf');
     const envPaths = require('env-paths');
     
     const config = new Conf({
     	cwd: envPaths('<projectName>', {suffix: 'nodejs'}).config
     });
  • For TypeScript users only: Refactor TypeScript definition to CommonJS compatible export (#64) 277d70a
    - You need to change import Conf from 'conf'; to import Conf = require('conf');

Enhancements


v3.0.0...v4.0.0

Don't miss a new conf release

NewReleases is sending notifications on new releases.