
Security News
Inside Lodash’s Security Reset and Maintenance Reboot
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.
@nichoth/dom-utils
Advanced tools
npm i -D @nichoth/dom-utils
Use this in tests to help with DOM manipulation.
Wait for an element that matches a given selector. Default timeout is 5 seconds.
export function waitFor (args:{
selector?:string,
visible?:boolean,
timeout?:number
}, lambda?:()=>Element|null): Promise<Element|HTMLElement|void>
import { test } from '@nichoth/tapzero'
import * as dom from '@nichoth/dom-utils'
test('dom.waitFor', async t => {
const el = await dom.waitFor({
selector: '#foo'
})
t.equal(el!.textContent, 'bar', 'should find the element')
})
Search for some text content. Default timeout is 5 seconds.
export function waitForText (args:{
timeout?:number,
element?:Element,
text?:string,
regex?:RegExp,
multipleTags?:boolean
}): Promise<Element|HTMLElement|void>
import { test } from '@nichoth/tapzero'
import * as dom from '@nichoth/dom-utils'
test('dom.waitForText', async t => {
// use the element we created previously
const el = await dom.waitForText({
element: document.body,
regex: /bar/
})
t.ok(el, 'should find by text content')
})
FAQs
Helpers for working with the DOM in tests
The npm package @nichoth/dom-utils receives a total of 0 weekly downloads. As such, @nichoth/dom-utils popularity was classified as not popular.
We found that @nichoth/dom-utils 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
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.

Security News
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.