If you're OK in having a node-esm executable, please consider this solution.
#!/usr/bin/env sh
# the /usr/local/bin/node-esm executable
input_file=$1
shift
exec node --input-type=module - $@ <$input_fileIf you're OK in having a node-esm executable, please consider this solution.
#!/usr/bin/env sh
# the /usr/local/bin/node-esm executable
input_file=$1
shift
exec node --input-type=module - $@ <$input_file| /** | |
| * Pass in an element and its CSS Custom Property that you want the value of. | |
| * Optionally, you can determine what datatype you get back. | |
| * | |
| * @param {String} propKey | |
| * @param {HTMLELement} element=document.documentElement | |
| * @param {String} castAs='string' | |
| * @returns {*} | |
| */ | |
| const getCSSCustomProp = (propKey, element = document.documentElement, castAs = 'string') => { |
The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
| const user1 = { | |
| id: 100, | |
| name: 'Howard Moon', | |
| password: 'Password!' | |
| } | |
| const removeProperty = prop => ({ [prop]: _, ...rest }) => rest | |
| // ---- ------ | |
| // \ / | |
| // dynamic destructuring |
| // Crypto Expansion Pack - Numi.io | |
| numi.addUnit({ | |
| "id": "wei", | |
| "phrases": "wei, Wei", | |
| "baseUnitId": "ETH", | |
| "format": "Wei", | |
| "ratio": 1e-18, | |
| }); |
Git sees every file in your working copy as one of three things:
Ignored files are usually build artifacts and machine generated files that can be derived from your repository source or should otherwise not be committed. Some common examples are:
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| import subprocess | |
| if len(sys.argv) > 1: | |
| files = [] | |
| for arg in sys.argv[1:]: | |
| if os.path.exists(arg): | |
| p = os.path.abspath(arg).replace('\\', '\\\\').replace('"', '\\"') |