You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
379 B
14 lines
379 B
'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}) |
|
};
|
|
|