fsevents 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fsevents might be problematic. Click here for more details.
- package/node_modules/abbrev/LICENSE +46 -0
- package/node_modules/abbrev/README.md +23 -0
- package/node_modules/abbrev/abbrev.js +61 -0
- package/node_modules/abbrev/package.json +57 -0
- package/node_modules/ansi-regex/index.js +4 -0
- package/node_modules/ansi-regex/license +21 -0
- package/node_modules/ansi-regex/package.json +108 -0
- package/node_modules/ansi-regex/readme.md +39 -0
- package/node_modules/aproba/LICENSE +14 -0
- package/node_modules/aproba/README.md +94 -0
- package/node_modules/aproba/index.js +105 -0
- package/node_modules/aproba/package.json +62 -0
- package/node_modules/are-we-there-yet/CHANGES.md +37 -0
- package/node_modules/are-we-there-yet/LICENSE +5 -0
- package/node_modules/are-we-there-yet/README.md +195 -0
- package/node_modules/are-we-there-yet/index.js +4 -0
- package/node_modules/are-we-there-yet/package.json +63 -0
- package/node_modules/are-we-there-yet/tracker-base.js +11 -0
- package/node_modules/are-we-there-yet/tracker-group.js +107 -0
- package/node_modules/are-we-there-yet/tracker-stream.js +36 -0
- package/node_modules/are-we-there-yet/tracker.js +30 -0
- package/node_modules/balanced-match/.npmignore +5 -0
- package/node_modules/balanced-match/LICENSE.md +21 -0
- package/node_modules/balanced-match/README.md +91 -0
- package/node_modules/balanced-match/index.js +59 -0
- package/node_modules/balanced-match/package.json +77 -0
- package/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/brace-expansion/README.md +129 -0
- package/node_modules/brace-expansion/index.js +201 -0
- package/node_modules/brace-expansion/package.json +75 -0
- package/node_modules/chownr/LICENSE +15 -0
- package/node_modules/chownr/README.md +3 -0
- package/node_modules/chownr/chownr.js +88 -0
- package/node_modules/chownr/package.json +59 -0
- package/node_modules/code-point-at/index.js +32 -0
- package/node_modules/code-point-at/license +21 -0
- package/node_modules/code-point-at/package.json +70 -0
- package/node_modules/code-point-at/readme.md +32 -0
- package/node_modules/concat-map/.travis.yml +4 -0
- package/node_modules/concat-map/LICENSE +18 -0
- package/node_modules/concat-map/README.markdown +62 -0
- package/node_modules/concat-map/example/map.js +6 -0
- package/node_modules/concat-map/index.js +13 -0
- package/node_modules/concat-map/package.json +88 -0
- package/node_modules/concat-map/test/map.js +39 -0
- package/node_modules/console-control-strings/LICENSE +13 -0
- package/node_modules/console-control-strings/README.md +145 -0
- package/node_modules/console-control-strings/README.md~ +140 -0
- package/node_modules/console-control-strings/index.js +125 -0
- package/node_modules/console-control-strings/package.json +61 -0
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/README.md +3 -0
- package/node_modules/core-util-is/float.patch +604 -0
- package/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/core-util-is/package.json +62 -0
- package/node_modules/core-util-is/test.js +68 -0
- package/node_modules/debug/.coveralls.yml +1 -0
- package/node_modules/debug/.eslintrc +11 -0
- package/node_modules/debug/.npmignore +9 -0
- package/node_modules/debug/.travis.yml +14 -0
- package/node_modules/debug/CHANGELOG.md +362 -0
- package/node_modules/debug/LICENSE +19 -0
- package/node_modules/debug/Makefile +50 -0
- package/node_modules/debug/README.md +312 -0
- package/node_modules/debug/component.json +19 -0
- package/node_modules/debug/karma.conf.js +70 -0
- package/node_modules/debug/node.js +1 -0
- package/node_modules/debug/package.json +88 -0
- package/node_modules/debug/src/browser.js +185 -0
- package/node_modules/debug/src/debug.js +202 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/inspector-log.js +15 -0
- package/node_modules/debug/src/node.js +248 -0
- package/node_modules/deep-extend/CHANGELOG.md +46 -0
- package/node_modules/deep-extend/LICENSE +20 -0
- package/node_modules/deep-extend/README.md +91 -0
- package/node_modules/deep-extend/index.js +1 -0
- package/node_modules/deep-extend/lib/deep-extend.js +150 -0
- package/node_modules/deep-extend/package.json +92 -0
- package/node_modules/delegates/.npmignore +1 -0
- package/node_modules/delegates/History.md +22 -0
- package/node_modules/delegates/License +20 -0
- package/node_modules/delegates/Makefile +8 -0
- package/node_modules/delegates/Readme.md +94 -0
- package/node_modules/delegates/index.js +121 -0
- package/node_modules/delegates/package.json +48 -0
- package/node_modules/delegates/test/index.js +94 -0
- package/node_modules/detect-libc/.npmignore +7 -0
- package/node_modules/detect-libc/LICENSE +201 -0
- package/node_modules/detect-libc/README.md +78 -0
- package/node_modules/detect-libc/bin/detect-libc.js +18 -0
- package/node_modules/detect-libc/lib/detect-libc.js +92 -0
- package/node_modules/detect-libc/package.json +70 -0
- package/node_modules/fs-minipass/LICENSE +15 -0
- package/node_modules/fs-minipass/README.md +70 -0
- package/node_modules/fs-minipass/index.js +386 -0
- package/node_modules/fs-minipass/package.json +62 -0
- package/node_modules/fs.realpath/LICENSE +43 -0
- package/node_modules/fs.realpath/README.md +33 -0
- package/node_modules/fs.realpath/index.js +66 -0
- package/node_modules/fs.realpath/old.js +303 -0
- package/node_modules/fs.realpath/package.json +59 -0
- package/node_modules/gauge/CHANGELOG.md +160 -0
- package/node_modules/gauge/LICENSE +13 -0
- package/node_modules/gauge/README.md +399 -0
- package/node_modules/gauge/base-theme.js +14 -0
- package/node_modules/gauge/error.js +24 -0
- package/node_modules/gauge/has-color.js +12 -0
- package/node_modules/gauge/index.js +233 -0
- package/node_modules/gauge/package.json +91 -0
- package/node_modules/gauge/plumbing.js +48 -0
- package/node_modules/gauge/process.js +3 -0
- package/node_modules/gauge/progress-bar.js +35 -0
- package/node_modules/gauge/render-template.js +181 -0
- package/node_modules/gauge/set-immediate.js +7 -0
- package/node_modules/gauge/set-interval.js +3 -0
- package/node_modules/gauge/spin.js +5 -0
- package/node_modules/gauge/template-item.js +73 -0
- package/node_modules/gauge/theme-set.js +115 -0
- package/node_modules/gauge/themes.js +54 -0
- package/node_modules/gauge/wide-truncate.js +25 -0
- package/node_modules/glob/LICENSE +15 -0
- package/node_modules/glob/README.md +368 -0
- package/node_modules/glob/changelog.md +67 -0
- package/node_modules/glob/common.js +240 -0
- package/node_modules/glob/glob.js +790 -0
- package/node_modules/glob/package.json +76 -0
- package/node_modules/glob/sync.js +486 -0
- package/node_modules/has-unicode/LICENSE +14 -0
- package/node_modules/has-unicode/README.md +43 -0
- package/node_modules/has-unicode/index.js +16 -0
- package/node_modules/has-unicode/package.json +58 -0
- package/node_modules/iconv-lite/Changelog.md +162 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/README.md +156 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/node_modules/iconv-lite/encodings/index.js +22 -0
- package/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/node_modules/iconv-lite/lib/index.js +153 -0
- package/node_modules/iconv-lite/lib/streams.js +121 -0
- package/node_modules/iconv-lite/package.json +76 -0
- package/node_modules/ignore-walk/LICENSE +15 -0
- package/node_modules/ignore-walk/README.md +60 -0
- package/node_modules/ignore-walk/index.js +265 -0
- package/node_modules/ignore-walk/package.json +71 -0
- package/node_modules/inflight/LICENSE +15 -0
- package/node_modules/inflight/README.md +37 -0
- package/node_modules/inflight/inflight.js +54 -0
- package/node_modules/inflight/package.json +58 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +7 -0
- package/node_modules/inherits/inherits_browser.js +23 -0
- package/node_modules/inherits/package.json +64 -0
- package/node_modules/ini/LICENSE +15 -0
- package/node_modules/ini/README.md +102 -0
- package/node_modules/ini/ini.js +194 -0
- package/node_modules/ini/package.json +63 -0
- package/node_modules/is-fullwidth-code-point/index.js +46 -0
- package/node_modules/is-fullwidth-code-point/license +21 -0
- package/node_modules/is-fullwidth-code-point/package.json +77 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/isarray/.npmignore +1 -0
- package/node_modules/isarray/.travis.yml +4 -0
- package/node_modules/isarray/Makefile +6 -0
- package/node_modules/isarray/README.md +60 -0
- package/node_modules/isarray/component.json +19 -0
- package/node_modules/isarray/index.js +5 -0
- package/node_modules/isarray/package.json +73 -0
- package/node_modules/isarray/test.js +20 -0
- package/node_modules/minimatch/LICENSE +15 -0
- package/node_modules/minimatch/README.md +209 -0
- package/node_modules/minimatch/minimatch.js +923 -0
- package/node_modules/minimatch/package.json +64 -0
- package/node_modules/minimist/.travis.yml +4 -0
- package/node_modules/minimist/LICENSE +18 -0
- package/node_modules/minimist/example/parse.js +2 -0
- package/node_modules/minimist/index.js +187 -0
- package/node_modules/minimist/package.json +71 -0
- package/node_modules/minimist/readme.markdown +73 -0
- package/node_modules/minimist/test/dash.js +24 -0
- package/node_modules/minimist/test/default_bool.js +20 -0
- package/node_modules/minimist/test/dotted.js +16 -0
- package/node_modules/minimist/test/long.js +31 -0
- package/node_modules/minimist/test/parse.js +318 -0
- package/node_modules/minimist/test/parse_modified.js +9 -0
- package/node_modules/minimist/test/short.js +67 -0
- package/node_modules/minimist/test/whitespace.js +8 -0
- package/node_modules/minipass/LICENSE +15 -0
- package/node_modules/minipass/README.md +124 -0
- package/node_modules/minipass/index.js +375 -0
- package/node_modules/minipass/package.json +69 -0
- package/node_modules/minizlib/LICENSE +26 -0
- package/node_modules/minizlib/README.md +44 -0
- package/node_modules/minizlib/constants.js +46 -0
- package/node_modules/minizlib/index.js +335 -0
- package/node_modules/minizlib/package.json +71 -0
- package/node_modules/mkdirp/.travis.yml +8 -0
- package/node_modules/mkdirp/LICENSE +21 -0
- package/node_modules/mkdirp/bin/cmd.js +33 -0
- package/node_modules/mkdirp/bin/usage.txt +12 -0
- package/node_modules/mkdirp/examples/pow.js +6 -0
- package/node_modules/mkdirp/index.js +98 -0
- package/node_modules/mkdirp/package.json +64 -0
- package/node_modules/mkdirp/readme.markdown +100 -0
- package/node_modules/mkdirp/test/chmod.js +41 -0
- package/node_modules/mkdirp/test/clobber.js +38 -0
- package/node_modules/mkdirp/test/mkdirp.js +28 -0
- package/node_modules/mkdirp/test/opts_fs.js +29 -0
- package/node_modules/mkdirp/test/opts_fs_sync.js +27 -0
- package/node_modules/mkdirp/test/perm.js +32 -0
- package/node_modules/mkdirp/test/perm_sync.js +36 -0
- package/node_modules/mkdirp/test/race.js +37 -0
- package/node_modules/mkdirp/test/rel.js +32 -0
- package/node_modules/mkdirp/test/return.js +25 -0
- package/node_modules/mkdirp/test/return_sync.js +24 -0
- package/node_modules/mkdirp/test/root.js +19 -0
- package/node_modules/mkdirp/test/sync.js +32 -0
- package/node_modules/mkdirp/test/umask.js +28 -0
- package/node_modules/mkdirp/test/umask_sync.js +32 -0
- package/node_modules/ms/index.js +152 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +69 -0
- package/node_modules/ms/readme.md +51 -0
- package/node_modules/needle/README.md +594 -0
- package/node_modules/needle/bin/needle +40 -0
- package/node_modules/needle/examples/deflated-stream.js +22 -0
- package/node_modules/needle/examples/digest-auth.js +16 -0
- package/node_modules/needle/examples/download-to-file.js +18 -0
- package/node_modules/needle/examples/multipart-stream.js +25 -0
- package/node_modules/needle/examples/parsed-stream.js +23 -0
- package/node_modules/needle/examples/parsed-stream2.js +21 -0
- package/node_modules/needle/examples/stream-events.js +23 -0
- package/node_modules/needle/examples/stream-to-file.js +14 -0
- package/node_modules/needle/examples/upload-image.js +51 -0
- package/node_modules/needle/lib/auth.js +110 -0
- package/node_modules/needle/lib/cookies.js +79 -0
- package/node_modules/needle/lib/decoder.js +53 -0
- package/node_modules/needle/lib/multipart.js +98 -0
- package/node_modules/needle/lib/needle.js +795 -0
- package/node_modules/needle/lib/parsers.js +120 -0
- package/node_modules/needle/lib/querystring.js +49 -0
- package/node_modules/needle/license.txt +19 -0
- package/node_modules/needle/note.xml +7 -0
- package/node_modules/needle/note.xml.1 +7 -0
- package/node_modules/needle/package.json +102 -0
- package/node_modules/needle/test/basic_auth_spec.js +196 -0
- package/node_modules/needle/test/compression_spec.js +94 -0
- package/node_modules/needle/test/cookies_spec.js +305 -0
- package/node_modules/needle/test/decoder_spec.js +86 -0
- package/node_modules/needle/test/errors_spec.js +286 -0
- package/node_modules/needle/test/headers_spec.js +198 -0
- package/node_modules/needle/test/helpers.js +72 -0
- package/node_modules/needle/test/long_string_spec.js +34 -0
- package/node_modules/needle/test/output_spec.js +254 -0
- package/node_modules/needle/test/parsing_spec.js +494 -0
- package/node_modules/needle/test/post_data_spec.js +1021 -0
- package/node_modules/needle/test/proxy_spec.js +202 -0
- package/node_modules/needle/test/querystring_spec.js +128 -0
- package/node_modules/needle/test/redirect_spec.js +392 -0
- package/node_modules/needle/test/redirect_with_timeout.js +45 -0
- package/node_modules/needle/test/request_stream_spec.js +202 -0
- package/node_modules/needle/test/response_stream_spec.js +139 -0
- package/node_modules/needle/test/socket_pool_spec.js +66 -0
- package/node_modules/needle/test/url_spec.js +155 -0
- package/node_modules/needle/test/utils/formidable.js +17 -0
- package/node_modules/needle/test/utils/proxy.js +62 -0
- package/node_modules/needle/test/utils/test.js +104 -0
- package/node_modules/node-pre-gyp/CHANGELOG.md +422 -0
- package/node_modules/node-pre-gyp/LICENSE +27 -0
- package/node_modules/node-pre-gyp/README.md +658 -0
- package/node_modules/node-pre-gyp/appveyor.yml +30 -0
- package/node_modules/node-pre-gyp/bin/node-pre-gyp +134 -0
- package/node_modules/node-pre-gyp/bin/node-pre-gyp.cmd +2 -0
- package/node_modules/node-pre-gyp/contributing.md +10 -0
- package/node_modules/node-pre-gyp/lib/build.js +51 -0
- package/node_modules/node-pre-gyp/lib/clean.js +32 -0
- package/node_modules/node-pre-gyp/lib/configure.js +52 -0
- package/node_modules/node-pre-gyp/lib/info.js +40 -0
- package/node_modules/node-pre-gyp/lib/install.js +243 -0
- package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +203 -0
- package/node_modules/node-pre-gyp/lib/package.js +56 -0
- package/node_modules/node-pre-gyp/lib/pre-binding.js +30 -0
- package/node_modules/node-pre-gyp/lib/publish.js +79 -0
- package/node_modules/node-pre-gyp/lib/rebuild.js +21 -0
- package/node_modules/node-pre-gyp/lib/reinstall.js +20 -0
- package/node_modules/node-pre-gyp/lib/reveal.js +33 -0
- package/node_modules/node-pre-gyp/lib/testbinary.js +81 -0
- package/node_modules/node-pre-gyp/lib/testpackage.js +55 -0
- package/node_modules/node-pre-gyp/lib/unpublish.js +43 -0
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +1782 -0
- package/node_modules/node-pre-gyp/lib/util/compile.js +87 -0
- package/node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js +100 -0
- package/node_modules/node-pre-gyp/lib/util/napi.js +156 -0
- package/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/index.html +26 -0
- package/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/package.json +9 -0
- package/node_modules/node-pre-gyp/lib/util/s3_setup.js +27 -0
- package/node_modules/node-pre-gyp/lib/util/versioning.js +330 -0
- package/node_modules/node-pre-gyp/package.json +86 -0
- package/node_modules/nopt/.npmignore +1 -0
- package/node_modules/nopt/.travis.yml +8 -0
- package/node_modules/nopt/CHANGELOG.md +58 -0
- package/node_modules/nopt/LICENSE +15 -0
- package/node_modules/nopt/README.md +213 -0
- package/node_modules/nopt/bin/nopt.js +54 -0
- package/node_modules/nopt/examples/my-program.js +30 -0
- package/node_modules/nopt/lib/nopt.js +436 -0
- package/node_modules/nopt/package.json +58 -0
- package/node_modules/nopt/test/basic.js +303 -0
- package/node_modules/npm-bundled/LICENSE +15 -0
- package/node_modules/npm-bundled/README.md +48 -0
- package/node_modules/npm-bundled/index.js +229 -0
- package/node_modules/npm-bundled/package.json +60 -0
- package/node_modules/npm-packlist/LICENSE +15 -0
- package/node_modules/npm-packlist/README.md +68 -0
- package/node_modules/npm-packlist/index.js +229 -0
- package/node_modules/npm-packlist/package.json +66 -0
- package/node_modules/npmlog/CHANGELOG.md +49 -0
- package/node_modules/npmlog/LICENSE +15 -0
- package/node_modules/npmlog/README.md +216 -0
- package/node_modules/npmlog/log.js +309 -0
- package/node_modules/npmlog/package.json +61 -0
- package/node_modules/number-is-nan/index.js +4 -0
- package/node_modules/number-is-nan/license +21 -0
- package/node_modules/number-is-nan/package.json +67 -0
- package/node_modules/number-is-nan/readme.md +28 -0
- package/node_modules/object-assign/index.js +90 -0
- package/node_modules/object-assign/license +21 -0
- package/node_modules/object-assign/package.json +74 -0
- package/node_modules/object-assign/readme.md +61 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +67 -0
- package/node_modules/os-homedir/index.js +24 -0
- package/node_modules/os-homedir/license +21 -0
- package/node_modules/os-homedir/package.json +73 -0
- package/node_modules/os-homedir/readme.md +31 -0
- package/node_modules/os-tmpdir/index.js +25 -0
- package/node_modules/os-tmpdir/license +21 -0
- package/node_modules/os-tmpdir/package.json +73 -0
- package/node_modules/os-tmpdir/readme.md +32 -0
- package/node_modules/osenv/LICENSE +15 -0
- package/node_modules/osenv/README.md +63 -0
- package/node_modules/osenv/osenv.js +72 -0
- package/node_modules/osenv/package.json +73 -0
- package/node_modules/path-is-absolute/index.js +20 -0
- package/node_modules/path-is-absolute/license +21 -0
- package/node_modules/path-is-absolute/package.json +75 -0
- package/node_modules/path-is-absolute/readme.md +59 -0
- package/node_modules/process-nextick-args/index.js +44 -0
- package/node_modules/process-nextick-args/license.md +19 -0
- package/node_modules/process-nextick-args/package.json +50 -0
- package/node_modules/process-nextick-args/readme.md +18 -0
- package/node_modules/rc/LICENSE.APACHE2 +15 -0
- package/node_modules/rc/LICENSE.BSD +26 -0
- package/node_modules/rc/LICENSE.MIT +24 -0
- package/node_modules/rc/README.md +227 -0
- package/node_modules/rc/browser.js +7 -0
- package/node_modules/rc/cli.js +4 -0
- package/node_modules/rc/index.js +53 -0
- package/node_modules/rc/lib/utils.js +104 -0
- package/node_modules/rc/node_modules/minimist/.travis.yml +8 -0
- package/node_modules/rc/node_modules/minimist/LICENSE +18 -0
- package/node_modules/rc/node_modules/minimist/example/parse.js +2 -0
- package/node_modules/rc/node_modules/minimist/index.js +236 -0
- package/node_modules/rc/node_modules/minimist/package.json +73 -0
- package/node_modules/rc/node_modules/minimist/readme.markdown +91 -0
- package/node_modules/rc/node_modules/minimist/test/all_bool.js +32 -0
- package/node_modules/rc/node_modules/minimist/test/bool.js +166 -0
- package/node_modules/rc/node_modules/minimist/test/dash.js +31 -0
- package/node_modules/rc/node_modules/minimist/test/default_bool.js +35 -0
- package/node_modules/rc/node_modules/minimist/test/dotted.js +22 -0
- package/node_modules/rc/node_modules/minimist/test/kv_short.js +16 -0
- package/node_modules/rc/node_modules/minimist/test/long.js +31 -0
- package/node_modules/rc/node_modules/minimist/test/num.js +36 -0
- package/node_modules/rc/node_modules/minimist/test/parse.js +197 -0
- package/node_modules/rc/node_modules/minimist/test/parse_modified.js +9 -0
- package/node_modules/rc/node_modules/minimist/test/short.js +67 -0
- package/node_modules/rc/node_modules/minimist/test/stop_early.js +15 -0
- package/node_modules/rc/node_modules/minimist/test/unknown.js +102 -0
- package/node_modules/rc/node_modules/minimist/test/whitespace.js +8 -0
- package/node_modules/rc/package.json +64 -0
- package/node_modules/rc/test/ini.js +16 -0
- package/node_modules/rc/test/nested-env-vars.js +50 -0
- package/node_modules/rc/test/test.js +59 -0
- package/node_modules/readable-stream/.travis.yml +55 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +58 -0
- package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/readable-stream/duplex-browser.js +1 -0
- package/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +687 -0
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +79 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +74 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +81 -0
- package/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/readable-stream/readable-browser.js +7 -0
- package/node_modules/readable-stream/readable.js +19 -0
- package/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/readable-stream/writable-browser.js +1 -0
- package/node_modules/readable-stream/writable.js +8 -0
- package/node_modules/rimraf/LICENSE +15 -0
- package/node_modules/rimraf/README.md +101 -0
- package/node_modules/rimraf/bin.js +50 -0
- package/node_modules/rimraf/package.json +67 -0
- package/node_modules/rimraf/rimraf.js +364 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/safe-buffer/package.json +65 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +60 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/sax/LICENSE +41 -0
- package/node_modules/sax/README.md +225 -0
- package/node_modules/sax/lib/sax.js +1565 -0
- package/node_modules/sax/package.json +61 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +399 -0
- package/node_modules/semver/bin/semver +153 -0
- package/node_modules/semver/package.json +54 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/semver.js +1352 -0
- package/node_modules/set-blocking/CHANGELOG.md +26 -0
- package/node_modules/set-blocking/LICENSE.txt +14 -0
- package/node_modules/set-blocking/README.md +31 -0
- package/node_modules/set-blocking/index.js +7 -0
- package/node_modules/set-blocking/package.json +70 -0
- package/node_modules/signal-exit/CHANGELOG.md +27 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +40 -0
- package/node_modules/signal-exit/index.js +157 -0
- package/node_modules/signal-exit/package.json +66 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/string-width/index.js +37 -0
- package/node_modules/string-width/license +21 -0
- package/node_modules/string-width/package.json +89 -0
- package/node_modules/string-width/readme.md +42 -0
- package/node_modules/string_decoder/.travis.yml +50 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +59 -0
- package/node_modules/strip-ansi/index.js +6 -0
- package/node_modules/strip-ansi/license +21 -0
- package/node_modules/strip-ansi/package.json +102 -0
- package/node_modules/strip-ansi/readme.md +33 -0
- package/node_modules/strip-json-comments/index.js +70 -0
- package/node_modules/strip-json-comments/license +21 -0
- package/node_modules/strip-json-comments/package.json +74 -0
- package/node_modules/strip-json-comments/readme.md +64 -0
- package/node_modules/tar/LICENSE +15 -0
- package/node_modules/tar/README.md +954 -0
- package/node_modules/tar/index.js +18 -0
- package/node_modules/tar/lib/buffer.js +11 -0
- package/node_modules/tar/lib/create.js +105 -0
- package/node_modules/tar/lib/extract.js +112 -0
- package/node_modules/tar/lib/header.js +289 -0
- package/node_modules/tar/lib/high-level-opt.js +29 -0
- package/node_modules/tar/lib/large-numbers.js +92 -0
- package/node_modules/tar/lib/list.js +130 -0
- package/node_modules/tar/lib/mkdir.js +206 -0
- package/node_modules/tar/lib/mode-fix.js +14 -0
- package/node_modules/tar/lib/pack.js +404 -0
- package/node_modules/tar/lib/parse.js +423 -0
- package/node_modules/tar/lib/pax.js +146 -0
- package/node_modules/tar/lib/read-entry.js +94 -0
- package/node_modules/tar/lib/replace.js +220 -0
- package/node_modules/tar/lib/types.js +44 -0
- package/node_modules/tar/lib/unpack.js +621 -0
- package/node_modules/tar/lib/update.js +36 -0
- package/node_modules/tar/lib/warn-mixin.js +14 -0
- package/node_modules/tar/lib/winchars.js +23 -0
- package/node_modules/tar/lib/write-entry.js +422 -0
- package/node_modules/tar/package.json +78 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +56 -0
- package/node_modules/wide-align/LICENSE +14 -0
- package/node_modules/wide-align/README.md +47 -0
- package/node_modules/wide-align/align.js +65 -0
- package/node_modules/wide-align/package.json +66 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +59 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/yallist/LICENSE +15 -0
- package/node_modules/yallist/README.md +204 -0
- package/node_modules/yallist/iterator.js +8 -0
- package/node_modules/yallist/package.json +63 -0
- package/node_modules/yallist/yallist.js +376 -0
- package/package.json +1 -1
@@ -0,0 +1,94 @@
|
|
1
|
+
|
2
|
+
var assert = require('assert');
|
3
|
+
var delegate = require('..');
|
4
|
+
|
5
|
+
describe('.method(name)', function(){
|
6
|
+
it('should delegate methods', function(){
|
7
|
+
var obj = {};
|
8
|
+
|
9
|
+
obj.request = {
|
10
|
+
foo: function(bar){
|
11
|
+
assert(this == obj.request);
|
12
|
+
return bar;
|
13
|
+
}
|
14
|
+
};
|
15
|
+
|
16
|
+
delegate(obj, 'request').method('foo');
|
17
|
+
|
18
|
+
obj.foo('something').should.equal('something');
|
19
|
+
})
|
20
|
+
})
|
21
|
+
|
22
|
+
describe('.getter(name)', function(){
|
23
|
+
it('should delegate getters', function(){
|
24
|
+
var obj = {};
|
25
|
+
|
26
|
+
obj.request = {
|
27
|
+
get type() {
|
28
|
+
return 'text/html';
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
delegate(obj, 'request').getter('type');
|
33
|
+
|
34
|
+
obj.type.should.equal('text/html');
|
35
|
+
})
|
36
|
+
})
|
37
|
+
|
38
|
+
describe('.setter(name)', function(){
|
39
|
+
it('should delegate setters', function(){
|
40
|
+
var obj = {};
|
41
|
+
|
42
|
+
obj.request = {
|
43
|
+
get type() {
|
44
|
+
return this._type.toUpperCase();
|
45
|
+
},
|
46
|
+
|
47
|
+
set type(val) {
|
48
|
+
this._type = val;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
delegate(obj, 'request').setter('type');
|
53
|
+
|
54
|
+
obj.type = 'hey';
|
55
|
+
obj.request.type.should.equal('HEY');
|
56
|
+
})
|
57
|
+
})
|
58
|
+
|
59
|
+
describe('.access(name)', function(){
|
60
|
+
it('should delegate getters and setters', function(){
|
61
|
+
var obj = {};
|
62
|
+
|
63
|
+
obj.request = {
|
64
|
+
get type() {
|
65
|
+
return this._type.toUpperCase();
|
66
|
+
},
|
67
|
+
|
68
|
+
set type(val) {
|
69
|
+
this._type = val;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
delegate(obj, 'request').access('type');
|
74
|
+
|
75
|
+
obj.type = 'hey';
|
76
|
+
obj.type.should.equal('HEY');
|
77
|
+
})
|
78
|
+
})
|
79
|
+
|
80
|
+
describe('.fluent(name)', function () {
|
81
|
+
it('should delegate in a fluent fashion', function () {
|
82
|
+
var obj = {
|
83
|
+
settings: {
|
84
|
+
env: 'development'
|
85
|
+
}
|
86
|
+
};
|
87
|
+
|
88
|
+
delegate(obj, 'settings').fluent('env');
|
89
|
+
|
90
|
+
obj.env().should.equal('development');
|
91
|
+
obj.env('production').should.equal(obj);
|
92
|
+
obj.settings.env.should.equal('production');
|
93
|
+
})
|
94
|
+
})
|
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# detect-libc
|
2
|
+
|
3
|
+
Node.js module to detect the C standard library (libc) implementation
|
4
|
+
family and version in use on a given Linux system.
|
5
|
+
|
6
|
+
Provides a value suitable for use with the `LIBC` option of
|
7
|
+
[prebuild](https://www.npmjs.com/package/prebuild),
|
8
|
+
[prebuild-ci](https://www.npmjs.com/package/prebuild-ci) and
|
9
|
+
[prebuild-install](https://www.npmjs.com/package/prebuild-install),
|
10
|
+
therefore allowing build and provision of pre-compiled binaries
|
11
|
+
for musl-based Linux e.g. Alpine as well as glibc-based.
|
12
|
+
|
13
|
+
Currently supports libc detection of `glibc` and `musl`.
|
14
|
+
|
15
|
+
## Install
|
16
|
+
|
17
|
+
```sh
|
18
|
+
npm install detect-libc
|
19
|
+
```
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
### API
|
24
|
+
|
25
|
+
```js
|
26
|
+
const { GLIBC, MUSL, family, version, isNonGlibcLinux } = require('detect-libc');
|
27
|
+
```
|
28
|
+
|
29
|
+
* `GLIBC` is a String containing the value "glibc" for comparison with `family`.
|
30
|
+
* `MUSL` is a String containing the value "musl" for comparison with `family`.
|
31
|
+
* `family` is a String representing the system libc family.
|
32
|
+
* `version` is a String representing the system libc version number.
|
33
|
+
* `isNonGlibcLinux` is a Boolean representing whether the system is a non-glibc Linux, e.g. Alpine.
|
34
|
+
|
35
|
+
### detect-libc command line tool
|
36
|
+
|
37
|
+
When run on a Linux system with a non-glibc libc,
|
38
|
+
the child command will be run with the `LIBC` environment variable
|
39
|
+
set to the relevant value.
|
40
|
+
|
41
|
+
On all other platforms will run the child command as-is.
|
42
|
+
|
43
|
+
The command line feature requires `spawnSync` provided by Node v0.12+.
|
44
|
+
|
45
|
+
```sh
|
46
|
+
detect-libc child-command
|
47
|
+
```
|
48
|
+
|
49
|
+
## Integrating with prebuild
|
50
|
+
|
51
|
+
```json
|
52
|
+
"scripts": {
|
53
|
+
"install": "detect-libc prebuild-install || node-gyp rebuild",
|
54
|
+
"test": "mocha && detect-libc prebuild-ci"
|
55
|
+
},
|
56
|
+
"dependencies": {
|
57
|
+
"detect-libc": "^1.0.2",
|
58
|
+
"prebuild-install": "^2.2.0"
|
59
|
+
},
|
60
|
+
"devDependencies": {
|
61
|
+
"prebuild": "^6.2.1",
|
62
|
+
"prebuild-ci": "^2.2.3"
|
63
|
+
}
|
64
|
+
```
|
65
|
+
|
66
|
+
## Licence
|
67
|
+
|
68
|
+
Copyright 2017 Lovell Fuller
|
69
|
+
|
70
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
71
|
+
you may not use this file except in compliance with the License.
|
72
|
+
You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
|
73
|
+
|
74
|
+
Unless required by applicable law or agreed to in writing, software
|
75
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
76
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
77
|
+
See the License for the specific language governing permissions and
|
78
|
+
limitations under the License.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
|
3
|
+
'use strict';
|
4
|
+
|
5
|
+
var spawnSync = require('child_process').spawnSync;
|
6
|
+
var libc = require('../');
|
7
|
+
|
8
|
+
var spawnOptions = {
|
9
|
+
env: process.env,
|
10
|
+
shell: true,
|
11
|
+
stdio: 'inherit'
|
12
|
+
};
|
13
|
+
|
14
|
+
if (libc.isNonGlibcLinux) {
|
15
|
+
spawnOptions.env.LIBC = process.env.LIBC || libc.family;
|
16
|
+
}
|
17
|
+
|
18
|
+
process.exit(spawnSync(process.argv[2], process.argv.slice(3), spawnOptions).status);
|
@@ -0,0 +1,92 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var platform = require('os').platform();
|
4
|
+
var spawnSync = require('child_process').spawnSync;
|
5
|
+
var readdirSync = require('fs').readdirSync;
|
6
|
+
|
7
|
+
var GLIBC = 'glibc';
|
8
|
+
var MUSL = 'musl';
|
9
|
+
|
10
|
+
var spawnOptions = {
|
11
|
+
encoding: 'utf8',
|
12
|
+
env: process.env
|
13
|
+
};
|
14
|
+
|
15
|
+
if (!spawnSync) {
|
16
|
+
spawnSync = function () {
|
17
|
+
return { status: 126, stdout: '', stderr: '' };
|
18
|
+
};
|
19
|
+
}
|
20
|
+
|
21
|
+
function contains (needle) {
|
22
|
+
return function (haystack) {
|
23
|
+
return haystack.indexOf(needle) !== -1;
|
24
|
+
};
|
25
|
+
}
|
26
|
+
|
27
|
+
function versionFromMuslLdd (out) {
|
28
|
+
return out.split(/[\r\n]+/)[1].trim().split(/\s/)[1];
|
29
|
+
}
|
30
|
+
|
31
|
+
function safeReaddirSync (path) {
|
32
|
+
try {
|
33
|
+
return readdirSync(path);
|
34
|
+
} catch (e) {}
|
35
|
+
return [];
|
36
|
+
}
|
37
|
+
|
38
|
+
var family = '';
|
39
|
+
var version = '';
|
40
|
+
var method = '';
|
41
|
+
|
42
|
+
if (platform === 'linux') {
|
43
|
+
// Try getconf
|
44
|
+
var glibc = spawnSync('getconf', ['GNU_LIBC_VERSION'], spawnOptions);
|
45
|
+
if (glibc.status === 0) {
|
46
|
+
family = GLIBC;
|
47
|
+
version = glibc.stdout.trim().split(' ')[1];
|
48
|
+
method = 'getconf';
|
49
|
+
} else {
|
50
|
+
// Try ldd
|
51
|
+
var ldd = spawnSync('ldd', ['--version'], spawnOptions);
|
52
|
+
if (ldd.status === 0 && ldd.stdout.indexOf(MUSL) !== -1) {
|
53
|
+
family = MUSL;
|
54
|
+
version = versionFromMuslLdd(ldd.stdout);
|
55
|
+
method = 'ldd';
|
56
|
+
} else if (ldd.status === 1 && ldd.stderr.indexOf(MUSL) !== -1) {
|
57
|
+
family = MUSL;
|
58
|
+
version = versionFromMuslLdd(ldd.stderr);
|
59
|
+
method = 'ldd';
|
60
|
+
} else {
|
61
|
+
// Try filesystem (family only)
|
62
|
+
var lib = safeReaddirSync('/lib');
|
63
|
+
if (lib.some(contains('-linux-gnu'))) {
|
64
|
+
family = GLIBC;
|
65
|
+
method = 'filesystem';
|
66
|
+
} else if (lib.some(contains('libc.musl-'))) {
|
67
|
+
family = MUSL;
|
68
|
+
method = 'filesystem';
|
69
|
+
} else if (lib.some(contains('ld-musl-'))) {
|
70
|
+
family = MUSL;
|
71
|
+
method = 'filesystem';
|
72
|
+
} else {
|
73
|
+
var usrSbin = safeReaddirSync('/usr/sbin');
|
74
|
+
if (usrSbin.some(contains('glibc'))) {
|
75
|
+
family = GLIBC;
|
76
|
+
method = 'filesystem';
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
var isNonGlibcLinux = (family !== '' && family !== GLIBC);
|
84
|
+
|
85
|
+
module.exports = {
|
86
|
+
GLIBC: GLIBC,
|
87
|
+
MUSL: MUSL,
|
88
|
+
family: family,
|
89
|
+
version: version,
|
90
|
+
method: method,
|
91
|
+
isNonGlibcLinux: isNonGlibcLinux
|
92
|
+
};
|
@@ -0,0 +1,70 @@
|
|
1
|
+
{
|
2
|
+
"_from": "detect-libc@^1.0.2",
|
3
|
+
"_id": "detect-libc@1.0.3",
|
4
|
+
"_inBundle": false,
|
5
|
+
"_integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=",
|
6
|
+
"_location": "/detect-libc",
|
7
|
+
"_phantomChildren": {},
|
8
|
+
"_requested": {
|
9
|
+
"type": "range",
|
10
|
+
"registry": true,
|
11
|
+
"raw": "detect-libc@^1.0.2",
|
12
|
+
"name": "detect-libc",
|
13
|
+
"escapedName": "detect-libc",
|
14
|
+
"rawSpec": "^1.0.2",
|
15
|
+
"saveSpec": null,
|
16
|
+
"fetchSpec": "^1.0.2"
|
17
|
+
},
|
18
|
+
"_requiredBy": [
|
19
|
+
"/node-pre-gyp"
|
20
|
+
],
|
21
|
+
"_resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz",
|
22
|
+
"_shasum": "fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b",
|
23
|
+
"_spec": "detect-libc@^1.0.2",
|
24
|
+
"_where": "/Users/pdunkel1/Office/fsevents/fsevents/node_modules/node-pre-gyp",
|
25
|
+
"author": {
|
26
|
+
"name": "Lovell Fuller",
|
27
|
+
"email": "npm@lovell.info"
|
28
|
+
},
|
29
|
+
"bin": {
|
30
|
+
"detect-libc": "./bin/detect-libc.js"
|
31
|
+
},
|
32
|
+
"bugs": {
|
33
|
+
"url": "https://github.com/lovell/detect-libc/issues"
|
34
|
+
},
|
35
|
+
"bundleDependencies": false,
|
36
|
+
"contributors": [
|
37
|
+
{
|
38
|
+
"name": "Niklas Salmoukas",
|
39
|
+
"email": "niklas@salmoukas.com"
|
40
|
+
}
|
41
|
+
],
|
42
|
+
"deprecated": false,
|
43
|
+
"description": "Node.js module to detect the C standard library (libc) implementation family and version",
|
44
|
+
"devDependencies": {
|
45
|
+
"ava": "^0.23.0",
|
46
|
+
"nyc": "^11.3.0",
|
47
|
+
"proxyquire": "^1.8.0",
|
48
|
+
"semistandard": "^11.0.0"
|
49
|
+
},
|
50
|
+
"engines": {
|
51
|
+
"node": ">=0.10"
|
52
|
+
},
|
53
|
+
"homepage": "https://github.com/lovell/detect-libc#readme",
|
54
|
+
"keywords": [
|
55
|
+
"libc",
|
56
|
+
"glibc",
|
57
|
+
"musl"
|
58
|
+
],
|
59
|
+
"license": "Apache-2.0",
|
60
|
+
"main": "lib/detect-libc.js",
|
61
|
+
"name": "detect-libc",
|
62
|
+
"repository": {
|
63
|
+
"type": "git",
|
64
|
+
"url": "git://github.com/lovell/detect-libc.git"
|
65
|
+
},
|
66
|
+
"scripts": {
|
67
|
+
"test": "semistandard && nyc --reporter=lcov ava"
|
68
|
+
},
|
69
|
+
"version": "1.0.3"
|
70
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
The ISC License
|
2
|
+
|
3
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
4
|
+
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# fs-minipass
|
2
|
+
|
3
|
+
Filesystem streams based on [minipass](http://npm.im/minipass).
|
4
|
+
|
5
|
+
4 classes are exported:
|
6
|
+
|
7
|
+
- ReadStream
|
8
|
+
- ReadStreamSync
|
9
|
+
- WriteStream
|
10
|
+
- WriteStreamSync
|
11
|
+
|
12
|
+
When using `ReadStreamSync`, all of the data is made available
|
13
|
+
immediately upon consuming the stream. Nothing is buffered in memory
|
14
|
+
when the stream is constructed. If the stream is piped to a writer,
|
15
|
+
then it will synchronously `read()` and emit data into the writer as
|
16
|
+
fast as the writer can consume it. (That is, it will respect
|
17
|
+
backpressure.) If you call `stream.read()` then it will read the
|
18
|
+
entire file and return the contents.
|
19
|
+
|
20
|
+
When using `WriteStreamSync`, every write is flushed to the file
|
21
|
+
synchronously. If your writes all come in a single tick, then it'll
|
22
|
+
write it all out in a single tick. It's as synchronous as you are.
|
23
|
+
|
24
|
+
The async versions work much like their node builtin counterparts,
|
25
|
+
with the exception of introducing significantly less Stream machinery
|
26
|
+
overhead.
|
27
|
+
|
28
|
+
## USAGE
|
29
|
+
|
30
|
+
It's just streams, you pipe them or read() them or write() to them.
|
31
|
+
|
32
|
+
```js
|
33
|
+
const fsm = require('fs-minipass')
|
34
|
+
const readStream = new fsm.ReadStream('file.txt')
|
35
|
+
const writeStream = new fsm.WriteStream('output.txt')
|
36
|
+
writeStream.write('some file header or whatever\n')
|
37
|
+
readStream.pipe(writeStream)
|
38
|
+
```
|
39
|
+
|
40
|
+
## ReadStream(path, options)
|
41
|
+
|
42
|
+
Path string is required, but somewhat irrelevant if an open file
|
43
|
+
descriptor is passed in as an option.
|
44
|
+
|
45
|
+
Options:
|
46
|
+
|
47
|
+
- `fd` Pass in a numeric file descriptor, if the file is already open.
|
48
|
+
- `readSize` The size of reads to do, defaults to 16MB
|
49
|
+
- `size` The size of the file, if known. Prevents zero-byte read()
|
50
|
+
call at the end.
|
51
|
+
- `autoClose` Set to `false` to prevent the file descriptor from being
|
52
|
+
closed when the file is done being read.
|
53
|
+
|
54
|
+
## WriteStream(path, options)
|
55
|
+
|
56
|
+
Path string is required, but somewhat irrelevant if an open file
|
57
|
+
descriptor is passed in as an option.
|
58
|
+
|
59
|
+
Options:
|
60
|
+
|
61
|
+
- `fd` Pass in a numeric file descriptor, if the file is already open.
|
62
|
+
- `mode` The mode to create the file with. Defaults to `0o666`.
|
63
|
+
- `start` The position in the file to start reading. If not
|
64
|
+
specified, then the file will start writing at position zero, and be
|
65
|
+
truncated by default.
|
66
|
+
- `autoClose` Set to `false` to prevent the file descriptor from being
|
67
|
+
closed when the stream is ended.
|
68
|
+
- `flags` Flags to use when opening the file. Irrelevant if `fd` is
|
69
|
+
passed in, since file won't be opened in that case. Defaults to
|
70
|
+
`'a'` if a `pos` is specified, or `'w'` otherwise.
|