New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
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.

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
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

eslint

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