
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@consensys/native-ramps-sdk
Advanced tools
yarn add @consensys/native-ramps-sdk
or
npm install @consensys/native-ramps-sdk
import { NativeRampsSdk } from '@consensys/native-ramps-sdk'
// Initialize the SDK
const nativeRampsSdk = new NativeRampsSdk()
// Use the SDK methods
To update the SDK version:
Update the version number in package.json
:
{
"version": "1.0.1"
}
Install dependencies to sync the version:
npm install
The SDK automatically uses the version from package.json
for all version-related functionality.
For local development and testing of the SDK:
Install dependencies:
npm install
Build the SDK:
npm run build
This will:
.d.ts
files)dist/
directoryTo test your local changes in another project without publishing:
Build the SDK (as shown above)
Copy the entire dist/
folder to your target project's node_modules/@consensys/native-ramps-sdk/
directory:
# From your target project directory
cp -r /path/to/native-ramps-sdk/dist/* ./node_modules/@consensys/native-ramps-sdk/dist/
Alternatively, you can use npm link for a more seamless development experience:
# In the SDK directory
npm link
# In your target project directory
npm link @consensys/native-ramps-sdk
src/
npm run build
to compile your changesdist/
files to your test project or use npm linknpm run test
- Run testsnpm run lint
- Check code stylenpm run prettier
- Format codenpm run test:watch
- Run tests in watch modeFAQs
## Getting started
We found that @consensys/native-ramps-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 open source maintainers collaborating on the project.
Did you know?
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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.