
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
lassy-xpath
Advanced tools
[](https://github.com/UUDigitalHumanitieslab/lassy-xpath/actions) [](https://badge.fury.io/js/lassy-xpa
Module for working with XPath queries on LASSY XML files. It includes a graphical editor including auto completion, macros and validation based on Ace, a parser and validator based on ts-xpath and an "extractinator" for determining XPaths to get each node from the returned tree separately. It also has a "reconstructor" to create an XML structure representing the query tree. The functionality can be used as an Angular module.
npm install lassy-xpath
Import the module:
import { LassyXPathModule } from 'lassy-xpath';
@NgModule({
imports: [LassyXPathModule]
})
export class AppModule {}
Includes the services:
import { MacroService, ExtractinatorService, ValueEvent } from 'lassy-xpath';
@Component()
export class ExampleComponent {
constructor(
macroService: MacroService,
private extractinatorService: ExtractinatorService) {
// set the macros to use in the editor
macroService.loadDefault();
}
inputChanged(event: ValueEvent) {
this.valid = !event.error;
this.value = event.xpath;
console.log(this.extractinatorService.extract(event.xpath));
}
}
Embeds an editor:
<lx-editor [value]="value" (onChange)="inputChanged($event)" autofocus="true"></lx-editor>
Use the ParserService for parsing/validating a LASSY XML XPath.
Run npm run publish from root or follow these steps:
npm run buildcd dist/lassy-xpathnpm pack to test the package locallylassy-xpath-x.xx.x.tgz file (if generated in 3)npm publishFAQs
[](https://github.com/UUDigitalHumanitieslab/lassy-xpath/actions) [](https://badge.fury.io/js/lassy-xpa
The npm package lassy-xpath receives a total of 60 weekly downloads. As such, lassy-xpath popularity was classified as not popular.
We found that lassy-xpath demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.