Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@movable/data-sources-parser
Advanced tools
This library contains a library for parsing Data Sources responses in a consistent way.
This library contains a library for parsing Data Sources responses in a consistent way.
This class takes an HTML string and the URL of the HTML in its constructor. For example:
import { HTMLNormalizer } from 'data-sources-parser';
new HTMLNormalizer(`
<html>
<body>
<h1>Hello, world!</h1>
</body>
</html>
`, 'https://www.movableink.com');
This provides the created document object.
import { HTMLNormalizer } from 'data-sources-parser';
const { document } = new HTMLNormalizer('<html>...</html>', 'https://www.movableink.com');
const header = document.querySelector('h1');
This provides the base URL of the page, taking into account any <base>
tag and the provided URL:
import { HTMLNormalizer } from 'data-sources-parser';
const { baseURL } = new HTMLNormalizer('<base href="/home/" />', 'https://www.movableink.com');
console.log(baseURL); // https://www.movableink.com/home/
This takes a path (likely from an href
or src
) and converts it into its fully qualified URL, taking into account the URL and <base>
tags of the page.
import { HTMLNormalizer } from 'data-sources-parser';
const normalizer = new HTMLNormalizer('<base href="/home/" />', 'https://www.movableink.com');
const logoURL = normalizer.absolutizePath('images/logo.png');
console.log(logoURL); // https://www.movableink.com/home/images/logo.png
To release a change, run the release command.
(This uses release-it for managing the releases).
yarn run release
By default, this will be a patch release. If you wish to release a different change:
yarn run release patch;
yarn run release minor;
yarn run release major;
yarn run release 2.8.3;
FAQs
This library contains a library for parsing Data Sources responses in a consistent way.
The npm package @movable/data-sources-parser receives a total of 20 weekly downloads. As such, @movable/data-sources-parser popularity was classified as not popular.
We found that @movable/data-sources-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.