npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

bpt-barcoding

v0.1.0

Published

A small library for pulling in BPT barcode data.

Readme

Brown Paper Tickets Barcoding

Get barcodes of tickets sold to your events.

This library uses an API endpoint for the old v1 API. Unfortunately, a barcoding endpoint in v2 does not exist. This is currently the only way to obtain barcde data.

Brown Paper Tickets uses Code 128b barcodes. Build Status

Install

Install via npm: npm install bpt-barcoding.

Usage

var barcoding = require('bpt-barcoding');

Parse a CSV downloaded from Brown Paper Tickets.

barcoding.parseBarcodeFile('/path/to/a/csv/file.csv', function(error, barcodes) {
	
	if (error) {
		return error;
	}
	
	console.log(barcodes);

});

This will returns an array of tickets:

[{
	barcode: 'EBEHZY2KDQ',
	ticketID: '25124052',
	priceID: '2217843',
	attendeeName: 'blum chandler',
	sectionName: 'Loge',
	rowName: 'AA',
	seatName: '3',
	scanned: false,
	bulkOrder: false // If the CSV was a bulk ticket order, this is true
}]

Get barcodes via the API.

You'll need to pass in your BPT Username and Password to each of these methods. USE AT YOUR OWN RISK.

	var login = 'your_bpt_username',
	password = 'your_password';

Pass in an array of Date ID's. You can get Date IDs from the supported Datelist API call.

If you don't pass in a dates array, it will return a list of tickets purchased for all active events.

var dates = [12345, 12345, 12345];

barcoding.getTickets(login, password, dates, function(error, tickets) {
	if (error) {
		return error;
	}

	console.log(tickets);
});

This will return an array of tickets for the passed dates:

[{
	barcode: 'MW2MBRZX9Y',
	ticketID: '34331104',
	priceID: '2522667',
	attendeeName: 'Name Unknown',
	sectionName: '',
	rowName: '',
	seatName: '',
	scanned: false,
	bulkOrder: false
}]

Getting a list of dates.

You can get a list of dates using the supported Datelist API call.

You could also use the getDates method to get a list of dates:

barcoding.getDates(login, password, function(error, dates) {
	if (error) {
		return error;
	}

	console.log(dates);
});

This will return an array of date objects:

[{
	dateID: '881908',
    eventName: 'Another Test Event!',
    eventDate: '2017-08-14 13:00:00'
},
{
	dateID: '881916',
    eventName: 'Another Test Event!',
    eventDate: '2018-08-12 19:00:00'
},
{
	dateID: '880781',
    eventName: 'Test Event',
    eventDate: '2016-08-12 07:30:00'
},
{
	dateID: '882531',
    eventName: 'Test Event',
    eventDate: '2016-12-13 14:00:00'
}]

Contributing

Pull requests are welcome.

Changelog

0.1.0 - Initial Release

License

The MIT License (MIT)

Copyright (c) 2014 Brown Paper Tickets

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.