├── .gitignore ├── index.js ├── package.json ├── bin └── just-wait.js ├── README.md └── LICENSE.md /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | require("./bin/just-wait.js"); 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "just-wait", 3 | "version": "1.0.11", 4 | "description": "Wait for a file or directory to change then just return", 5 | "main": "index.js", 6 | "bin": { 7 | "just-wait": "./bin/just-wait.js" 8 | }, 9 | "scripts": {}, 10 | "author": "Rick Wong", 11 | "contributors": [ 12 | { 13 | "name": "Stijn de Witt", 14 | "website": "http://StijnDeWitt.com" 15 | }, 16 | { 17 | "name": "Mark Reynolds", 18 | "website": "https://github.com/lostthetrail" 19 | } 20 | ], 21 | "repository": { 22 | "type": "git", 23 | "url": "https://github.com/download/just-wait.git" 24 | }, 25 | "homepage": "https://github.com/download/just-wait", 26 | "license": "CC-BY-4.0", 27 | "dependencies": { 28 | "chalk": "^1.1.3", 29 | "commander": "2.9.0", 30 | "gaze": "^1.1.2", 31 | "ulog": "^1.0.2" 32 | }, 33 | "keywords": [ 34 | "wait", 35 | "file", 36 | "directory", 37 | "script", 38 | "cli" 39 | ], 40 | "devDependencies": {} 41 | } 42 | -------------------------------------------------------------------------------- /bin/just-wait.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /** 4 | * Module dependencies. 5 | */ 6 | var program = require('commander'); 7 | var join = require('path').join; 8 | var Gaze = require('gaze').Gaze; 9 | var chalk = require('chalk'); 10 | var log = require('ulog')('just-wait') 11 | 12 | var g=chalk.green, gb=chalk.green.bold, r=chalk.red, rb=chalk.red.bold, 13 | wh=chalk.white, wb=chalk.white.bold, gr=chalk.grey; 14 | 15 | var done = false; 16 | 17 | var list = function(val) { 18 | return val.split(',').map(function(val) { 19 | return val.trim() 20 | }) 21 | } 22 | 23 | /** 24 | * Options. 25 | */ 26 | program 27 | .usage('') 28 | .option('-p, --pattern ', 'glob pattern. "," separates multiple patterns.\n' + 29 | ' More info: https://github.com/isaacs/minimatch', list, '**') 30 | .option('-d, --delay ', 'delay returning for a number of milliseconds', parseInt) 31 | .option('-t, --timeout ', 'timeout waiting after a number of seconds (default=30)', parseInt) 32 | .option('-s, --silent', 'suppress logging.') 33 | 34 | /** 35 | * Examples. 36 | */ 37 | program.on('--help', function() { 38 | log.info(); 39 | log.info(wh(' Examples:')); 40 | log.info(); 41 | log.info(gr(' # watch "lib" dir, return when something changes')); 42 | log.info(wh(' $ just-wait -p "lib/**"')); 43 | log.info(); 44 | log.info(gr(' # watch "lib" and "src" dirs, return 500ms after something changes')); 45 | log.info(wh(' $ just-wait -p "lib/**,src/**" -d 500')); 46 | log.info(); 47 | log.info(gr(' # watch "lib" dir, timeout after 10 seconds')); 48 | log.info(wh(' $ just-wait -p "lib/**,src/**" -t 10')); 49 | log.info(); 50 | }) 51 | 52 | /** 53 | * Parse argv. 54 | */ 55 | program.parse(process.argv); 56 | 57 | var 58 | delay = program.delay || 0, 59 | timeout = program.timeout || 30, 60 | silent = program.silent || false, 61 | pattern = program.pattern; 62 | 63 | if (!silent) { 64 | log.info(wb('Waiting ') + wh('for %s (max %d seconds)'), pattern, timeout); 65 | } 66 | 67 | setTimeout(function(){ 68 | if (!silent) { 69 | log.error(chalk.red.bold('Timed out ') + chalk.red('waiting for %s after %d seconds.'), pattern, timeout); 70 | } 71 | process.exit(1); 72 | }, timeout * 1000); 73 | 74 | /** 75 | * Watch. 76 | */ 77 | var watch = new Gaze(program.pattern); 78 | watch.on('all', stop); 79 | watch.on('nomatch', nomatch); 80 | 81 | /** 82 | * Execute command when file in dir changes. 83 | * 84 | * @param {String} event 85 | * @param {String} path 86 | */ 87 | function stop(event, path) { 88 | if (done) {return;} 89 | done = true; 90 | 91 | setTimeout(function() { 92 | if (!silent) { 93 | log.warn(chalk.green.bold('Ready. ') + chalk.green(pattern + ' ' + event)); 94 | } 95 | process.exit(0); 96 | }, delay); 97 | } 98 | 99 | /** 100 | * If the pattern couldn't be found, then keep globbing until a match is found. 101 | */ 102 | function nomatch() { 103 | watch.close(); 104 | 105 | if (done) { 106 | return; 107 | } 108 | 109 | setTimeout(function () { 110 | watch = new Gaze(program.pattern); 111 | watch.on('all', stop); 112 | watch.on('nomatch', nomatch); // Recursion 113 | watch.on('ready', function(watcher) { 114 | var keys = Object.keys(watcher._watched); 115 | if (keys && keys.length) { 116 | stop('added', watcher._watched[keys[0]]); 117 | } 118 | }); 119 | }, delay || 500); 120 | } 121 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # just-wait v1.0.11 2 | 3 | [![version](https://img.shields.io/npm/v/just-wait.svg)](https://npmjs.org/package/just-wait) 4 | ![license](https://img.shields.io/npm/l/just-wait.svg) 5 | ![installs](https://img.shields.io/npm/dt/just-wait.svg) 6 | 7 | Waits for a file or directory to change or appear, then just returns. The watched file or directory does not have to exist yet. 8 | 9 | ## Installation 10 | 11 | To use `just-wait` from the command-line, install it globally: 12 | 13 | ```sh 14 | npm install -g just-wait 15 | ``` 16 | 17 | To make sure your package is portable, also install it locally: 18 | 19 | ```sh 20 | npm install --save-dev just-wait 21 | ``` 22 | 23 | ## Usage 24 | 25 | ```sh 26 | # Use --help or -h to see usage details 27 | $ just-wait --help 28 | Usage: just-wait [options] 29 | 30 | Options: 31 | 32 | -h, --help output usage information 33 | -p, --pattern glob pattern. "," separates multiple patterns. 34 | More info: https://github.com/isaacs/minimatch 35 | -d, --delay delay returning for a number of milliseconds 36 | -t, --timeout timeout waiting after a number of seconds (default=30) 37 | -s, --silent suppress logging. 38 | 39 | Examples: 40 | 41 | # watch "lib" dir, return when something changes 42 | $ just-wait -p "lib/**" 43 | 44 | # watch "lib" and "src" dirs, return 500ms after something changes 45 | $ just-wait -p "lib/**,src/**" -d 500 46 | 47 | # watch "lib" dir, timeout after 10 seconds 48 | $ just-wait -p "lib/**,src/**" -t 10 49 | ``` 50 | 51 | In the case of a timeout, `just-wait` will return with exit code `1`. 52 | In other cases it will return with exit code `0` 53 | 54 | ### From package.json 55 | 56 | `just-wait` is usually used in the `scripts` section of package.json, to 57 | wait for some other, parallel task to create or change a file. 58 | 59 | An example might be bundling your server code with the `--watch` flag. 60 | This makes webpack watch for changes... but it also means the command does 61 | not return so how do we actually start our server after the initial build has 62 | succeeded? Simple! We just wait for server.js to have been created! 63 | 64 | ```json 65 | { 66 | "scripts": { 67 | "build": "webpack -p", 68 | "build-dev": "webpack -d --watch", 69 | "start": "node server.js", 70 | "start-dev": "just-wait -p \"server.js\" && npm run start", 71 | "dev": "run-p --silent build-dev start-dev" 72 | } 73 | } 74 | ``` 75 | 76 | Running `npm run dev` will run the `build-dev` and `start-dev` commands in parallel. 77 | The `start-dev` command then uses `just-wait` to wait for server.js to appear or change. 78 | 79 | ## Logging 80 | By default `just-wait` will log two messages to the terminal to provide 81 | feedback to the user: 82 | 83 | ```bash 84 | $ just-wait -p README.md && echo Done! 85 | Waiting for README.md (max 30 seconds) 86 | Ready. README.md changed 87 | Done! 88 | $ 89 | ``` 90 | 91 | or, in the case of timeout: 92 | 93 | ```bash 94 | $ just-wait -p README.md --timeout 10 && echo Done! 95 | Waiting for README.md (max 10 seconds) 96 | Timed out waiting for README.md after 10 seconds. 97 | $ 98 | ``` 99 | 100 | It uses [ulog](https://npmjs.org/package/ulog) for logging, which allows us 101 | to influence logging verbosity. The `Waiting for..` line is logged at level 102 | `INFO` (which means it is visible at ulog's default log level of `INFO`), the 103 | success message is logged at `WARN` and the error message is logged at level 104 | `ERROR`. You can change the log level by [setting the environment variable 105 | `LOG`](https://github.com/download/ulog#environment-variable), or you 106 | can completely suppress logging by passing the `--silent` (or `-s`) flag. 107 | 108 | ## Credits 109 | Based off of [Rick Wong](https://github.com/RickWong)'s [wait-run](https://www.npmjs.com/package/wait-run), 110 | this simplified version just waits for the file or directory to appear/change and then returns. It does not 111 | execute any commands. Use it by chaining commands after it using `&&`, which works under *nix as well as Windows. 112 | 113 | Credits also go to [Fabian Eichenberger](https://github.com/queckezz), who created [watch-run](https://github.com/queckezz/watch-run), 114 | which was the basis for Rick's version. 115 | 116 | Special thanks to [Mark Reynolds](https://github.com/lostthetrail) for making all our lives easier with his [contribution](https://github.com/Download/just-wait/pull/1). 117 | 118 | ## Copyright 119 | * © 2017, [Stijn de Witt](http://StijnDeWitt.com). (this project) 120 | * © 2016, [Rick Wong](https://github.com/RickWong). (wait-run) 121 | * © 2015, [Fabian Eichenberger](https://github.com/queckezz). (watch-run) 122 | 123 | ## License 124 | * [Creative Commons Attribution 4.0 (CC-BY-4.0)](https://creativecommons.org/licenses/by/4.0/) (this project) 125 | * [BSD 3-Clause license](https://opensource.org/licenses/BSD-3-Clause) (wait-run) 126 | * [MIT License](https://opensource.org/licenses/MIT) (watch-run) -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | ## creative commons 2 | 3 | # Attribution 4.0 International 4 | 5 | Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. 6 | 7 | ### Using Creative Commons Public Licenses 8 | 9 | Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. 10 | 11 | * __Considerations for licensors:__ Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. [More considerations for licensors](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensors). 12 | 13 | * __Considerations for the public:__ By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. [More considerations for the public](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensees). 14 | 15 | ## Creative Commons Attribution 4.0 International Public License 16 | 17 | By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. 18 | 19 | ### Section 1 – Definitions. 20 | 21 | a. __Adapted Material__ means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. 22 | 23 | b. __Adapter's License__ means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. 24 | 25 | c. __Copyright and Similar Rights__ means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. 26 | 27 | d. __Effective Technological Measures__ means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. 28 | 29 | e. __Exceptions and Limitations__ means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. 30 | 31 | f. __Licensed Material__ means the artistic or literary work, database, or other material to which the Licensor applied this Public License. 32 | 33 | g. __Licensed Rights__ means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. 34 | 35 | h. __Licensor__ means the individual(s) or entity(ies) granting rights under this Public License. 36 | 37 | i. __Share__ means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. 38 | 39 | j. __Sui Generis Database Rights__ means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. 40 | 41 | k. __You__ means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. 42 | 43 | ### Section 2 – Scope. 44 | 45 | a. ___License grant.___ 46 | 47 | 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: 48 | 49 | A. reproduce and Share the Licensed Material, in whole or in part; and 50 | 51 | B. produce, reproduce, and Share Adapted Material. 52 | 53 | 2. __Exceptions and Limitations.__ For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. 54 | 55 | 3. __Term.__ The term of this Public License is specified in Section 6(a). 56 | 57 | 4. __Media and formats; technical modifications allowed.__ The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. 58 | 59 | 5. __Downstream recipients.__ 60 | 61 | A. __Offer from the Licensor – Licensed Material.__ Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. 62 | 63 | B. __No downstream restrictions.__ You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. 64 | 65 | 6. __No endorsement.__ Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). 66 | 67 | b. ___Other rights.___ 68 | 69 | 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. 70 | 71 | 2. Patent and trademark rights are not licensed under this Public License. 72 | 73 | 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. 74 | 75 | ### Section 3 – License Conditions. 76 | 77 | Your exercise of the Licensed Rights is expressly made subject to the following conditions. 78 | 79 | a. ___Attribution.___ 80 | 81 | 1. If You Share the Licensed Material (including in modified form), You must: 82 | 83 | A. retain the following if it is supplied by the Licensor with the Licensed Material: 84 | 85 | i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); 86 | 87 | ii. a copyright notice; 88 | 89 | iii. a notice that refers to this Public License; 90 | 91 | iv. a notice that refers to the disclaimer of warranties; 92 | 93 | v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; 94 | 95 | B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and 96 | 97 | C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. 98 | 99 | 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. 100 | 101 | 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. 102 | 103 | 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. 104 | 105 | ### Section 4 – Sui Generis Database Rights. 106 | 107 | Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: 108 | 109 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; 110 | 111 | b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and 112 | 113 | c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. 114 | 115 | For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. 116 | 117 | ### Section 5 – Disclaimer of Warranties and Limitation of Liability. 118 | 119 | a. __Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.__ 120 | 121 | b. __To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.__ 122 | 123 | c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. 124 | 125 | ### Section 6 – Term and Termination. 126 | 127 | a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. 128 | 129 | b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: 130 | 131 | 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or 132 | 133 | 2. upon express reinstatement by the Licensor. 134 | 135 | For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. 136 | 137 | c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. 138 | 139 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. 140 | 141 | ### Section 7 – Other Terms and Conditions. 142 | 143 | a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. 144 | 145 | b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. 146 | 147 | ### Section 8 – Interpretation. 148 | 149 | *a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. 150 | 151 | b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. 152 | 153 | c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. 154 | 155 | d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. 156 | 157 | ``` 158 | Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at [creativecommons.org/policies](http://creativecommons.org/policies), Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. 159 | 160 | Creative Commons may be contacted at creativecommons.org 161 | ``` --------------------------------------------------------------------------------