Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 1, 2024 via pnpm

identity-obj-proxy 3.0.0

an identity object using ES6 proxies
Package summary
Share
0
issues
2
licenses
1
(Apache-2.0 OR MPL-1.1)
1
MIT
Package created
26 Dec 2015
Version published
3 Aug 2016
Maintainers
1
Total deps
2
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

(Apache-2.0 OR MPL-1.1)

Permissive
1 Packages, Including:
harmony-reflect@1.6.2

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
identity-obj-proxy@3.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of identity-obj-proxy 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
harmony-reflect1.6.220.15 kB(Apache-2.0 OR MPL-1.1)
prod

Visualizations

Frequently Asked Questions

What does identity-obj-proxy do?

Identity-obj-proxy is a JavaScript package that creates an identity object using ES6 proxies. It's specifically designed to be useful for testing trivial webpack imports. When using tools like Jest for testing, you can mock this object for imported CSS modules, meaning all your className lookups on the imported styles object will be just returned as they are read in.

How do you use identity-obj-proxy?

You can install identity-obj-proxy by running npm install identity-obj-proxy in your project directory. Usage is straightforward as the module exports a proxy object that returns the property name as the value for any given property. Here is a quick usage demonstration:

import idObj from 'identity-obj-proxy';

console.log(idObj.foo);  // This will output 'foo'
console.log(idObj.bar);  // This will output 'bar'
console.log(idObj[1]);  // This will output '1'

Just remember that if you are using Node.js versions v5.* and v4.* you will need to use the node --harmony_proxies flag as this package uses ES6 proxies.

Where are the identity-obj-proxy docs?

As for the documentation of identity-obj-proxy, you can find more detailed information in the README file on the GitHub repository of the package. The documentation provides an explanation of its purpose, requirements, an example demonstrating its use, and additional resources related to the project.

All Versions