Skip to content

Instantly share code, notes, and snippets.

@reaktivo
Last active June 19, 2021 19:19
Show Gist options
  • Save reaktivo/92eaf4adb43a14534560569d613c29e3 to your computer and use it in GitHub Desktop.
Save reaktivo/92eaf4adb43a14534560569d613c29e3 to your computer and use it in GitHub Desktop.
Example jscodeshift transform
module.exports = function(fileInfo, api, options) {
// transform `fileInfo.source` here
// ...
console.log(fileInfo);
return fileInfo.source;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment