Sign in
apache
/
pouchdb
/
refs/heads/rollup-experiment
/
.
/
convert.py
blob: 1c0ab0bd76602907408463c84a6986ab6c540aad [
file
] [
log
] [
blame
]
import
re
,
sys
content
=
sys
.
stdin
.
read
()
exports
=
re
.
findall
(
'\nexports.(\S+)'
,
content
)
content
=
re
.
sub
(
'\nexports.(\S+)'
,
r
'\nvar \1'
,
content
);
content
=
content
+
'\nexport {\n %s\n}'
%
(
',\n '
.
join
(
exports
))
print
content