New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lmfcli

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lmfcli

a packager for installing and publishing code bases of any language

latest
npmnpm
Version
1.5.2
Version published
Maintainers
1
Created
Source

LMF Client

Lmf Client is a packager for installing and publishing code bases.

Installation

$ npm install lmfcli --g

$ lmfcli setup

this only has to be done once.

Usage

Installing a codebase

$ lmfcli install test

lmf-cli success 📦 + test

# or if it fails,
lmf-cli err package not found

Now, in our js file, we can use the codebase.

var codebase = require('./lmf_packages/test');

codebase.methods.test()
codebase.doSomething()
new codebase.someClass()
.setName('hello!');

Publishing a codebase

# to publish a codebase, the user must first initilize a lmf project to the working directory.

$ lmfcli init
📦 Name? example-name # Remember, names can not have spaces or special characters other than '-' and '_'.
🚀 Version? 1.0.0 # This is the template for a version.
🗃️ Description? an example project! # This can be anything. (140 character limit though)
🗂️ Codepoint? example.js # this is the file that will be published. Only 1 file can be published, but we are working on a package system.
lmf-cli success ✅ initilized lmf project: example-name 

This should create a file called 'lmf.json' to the working directory.

Publishing

$ lmfcli publish

# information will be shown here.

# the client will make a request to the server, and will check if the package already exists.

# if not, it will publish the package under the user's id.
lmf-cli success 📦 + example-name

# if it finds a file, it will return an error and will not publish.
lmf-cli err package already exists

Thank you for using lmf-cli!

© Mybutton Corporation, 2022.

Check out other projects!

mb-encrypt - an encryption system to encode JSON objects.

Keywords

packager

FAQs

Package last updated on 19 May 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