Test if value matches the provided predicate. Create a reusable validator.
validation type-checking nodejs npm-package type types check checking guard guards assert assertion predicate predicates is validate utility util typeof instanceof objectThe file type is detected by checking the magic number of the buffer.Show your support for this module by buying this excellent Node.js course.
nodejs uint8array buffer magic-numbers file magic file-types detect mime type archive image img pic picture flash photo video check is exif exe binary jpg png gif webp flif cr2 tif bmp jxr psd zip tar rar gz bz2 7z dmg mp4 m4v mid mkv webm mov avi mpg mp3 m4a ogg opus flac wav amr pdf epub mobi swf rtf woff woff2 eot ttf otf ico flv ps xz sqlite xpi cab deb ar rpm z lz msi mxf mts wasm webassembly blend bpg docx pptx xlsx 3gp jp2 jpm jpx mj2 aif odt ods odp xmlConvert JSON Objects to MySQL Table Schema, JSON Schema, Mongoose Schema, ClickHouse Schema, Google BigQuery, or a Generic template for documentation, code generation, and more. Optionally, add -g to the above if you want the generate-schema command line executable.
json schema object convert manipulate traverse types type is generate produce mongoose generic validation bigquery google data datatypesWorks in Node.js and the browser (with browserify/webpack).In the browser you have navigator.onLine, but it's useless as it only tells you if there's a local connection, and not whether the internet is accessible.
internet internet-connection nodejs browser connectivity detect network online ping reachability offline is-online connected is has hostname hostnames dns socket reachable accessibleA wicked-powerful text macro language for building binary files. Supports comments, looping, Unicode, variables, conditionals, macros and recursion. TLDR; Check out example/.
programming-language command-line macros wtf is up kyleIs the current JS environment a touch device?
touch is documenttouch maxtouchpoints msmaxtouchpoints touchpoints ontouchstartES2015 Number.isNaN() ponyfill
es2015 ecmascript ponyfill polyfill shim number is nan notWhy not is-promise? That module checks for a thenable, not an ES2015 promise. This one is stricter.You most likely don't need this. Just pass your value to Promise.resolve() and let it handle it.
promise is detect check kind type thenable es2015 async await promises bluebirdCheck if a value is an Observable
observable observables is check detect typeCheck if the internet connection is up
nodejs cli cli-app connectivity detect internet internet-connection network online ping reachability browser offline is-online connected is has hostname hostnames dns socket reachable accessible
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.