معرفی شرکت ها


clean-yaml-object-0.1.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Clean up an object prior to serialization
ویژگی مقدار
سیستم عامل -
نام فایل clean-yaml-object-0.1.0
نام clean-yaml-object
نسخه کتابخانه 0.1.0
نگهدارنده ['jamestalmage', 'isaacs', 'bcoe']
ایمیل نگهدارنده ['james@talmage.io', 'i@izs.me', 'bencoe@gmail.com']
نویسنده James Talmage
ایمیل نویسنده james@talmage.io
آدرس صفحه اصلی git+https://github.com/tapjs/clean-yaml-object.git
آدرس اینترنتی https://github.com/tapjs/clean-yaml-object#readme
مجوز MIT
# clean-yaml-object [![Build Status](https://travis-ci.org/tapjs/clean-yaml-object.svg?branch=master)](https://travis-ci.org/tapjs/clean-yaml-object) [![Coverage Status](https://coveralls.io/repos/tapjs/clean-yaml-object/badge.svg?branch=master&service=github)](https://coveralls.io/github/tapjs/clean-yaml-object?branch=master) > Clean up an object prior to serialization. Replaces circular references, pretty prints Buffers, and numerous other enhancements. Primarily designed to prepare Errors for serialization to JSON/YAML. Extracted from [`node-tap`](https://github.com/tapjs/node-tap) ## Install ``` $ npm install --save clean-yaml-object ``` ## Usage ```js const cleanYamlObject = require('clean-yaml-object'); cleanYamlObject(new Error('foo')); //=> {name: 'Error', message: 'foo', stack: ...} ``` ## API ### cleanYamlObject(input, [filterFn]) Returns a deep copy of `input` that is suitable for serialization. #### input Type: `*` Any object. #### filterFn Type: `callback(propertyName, isRoot, source, target)` Optional filter callback. Returning `true` will cause the property to be copied. Otherwise it will be skipped - `propertyName`: The property being copied. - `isRoot`: `true` only if `source` is the top level object passed to `copyYamlObject` - `source`: The source from which `source[propertyName]` will be copied. - `target`: The target object. ## License MIT © [Isaac Z. Schlueter](http://github.com/isaacs) [James Talmage](http://github.com/jamestalmage)


زبان مورد نیاز

مقدار نام
5.3.0 Npm


نحوه نصب


نصب پکیج tgz clean-yaml-object-0.1.0:

    npm install clean-yaml-object-0.1.0.tgz