{"_id":"is-view","_rev":"82648","name":"is-view","description":"Returns true if a value is an object and appears to be a valid Templates view object.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:26:20.000Z","created":"2018-03-05T08:54:13.796Z","1.0.0":"2018-03-05T08:54:13.796Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-view.git"},"versions":{"1.0.0":{"name":"is-view","description":"Returns true if a value is an object and appears to be a valid Templates view object.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/is-view","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-view.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-view/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^6.0.2"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["is","view"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["assemble","templates","vinyl"]},"reflinks":["assemble","templates","vinyl"]},"gitHead":"8459ca015727ed989def3b64c2da9d9cb618cf32","_id":"is-view@1.0.0","_npmVersion":"5.7.1","_nodeVersion":"9.7.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"527368ec0ba2a9753996690966205391773b707b","size":2958,"noattachment":false,"key":"/is-view/-/is-view-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-view/download/is-view-1.0.0.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-view_1.0.0_1520240053640_0.5611383396794583"},"_hasShrinkwrap":false,"publish_time":1520240053796,"_cnpm_publish_time":1520240053796}},"readme":"# is-view [![NPM version](https://img.shields.io/npm/v/is-view.svg?style=flat)](https://www.npmjs.com/package/is-view) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-view.svg?style=flat)](https://npmjs.org/package/is-view) [![NPM total downloads](https://img.shields.io/npm/dt/is-view.svg?style=flat)](https://npmjs.org/package/is-view) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-view.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-view)\n\n> Returns true if a value is an object and appears to be a valid Templates view object.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save is-view\n```\n\n## Usage\n\n```js\nconst isView = require('is-view');\n```\n\nReturns `true` when the given value has properties expected on a [templates](https://github.com/jonschlinkert/templates) (or [assemble](https://github.com/assemble/assemble)) view. Views are also valid [vinyl](https://github.com/gulpjs/vinyl) objects:\n\n```js\nconsole.log(isView({ path: 'foo' }));                    \nconsole.log(isView({ path: '' }));                    \n//=> true\nconsole.log(isView({ _isVinyl: true }));                 \n//=> true\nconsole.log(isView({ isView: true }));                   \n//=> true\nconsole.log(isView({ content: '' }));                    \n//=> true\nconsole.log(isView({ content: null }));                  \n//=> true\nconsole.log(isView({ contents: null }));                 \n//=> true\nconsole.log(isView({ contents: new Buffer('') }));       \n//=> true\nconsole.log(isView({ contents: { pipe: () => {} } }));   \n//=> true\n```\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [assemble](https://www.npmjs.com/package/assemble): Get the rocks out of your socks! Assemble makes you fast at creating web projects… [more](https://github.com/assemble/assemble) | [homepage](https://github.com/assemble/assemble \"Get the rocks out of your socks! Assemble makes you fast at creating web projects. Assemble is used by thousands of projects for rapid prototyping, creating themes, scaffolds, boilerplates, e-books, UI components, API documentation, blogs, building websit\")\n* [templates](https://www.npmjs.com/package/templates): System for creating and managing template collections, and rendering templates with any node.js template engine… [more](https://github.com/jonschlinkert/templates) | [homepage](https://github.com/jonschlinkert/templates \"System for creating and managing template collections, and rendering templates with any node.js template engine. Can be used as the basis for creating a static site generator or blog framework.\")\n* [vinyl](https://www.npmjs.com/package/vinyl): Virtual file format. | [homepage](https://github.com/gulpjs/vinyl#readme \"Virtual file format.\")\n\n### Author\n\n**Jon Schlinkert**\n\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on March 05, 2018._","_attachments":{},"homepage":"https://github.com/jonschlinkert/is-view","bugs":{"url":"https://github.com/jonschlinkert/is-view/issues"},"license":"MIT"}