You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because copy is using node's built in util.inspect to convert objects to strings. This bug is in the unfortunate "real, but non-trivial to fix and not commonly experienced" category, so I'm going to punt until more people ask for a fix or if someone provides a PR.
const ncp = require('copy-paste')
ncp.copy({
x: function(y){return y}
})
expected:
{x: function(y){return y}}
actual output:
{ x: [Function: x] }
hoping to fix it
The text was updated successfully, but these errors were encountered: