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

sfdx-js

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sfdx-js

A node wrapper for Salesforce DX

latest
Source
npmnpm
Version
4.5.0
Version published
Maintainers
1
Created
Source

SFDX javascript wrapper.

styled with prettier Greenkeeper badge Travis Coveralls Dev Dependencies

A TypeScript compatible JavaScript wrapper for Salesforce DX CLI.

Usage

   const sfdx = require('sfdx-js').Client.createUsingPath('sfdx')
   sfdx.auth.webLogin().then(function() {
     console.log('done!');
   })

Documentation

Read our doc here: https://coveo.github.io/sfdx-js/

dev scripts

  • npm t: Run test suite.
  • npm start: Runs npm run build in watch mode.
  • npm run test:watch: Run test suite in interactive watch mode.
  • npm run test:prod: Run linting and generate coverage.
  • npm run build: Generage bundles and typings, create docs.
  • npm run lint: Lints code.
  • npm run commit: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:).
  • npm run generate: Generate wrapper classes using the SFDX executable in path.

Git Hooks

There is already set a precommit hook for formatting your code with Prettier :nail_care:

There are 2 Git hooks, they make sure that:

This makes more sense in combination with automatic releases.

Credits

Made with :heart:

Keywords

sfdx

FAQs

Package last updated on 27 Nov 2018

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