Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var folio = require('folio');
folio('chai')
.root(__dirname, '..')
.use(folio.requires())
.dir('./lib')
.package('chai')
.entry('./chai.js')
.pop()
.use(folio.indent())
.line(' ')
.pop()
.use(folio.wrapper())
.prefix([
'!function (name, context, definition) {'
, ' if (typeof require === \'function\' && typeof exports === \'object\' && typeof module === \'object\') {'
, ' module.exports = definition();'
, ' } else if (typeof define === \'function\' && typeof define.amd === \'object\') {'
, ' define(function () {'
, ' return definition();'
, ' });'
, ' } else {'
, ' context[name] = definition();'
, ' }'
, '}(\'chai\', this, function () {\n'
].join('\n'))