Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/bundler/deps.ts>postcss.Input#origin

A Bundler with the web in mind.
Go to Latest
method postcss.Input.prototype.origin
Re-export
import { postcss } from "https://deno.land/x/bundler@0.6.5/deps.ts";
const { Input } = postcss;

Reads the input source map and returns a symbol position in the input source (e.g., in a Sass file that was compiled to CSS before being passed to PostCSS).

root.source.input.origin(1, 1) //=> { file: 'a.css', line: 3, column: 1 }

Parameters

line: number

Line in input CSS.

column: number

Column in input CSS.

Returns

FilePosition | false

Position in input source.