Socket
Socket
Sign inDemoInstall

anybin

Package Overview
Dependencies
239
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    anybin

Half(backend) of a bin website


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
20.7 MB
Created
Weekly downloads
 

Readme

Source

AnyBin

A boilerplate bin website for saving text in a database and access it with a short URL. Very similar to PasteBin or JSBin. This is mostly back-end implementation of the website. Front-end is very simple.

Try a version of the app running here

Work in progress

Features

  • Automatically saves document changes in the database
  • Automatically makes a new version each time user saves a bin
  • Import from another page on the web with ?import query parameter. Example: http://anybin.herokuapp.com/?import=https://raw.githubusercontent.com/mohsen1/anybin/master/README.md
  • Client side cache of recently made versions

Running locally

git clone git@github.com:mohsen1/anybin.git
cd anybin
npm install
npm run dev

Server command line options

  • config for selecting the configuration file
  • views for selecting the folder to look for index.ejs file
  • public for selecting public content folder
  • db MongoDB URL, it will override database URLs in config.js
Example
$ node app/server.js \
  --config='/path/to/my/config.js' \
  --views='/path/to/my/views-folder/' \
  --public='/path/to/my/public-folder' \
  --db='mongodb://user:pass@me.dbhost.com:9999/my-db'

Routes

Website
OperationPathDescription
GET/Load homepage
GET/?import=urlLoad homepage and import from url
GET/:idLoad a bin
GET/:id/:versionLoad a bin at a version
API
OperationPathDescription
POST/api/Make a new Bin
POST/api?import=urlMake a new Bin form url
GET/api/:idGet latest version of a bin
PUT/api/:idUpdate latest version of a bin
POST/api/:idAdd a new version to a bin
GET/api/:/id/:versionGet a specific version of a bin

License

MIT

FAQs

Last updated on 22 Sep 2014

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc