diff options
Diffstat (limited to 'node_modules/espurify/index.js')
-rw-r--r-- | node_modules/espurify/index.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/node_modules/espurify/index.js b/node_modules/espurify/index.js new file mode 100644 index 000000000..ed28ec635 --- /dev/null +++ b/node_modules/espurify/index.js @@ -0,0 +1,22 @@ +/** + * espurify - Clone new AST without extra properties + * + * https://github.com/estools/espurify + * + * Copyright (c) 2014-2017 Takuto Wada + * Licensed under the MIT license. + * https://github.com/estools/espurify/blob/master/MIT-LICENSE.txt + */ +'use strict'; + +var createWhitelist = require('./lib/create-whitelist'); +var cloneWithWhitelist = require('./lib/clone-ast'); + +function createCloneFunction (options) { + return cloneWithWhitelist(createWhitelist(options)); +} + +var espurify = createCloneFunction(); +espurify.customize = createCloneFunction; +espurify.cloneWithWhitelist = cloneWithWhitelist; +module.exports = espurify; |