Skip to content

Commit

Permalink
cleanups + v2
Browse files Browse the repository at this point in the history
  • Loading branch information
masesisaac committed Jun 5, 2023
1 parent c950542 commit e37deb5
Show file tree
Hide file tree
Showing 7 changed files with 220 additions and 1,120 deletions.
13 changes: 0 additions & 13 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Maseruka Isaac
Copyright (c) 2018 Isaac Maseruka

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 2 additions & 1 deletion bin/ndcopy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
'use strict';
require('../index').copy();
import { copy } from '../index.js';
copy();
3 changes: 2 additions & 1 deletion bin/ndpaste.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
'use strict';
require('../index').paste();
import { paste } from '../index.js';
paste();
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const clipboardy = require('clipboardy');
const getStdin = require('get-stdin');
import clipboardy from 'clipboardy';
import getStdin from 'get-stdin';

const copy = async(str, cb = () => {}) => {
let content;
Expand All @@ -12,8 +12,8 @@ const copy = async(str, cb = () => {}) => {
cb(content);
process.exit(0);
} else {
console.log('nothing to copy');
cb('nothing to copy');
console.log('Nothing to copy');
cb('Nothing to copy');
process.exit(0);
}
};
Expand All @@ -24,4 +24,4 @@ const paste = () => {
return content;
};

module.exports = {copy, paste};
export {copy, paste};
Loading

0 comments on commit e37deb5

Please sign in to comment.