2.0.0 ā€¢ Published 4 years ago

scarf-package v2.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

scarf-package

DOWNLOADS Node.js CLI Learn VSCode Sponsor Follow @MrAhmadAwais on Twitter

Add a scarf package with API

šŸ“Ÿ

Install

npm install scarf-package

āš™ļø

Usage

const scarfPackage = require('scarf-package');

(async () => {
	const pkg = {name: `cli-meow-help`};
	const res = await scarfPackage(pkg);

	if (res.status === 200) {
		console.log(`SUCCESS: ${pkg.name} added!`);
	} else {
		console.log(`Failed`);
		console.log(res);
	}
})();

šŸ“ƒ

API

scarfPackage(options)

āÆ options

Type: object Default: ā†“

{
	username: undefined,
	apiKey: undefined,
	name: undefined,
	desc = '',
	externalLibraryType = 'npm'
}

You can specify the options below.

āÆ username

Type: string Default: undefined

Required username of Scarf.sh site.

āÆ username

Type: string Default: undefined

Required API Token of Scarf.sh site. Find it in your user account settings page.

āÆ name

Type: string Default: undefined

Required name of the package.

āÆ desc

Type: string Default: '' (optional)

Optional short description of the package.

āÆ externalLibraryType

Type: string Default: 'npm' (optional)

Type of the external library.

šŸ“

Changelog

āÆ Read the changelog here ā†’

KEY: šŸ“¦ NEW, šŸ‘Œ IMPROVE, šŸ› FIX, šŸ“– DOC, šŸš€ RELEASE, and šŸ¤– TEST

I use Emoji-log, you should try it and simplify your git commits.

šŸ“ƒ

License & Conduct

šŸ™Œ

Connect

šŸ‘Œ

Sponsor

Me (Ahmad Awais) and my incredible wife (Maedah Batool) are two engineers who fell in love with open source and then with each other. You can read more about me here. If you or your company use any of my projects or like what Iā€™m doing then consider backing me. I'm in this for the long run. An open-source developer advocate.

Ahmad on Twitter

NodeCLI.com ā€” Learn to build Node.js CLI Automation

This repository is part of the NodeCLI.com course.

After building hundreds of developer automation tools used by millions of developers, I am sharing exactly how you can do it yourself with minimum effective effort. Learn to build Node.js & JavaScript based CLI (Command Line Interface) apps. Automate the grunt work, do more in less time, impress your manager, and help the community. ā†’ I'm sharing it all in this online video course. Node CLI Automation without wasting a 1,000 hours ā†’

Node CLI Course

Node CLI

Awais on Twitter

2.0.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago