3.0.0 • Published 8 years ago

identity-obj-proxy v3.0.0

Weekly downloads
3,395,557
License
MIT
Repository
github
Last release
8 years ago

identity-obj-proxy Build Status npm version test coverage

An identity object using ES6 proxies. Useful for testing trivial webpack imports. For instance, you can tell Jest to mock this object as imported CSS modules; then all your className lookups on the imported styles object will be returned as-is.

npm install identity-obj-proxy

Requirement

No flag is required for Node.js v6.*; use node --harmony_proxies flag for v5.* and v4.*.

Example

import idObj from 'identity-obj-proxy';
console.log(idObj.foo); // 'foo'
console.log(idObj.bar); // 'bar'
console.log(idObj[1]); // '1'
react-scriptsxmi-scriptselcia-novaui@bsolution/dev@bsolution/fast@bsolution/scripts@atmosfera/config@procore/labs-data-table-cells@zhouhaifei/test@savaleukhin/react-scripts@scentregroup/react-scripts@talesman/react-scriptsbit-bincarrier_anal@corabank/ibankingcbbpa-clientcc-gram-demoreact-wind-uismart-input-demobyteplayerkstick-react-scriptszfzn-uiwatsize-test-react-scripts@psimk/react-scriptsglobal-martcomatch-mvp-debuggingmobilelivedesignsystemreact@darapti/darapti-react-scriptsswitch_mostqroda-sdkqroda-sdk-v1metaliquid-react-scriptsrockywu-ui@tomas2d/react-scriptsjbojcic-react-scriptsupnext-apps-readerreact-baremin2@jvhellemondt/custom-react-scripts@st4rfox/electron-scriptssv-component-librarysv-component-library-1sv-component-library-2@thuanpq/airvert-ui@xinyifly/react-scripts@odahu/jupyter-legion-test@tokarevtest/jupz@ipavinthan/react-scriptsmio-cli-service@katalabut/react-scriptsandculturecode-react-scriptswebeetle-react-scriptsyadong-react@agney/react-scripts-tailwindzackmoreplay-react-scriptsgooapps-react-opsthefarm-react-scripts@wywk/headquaters-marketing-eventconcord-ui-plugin-react-scriptssebrae-boilerplatesebrae-react-scripts@cloudhuset/zd-app-react-scriptsidelic-react-scriptstest-app-6test-app-7tm-components-test@jvhellemondt/react-scriptsearthling-interactive-react-scriptshoogo-niuyapingreact-epic-image-sliderpejann-scriptsmy-custom-react-jwplayerdne-react-starterinversify-react-scriptselectron-cra-scriptsecom-catalogjs-advancedplatinion-paris-react-componentsreact-scripts-public-urlzula-bravo@acorns/web-componentssmartinput-reactstar-react-scripts@amajola/react-scripts@priyanknamdeo16/react-scripts@ashversache/toasterreactor-scripts-for-laravelorbit-shared-components@packages-pragma/react-appreact-cleanupreact-components-common-libraryprinter-editorwasm-worker-react-scriptsoptym-react-scripts@viren.ratan/react-scripts-jsscrazymagi-react-scriptsreact-monorepo-react-scriptsjob-search-web@brielov/react-scriptsdigitalocean-react-scriptsplan8studios-react-scripts
3.0.0

8 years ago

2.0.0

9 years ago

1.0.0

9 years ago