
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
use-unsplash
Advanced tools
React hook to get a unsplash image and its metadata with ease.
yarn add @zeekrey/useunsplash
npm install @zeekrey/useunsplash
Basic usage:
const [image, imageMeta] = useUnsplash({
apikey: '21jkwopdio29khp192',
id: 'VMPhyAoVqqk',
options: { w: 600, ar: '2:1', fit: 'crop' },
}),
This is the object thats needs to be provided when using the hook:
The hook returns an array with the following two parameters:
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Run tests with
yarn test
To run tests you need to create env file like this:
cd <project-root> && echo process.env.APIKEY = 'your_api_key' > .env.js
FAQs
> React hook to get a unsplash image and its metadata with ease.
We found that use-unsplash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.