css-font-face-src
v2.0.0 css parser value font font-face
build
npm run build:grammar && npm run build:ts && npm run build:umd
build:grammar
peggy --plugin ts-pegjs -d util:../util -o src/grammar/index.ts src/grammar/grammar.peg # the ../util path is relative to src/grammar, i.e. where the output file src/grammar/index.ts sits
build:ts
mkdir -p dist/ts && tsc
build:umd
mkdir -p dist/umd && browserify --standalone cssFontFaceSrc src/index.ts -p [ tsify ] -o dist/umd/index.js
examples
npm run examples:cjs && npm run examples:esm && npm run examples:ts
examples:cjs
node examples/cjs/parse.js && node examples/cjs/serialize.js
examples:esm
node examples/esm/parse.mjs && node examples/esm/serialize.mjs
examples:ts
ts-node examples/ts/parse.ts && ts-node examples/ts/serialize.ts
test
npm run build && npm run test:jest && npm run test:dist
test:dist
npm run build:umd && npm run test:smoketest
test:jest
jest
test:smoketest
ts-node test/dist/loadPage.ts test/dist/dist_test.html | grep font.woff
npm i css-font-face-src
Metadata
- BSD-2-Clause
- Whatever
- Christoph Burgmer
- released 1/24/2024