smile-js
Javascript Smile implementation.
Overview
This project is an implementation of Jackson's Smile format. The library supports encoding and decoding.
Documentation
Command-line tools
smile-cli
smile-cli # installed globally
node_modules/smile-js/bin/smile-cli # [npm] installed locally
pnpm exec smile-cli # [pnpm] installed locally
Usage: smile-cli [options] [command]
SMILE CLI
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
encode [options] [jsonFile] [smileFile] Encode JSON to SMILE
decode [options] [smileFile] [jsonFile] Decode SMILE to JSON
help [command] display help for command
HTML Script Tag
To use smile-js via the HTML script tag:
<script src="https://cdn.jsdelivr.net/npm/smile-js@0.10.1/dist/smile-js.iife.js"></script>
The module will be exported as windows.smile
.
Example
Module import
To use smile-js via the HTML script tag:
import * as smile from 'smile-js';