New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jensmeindertsma/package-template

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jensmeindertsma/package-template

A template for quick-starting your NPM package.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

package-template

A template for quick-starting your NPM package.

This project includes fully automated formatting, linting, testing, type-checking and publishing. It gives you everything you need to publish your own package to the NPM registry with confidence. By default this project will publish a new version to the NPM registry when you push a commit to the main branch that has a tag with the same name. See the package.json file for included scripts.

To help move the ecosystem forward, this package only supports ECMAScript Modules. It does not provide CommonJS modules. You can import this package from CommonJS, but only asynchronously. The user of your package must have TypeScript@<4.5-beta or higher> installed and must have set "module": "nodenext" in his tsconfig.json file.

To use this yourself, add a NPM_TOKEN secret to your GitHub repository containing an API token you can retrieve from the NPM website under "Account Settings". This is needed for the automated publishing.

API

This package includes a basic add function that just demonstrates the functionality of the package.

add

The function add adds two numbers together and returns the result:

import { add } from "@jensmeindertsma/template-package";

const result = add(2, 3);

expect(result).toEqual(5);

Keywords

FAQs

Package last updated on 04 Nov 2021

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