...
 
Commits (8)
# see git-dpm(1) from git-dpm package
9e4c4a9ebe09f8e22d338bd28a0ef08b47c5263c
9e4c4a9ebe09f8e22d338bd28a0ef08b47c5263c
9e4c4a9ebe09f8e22d338bd28a0ef08b47c5263c
9e4c4a9ebe09f8e22d338bd28a0ef08b47c5263c
node-browser-unpack_1.3.0.orig.tar.gz
79e521eabf2796f4d757add66d8c47c3f3741b9f
6846
.Dd 8/4/17
.Dt browser-unpack 1
.Sh NAME
.Nm browser-unpack
.Nd parse a bundle generated by browser-pack
.Sh SYNOPSIS
.Nm
.Op Ar file
.Sh DESCRIPTION
.Nm
parse a bundle generated by browser-pack
.Nm
will output a json file from a browserified js file
.Nm
will read by default STDIN.
.Sh EXAMPLES
.nf
$ cat main.js
var foo = require('./foo.js');
var gamma = require('gamma');
console.log(foo(gamma(2.3)));
$ node main.js
129.50502147699586
$ browserify main.js > bundle.js
$ browser-unpack < bundle.js | browser-pack | node
129.50502147699586
.fi
.Sh SEE ALSO
.Xr browserify 1 ,
.Xr browser-pack 1,
.Xr nodejs 1 ,
node-browser-unpack (1.3.0-1) unstable; urgency=medium
* New upstream version
-- Bastien Roucariès <rouca@debian.org> Wed, 20 Jun 2018 23:42:39 +0200
node-browser-unpack (1.2.0-3) unstable; urgency=medium
* Fix ci
-- Bastien Roucariès <rouca@debian.org> Wed, 16 May 2018 16:51:46 +0200
node-browser-unpack (1.2.0-2) unstable; urgency=medium
* Move to salsa
* Bump compat and policy.
-- Bastien Roucariès <rouca@debian.org> Sat, 12 May 2018 23:37:06 +0200
node-browser-unpack (1.2.0-1) unstable; urgency=low
* Initial release (Closes: #809493)
-- Bastien Roucariès <rouca@debian.org> Tue, 26 Sep 2017 15:04:08 +0200
Source: node-browser-unpack
Section: javascript
Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Uploaders: Bastien Roucariès <rouca@debian.org>
Build-Depends:
debhelper (>= 11)
, dh-buildinfo
, dpkg-dev (>= 1.17.14)
, nodejs (>= 6) <!nocheck>
, node-concat-stream (>= 1.5.0) <!nocheck>
, node-browser-pack (>= 5.0.1) <!nocheck>
, node-acorn (>= 5.5.3) <!nocheck>
, node-minimist (>= 1.1.1) <!nocheck>
, node-browser-pack (>= 6.0) <!nocheck>
, node-tap (>=8) <!nocheck>
, node-tape (>= 4.0) <!nocheck>
Standards-Version: 4.1.4
Homepage: https://github.com/substack/browser-unpack
Vcs-Git: https://salsa.debian.org/js-team/node-browser-unpack.git
Vcs-Browser: https://salsa.debian.org/js-team/node-browser-unpack
Package: node-browser-unpack
Architecture: all
Depends:
${misc:Depends}
, nodejs (>= 6)
, node-concat-stream (>= 1.5.0)
, node-acorn (>= 5.5.3)
, node-minimist (>= 1.1.1)
Description: parse a bundle generated by node-browser-pack
This package parses a bundle generated by browser-pack.
Browser-pack packs Nodej.js source files from a json stream
into a browser bundle.
.
This is dependency of browserify, a Node.js tool that allows
one to run Node.js code in browser context.
.
Node.js is an event-based server-side JavaScript engine.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: browser-unpack
Upstream-Contact: https://github.com/substack/browser-unpack/issues
Source: https://github.com/substack/browser-unpack
Files: *
Copyright: 2013-2017 James Halliday <mail@substack.net> (http://substack.net)
2013-2017, Hugh Kennedy <hughskennedy@gmail.com>
2013-2017, Ian Henry <ian@trello.com>
2013-2017, James Halliday <mail@substack.net>
2013-2017, Jason Johnston <johnston@nationbuilder.com>
2013-2017, Dave Des <dave.des@gmail.com>
2013-2017, Tim Timmis <tim@timwis.com>
License: Expat
Files: debian/*
Copyright: 2017 Bastien Roucariès <rouca@debian.org>
License: Expat
License: Expat
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.
readme.markdown
package.json usr/lib/nodejs/browser-unpack/
bin usr/lib/nodejs/browser-unpack/
index.js usr/lib/nodejs/browser-unpack/
usr/lib/nodejs/browser-unpack/bin/cmd.js usr/bin/browser-unpack
debian/browser-unpack.1
\ No newline at end of file
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
%:
dh $@
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
override_dh_auto_test:
tap -R spec test/*.js
else
override_dh_auto_test:
@echo '**********************************************************'
@echo 'Skip test '
@echo '**********************************************************'
endif
override_dh_fixperms:
dh_fixperms
chmod a+x debian/node-browser-unpack/usr/lib/nodejs/browser-unpack/bin/cmd.js
# test file are generated with older browser-pack and needed for regression testing, they are manually modified and thus are considered source
source-contains-prebuilt-javascript-object test/.*
source-is-missing test/.*
insane-line-length-in-source-file test/.*
Tests: require
Depends: node-browser-unpack, nodejs (>= 6)
Tests: runtestsuite
Depends: node-browser-unpack, node-tap (>= 8.0), node-browser-pack (>= 2.0), node-tape (>= 4.0)
#!/bin/sh
set -e
node -e "require('browser-unpack');"
#!/bin/sh
set -e
PACKAGE=browser-unpack
SEDCMD="-e s,require[\(][[\'][.][.]/[\'][\)],require\(\'$PACKAGE\'\),g"
tmpdir=$(mktemp -d)
trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
cp -r test "$tmpdir"
find test -name '*.js' -print0 | \
xargs -n1 -0 \
sh -c 'set -e; echo "TESTING: $3"; sed $1 < $3 > $2/$3' sedtape "$SEDCMD" "$tmpdir"
cd "$tmpdir"
tap -R spec test/*.js
version=4
opts=\
dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-browser-unpack-$1.tar.gz/ \
https://github.com/substack/browser-unpack/tags .*/archive/v?([\d\.]+).tar.gz