
Research
Security News
Malicious npm Packages Target BSC and Ethereum to Drain Crypto Wallets
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
@patternplate/client
Advanced tools
Documentation and development interface for component libraries
This is the contributor documentation for @patternplate/cli
For user docs see patternplate.github.io
@patternplate/client
is a universally rendering application that provides
the GUI available at http://localhost:1337
when executing patternplate start
.
The client entry point is src/client
, the server entry point src/server
.
@patternplate/client
also provides means to export required client
assets statically.
@patternplate/client
interfaces with @patternplate/api
to fetch data
and uses fronted compenents @patternplate/components
.
git clone https://github.com/patternplate/patternplate.git
cd patternplate/packages/client
yarn
yarn start
const client = require("@patternplate/client");
(async () => {
const app = express();
const server = http.createServer(app);
const clientMiddleware = await client({
cwd: options.cwd,
config: options.config,
server
});
app.use(clientMiddleware);
})();
const render = require("@patternplate/client/render");
(async () => {
const html = await render("/", {
base: "" // base url to assume, e.g. patternplate in https://git.io/patternplate,
config: {},
schema: {
meta: {}, // pattern tree, see @patternplate/load-meta
docs: {} // pattern docs, see @patternplate/load-docs
},
isStatic:
});
})();
const eject = require("@patternplate/client/eject");
(async () => {
const vfs = await eject(); // MemoryFilesystem({ /static/, /lib/ });
})();
Copyright by SinnerSchrader. All @patternplate
packages are released under the MIT license.
FAQs
Universal javascript client application for patternplate
The npm package @patternplate/client receives a total of 0 weekly downloads. As such, @patternplate/client popularity was classified as not popular.
We found that @patternplate/client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
Security News
TC39 advances 9 JavaScript proposals, including Array.fromAsync, Error.isError, and Explicit Resource Management, which are now headed into the ECMAScript spec.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.