Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-countup

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-countup

To create a svelte component package or a web component package

  • 0.0.1
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Svelte component template

To create a svelte component package or a web component package

Usage

  1. In package.json file change name of your package (kebab-case string)
  2. In package.json file change componentname value to your own component name (PascalCase string).

Try it in your app

  1. Run npm pack
  2. Test your component in your Svelte app by installing it locally npm i ./path/to/package/
  3. Import it in your app import YourComponentName from 'your-package-name'

Publish your package to npm

  1. Deploy your package to npm with npm publish

Make it a web component

  1. Add <svelte:options tag="custom-element" /> tag to your component where custom-element is the tag name of your web component
  2. In rollup.config.js file set plugins > svelte > compilerOptions > customElement to true
  3. Import your component like import 'your-package-name'
  4. Use your web component like <custom-element></custom-element> tag where custom-element is the tag name you chose in step 1

FAQs

Package last updated on 01 Mar 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc