
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
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.
The npm package use-unsplash receives a total of 1 weekly downloads. As such, use-unsplash popularity was classified as not popular.
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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

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