
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Fast and simple package to get and create bins from https://sourceb.in/
Fast and simple package to get and create bins from sourcebin
NodeJS >= 14.x
npm install sourcebin
This README is the best place to learn how to use this package, you can also take a look at our API docs
// Import individual methods
import { create, get, url } from 'sourcebin';
// Import all methods
import * as sourcebin from 'sourcebin';
// Use required
const { create, get, url } = require('sourcebin');
get(options)
const bin = await get({
key: 'qXO2NVhRc6'
});
Option | Description | Default | Required |
---|---|---|---|
key | The key to get | n/a | ✅ |
fetchContent | Should the bin content be fetched | true | ❌ |
create(options)
const bin = await create(
{
title: 'bin name',
description: 'test bin',
files: [
{
content: 'Hello World',
language: 'text',
},
],
},
);
Option | Description | Required |
---|---|---|
title | Title of the bin | ❌ |
description | Description of the bin | ❌ |
files | Bin files - see below | ✅ |
Option | Description | Default | Required |
---|---|---|---|
content | Contents of the file | n/a | ✅ |
language | What language should the file be | text | ❌ |
If you want to get information about a bin try the url
function.
const urlData = url('iQznILdZRP');
// or
const urlData = url('https://sourceb.in/iQznILdZRP');
This returns an object that looks like:
{
key: 'iQznILdZRP',
url: 'https://sourceb.in/iQznILdZRP',
short: 'http://srcb.in/iQznILdZRP'
}
This is not currently possible with this wrapper as sourcebin doesn't have a token system for authentication, only pro users are able to have multiple files in one bin. This may come in the future
v5 is a overhaull of sourcebin
so we changed some apis.
Instead of passing the key
then options
it's now one object.
- const bin = await get('qXO2NVhRc6');
+ const bin = await get({ key: 'qXO2NVhRc6' });
- const bin = await get('qXO2NVhRc6', { fetchContent: false });
+ const bin = await get({ key: 'qXO2NVhRc6', fetchContent: false });
We also unified the options for this function:
- const bin = await create(
- [
- {
- content: 'Hello World',
- language: 'text',
- },
- ],
- {
- title: 'bin name',
- description: 'test bin',
- },
- );
+ const bin = await create(
+ {
+ title: 'bin name',
+ description: 'test bin',
+ files: [
+ {
+ content: 'Hello World',
+ language: 'text',
+ },
+ ],
+ }
+ );
FAQs
Fast and simple package to get and create bins from https://sourceb.in/
The npm package sourcebin receives a total of 421 weekly downloads. As such, sourcebin popularity was classified as not popular.
We found that sourcebin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.