UNPKG

@putout/plugin-tape

Version:
7 lines (5 loc) 306 B
export const report = () => `Use destructuring when require 'test' -> '{test}'`; export const replace = () => ({ 'const test = require("supertape")': 'const {test} = require("supertape")', 'const __identifier__a = require("supertape")': 'const {test: __identifier__a} = require("supertape")', });