
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@advanced-rest-client/uuid-generator
Advanced tools
An UUID v4 generator as a plain web component and an ES module. Made for a web browser.
npm install --save @advanced-rest-client/uuid-generator
import { v4 } from '@advanced-rest-client/uuid-generator';
console.log(v4());
<html>
<head>
<script type="module">
import '@advanced-rest-client/uuid-generator';
</script>
</head>
<body>
<uuid-generator id="uuid"></uuid-generator>
<script>
console.log(uuid.generate());
</script>
</body>
</html>
import { LitElement, html } from 'lit-element';
import { v4 } from '@advanced-rest-client/uuid-generator';
class SampleElement extends LitElement {
render() {
return html`my component`;
}
_someOperation() {
const uuid = v4();
}
}
customElements.define('sample-element', SampleElement);
For historic reasons the index.js
file contains an export for both the v4
function but also the web component. When using this module in a web worker or in Node this would cause an error.
Instead import the module with the main.js
file. For compatibility this file is not set as the module
in the package.json
file.
import { v4 } from '@advanced-rest-client/uuid-generator/main.js';
git clone https://github.com/advanced-rest-client/uuid-generator
cd uuid-generator
npm install
npm start
npm test
FAQs
An UUID generator as a web component
The npm package @advanced-rest-client/uuid-generator receives a total of 338 weekly downloads. As such, @advanced-rest-client/uuid-generator popularity was classified as not popular.
We found that @advanced-rest-client/uuid-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.