Validation.js 501 B

1234567891011121314151617
  1. /*!
  2. * UTF-8 Validation Code originally from:
  3. * ws: a node.js websocket client
  4. * Copyright(c) 2011 Einar Otto Stangvik <einaros@gmail.com>
  5. * MIT Licensed
  6. */
  7. try {
  8. module.exports = require('../build/Release/validation');
  9. } catch (e) { try {
  10. module.exports = require('../build/default/validation');
  11. } catch (e) { try {
  12. module.exports = require('./Validation.fallback');
  13. } catch (e) {
  14. console.error('validation.node seems not to have been built. Run npm install.');
  15. throw e;
  16. }}}