Sign Up for Free

RunKit +

Try any Node.js package right in your browser

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 @resource-sentry/core with all npm packages installed. Try it out:

var core = require("@resource-sentry/core")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@resource-sentry/core v1.1.1

Bring static resources to JavaScript.

Recource Sentry Logo

Version Dependencies

Bring static resources (SCSS, JSON, XML, Property Files, etc.) to JavaScript. The modular architecture where every static resource could be interpreted differently.

Table of contents:


Multi-language support? Project variables. Style variables. What if you want utilize power of namespaces in XML to build a collaborative source for multi-language support? What if you want to store style-related variables in SCSS, but you need to make some computation in runtime. Most of the data formats are not supported by browsers, - solution is to compile resources before code will be executed on user's machine and use "resources" as an efficient JavaScript code.


The main configuration is an Object. Configuration can be provided as a rs.config.js file. Every configuration should include the root property config and optional settings.


module.exports = {config: {}, settings: {}};


Required. Determines about readers and writers.

  • input <Array>, list of reader instances
  • output <Writer>, instance of a writer


Optional. Determines behavior of the tool.

  • watch <Boolean|Object>, enables file watcher for reader inputs. Object could be used to provide Chokidar options.


Custom readers and writers should use the same prefix.

  • Reader: rs-reader-xxx. Example: rs-reader-fast-xml
  • Writer: rs-writer-xxx. Example: rs-writer-es3
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free