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

pasteall

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pasteall

Posts snippets to pasteall.org

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

Pasteall (for node.js)

A little interface to pasteall.org -- the world's best pastebin.

Installation

Just install with NPM, it's that easy.

npm install pasteall

Example

It'll (hopefully) be the simplest thing you use today. You pass in the code/text you want to paste, and optionally, a language.

var pasteall = require("pasteall");
var code = "function(foo,bar,quux){\n  console.log('foothousandthree');\n}";
var language = "javascript";
pasteall.paste(code,language,function(err,url){
    if (!err) {
        console.log("resulting url of paste:",url);
    } else {
        console.log("pasteall errored: ",err);
    }
});

Or, without a language specified.

var pasteall = require("pasteall");
var code = "function(foo,bar,quux){\n  console.log('foothousandthree');\n}";
pasteall.paste(code,function(err,url){
    if (!err) {
        console.log("resulting url of paste:",url);
    } else {
        console.log("pasteall errored: ",err);
    }
});

Detailed Usage

pasteall.paste(code_or_text, language, [callback(err,resulting_url)])

  • code_or_text is the code or text you'd like to paste
  • language Is the language you'd like this highlighted as [optional]
  • callback when finished encoding, returns if there was an error (as boolean)

Regarding the list of languages, here's some common ones:

  • javascript
  • php
  • mysql
  • ruby
  • haskell
  • cpp

You can check out pasteall.org and view the drop-down for a long list. Or, checkout pasteall.js herein.

Keywords

pastebin

FAQs

Package last updated on 14 Oct 2014

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