This is a playground
to test code. It runs a full Node.js
environment and already has all of npm
’s 1,000,000+ packages pre-installed, including bemquery
with all npm
packages installed. Try it out:
require( 'bemquery-selector-engine/package.json' );
var fs = require( 'fs' ),
url = require( 'url' ),
endpoint = 'https://tonicdev.io' + process.env.TONIC_ENDPOINT_PATH;
exports.tonicEndpoint = function( request, response ) {
const package = url.parse( request.url, true ).query.package;
response.end( fs.readFileSync( require.resolve( 'bemquery-' + package ) ) );
};
`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tonic Example</title>
</head>
<body>
<p>Example</p>
<script src="${endpoint}?package="></script>
<script>
</script>
</body>
</html>`;
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.