This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/clipboardy/lib/macos.js

15 lines
379 B
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
'use strict';
const execa = require('execa');
const env = {
...process.env,
LC_CTYPE: 'UTF-8'
};
module.exports = {
copy: async options => execa('pbcopy', {...options, env}),
paste: async options => execa.stdout('pbpaste', {...options, env}),
copySync: options => execa.sync('pbcopy', {...options, env}),
pasteSync: options => execa.sync('pbpaste', {...options, env})
};